village-builder

VB-246: A benchmark that shows the three engine workarounds still pay

Status: done (2026-11-19) Priority: 3 Size: S Arch: yardstick Phase: implement Design ref: none (test infrastructure). Kim, 10 Nov 2026 (code review). Goal: Three places in src/ are written as they are because of the JavaScript engine, not the problem: decode gives an object all its keys before its values (saves.js:155-167) and fadeRelations copies a record’s memories instead of deleting keys (sift, relations.js:162), both to keep objects out of dictionary mode (VB-205); and driftPerson is a function of its own to avoid repeated deoptimisation (culture.js:190, VB-195). Nothing notices if an engine update makes one useless or harmful. Acceptance criteria:

Done (19 Nov 2026):