This fixture measures sizes 2–7, with sizes 1 and 8 as same-run controls, for the three implementations from the original array benchmark:
- Stack or resize/assignment temporary buffer, followed by one bulk
Array::push. - Stack buffer through eight elements, otherwise
reserve/emplace_back, followed by one bulk push. - Pre-sized JS array populated with
setValueAtIndex.
baseline.hpp, reserve.hpp and direct.hpp are byte-identical to the original snapshots. benchmark.cpp keeps the original array timing code and changes only measured sizes, process seeds and removal of tuple timing cases. It includes numbers, rooted object/string references, and freshly created ASCII strings. Original results and artifacts were preserved separately.