Semantic Diff

#9254 Count the compiler's instructions with cachegrind in the benchmarks

1 commit

05034e5694ca08467acec072ccd6bbe4575f6b66..pr-9254

f99df2185 · cknitt + Claude · Nov 07, 2026, 09:16 UTC

Count the compiler's instructions with cachegrind in the benchmarks

Allocation misses slowdowns that don't allocate, such as a scan of a list that already exists. The benchmark job now runs on x64 and also counts, with cachegrind, the instructions the compiler executes on the stress inputs, the parse and format runs and the 15 largest runtime and Belt files; the comment shows both counts in a section each.

Base and head are built and measured from the same path, and the runs under cachegrind use a minor heap larger than any benchmark allocates, so two builds of the same compiler give the same counts. Four more stress inputs cover constructs whose compile time and allocations grow faster than their size, and the script, its data and the comment are named after the compiler.