Skip to content

fix(bench): rotate the timed gate trials through the code layouts - #246

Merged
blackopsrepl merged 1 commit into
mainfrom
fix/gate-trials-rotate-layouts
Nov 10, 2026
Merged

blackopsrepl merged 1 commit into
mainfrom
fix/gate-trials-rotate-layouts

Conversation

@blackopsrepl

Copy link
Copy Markdown
Collaborator

Closes #245. See the issue for the measurements.

The gate built five -C metadata layouts per side but timed only layout 0,
so wall time and the hardware counters read one code placement. On merged
main the same instructions read ruin wall +10.2% (its byte-identical hot
function moved 32 bytes and its fill loop crossed a cache line) and
nearby_swap branch misses +9.9% (identical function at the same address,
predictor aliasing with moved code), while the medians over five layouts
moved +1.2% and +1.0%.

Trial t now runs layout t mod SIM_LAYOUTS on both sides, and warmups
rotate the same way, so every timed median pools all layouts. Trials,
budget, graded metrics, pass rule and run time are unchanged. A 15-trial
run of ruin and nearby_swap on main vs v0.26.0 passes (wall -1.8% and
-1.5%).

Closes #245
@blackopsrepl
blackopsrepl merged commit a06e9db into main Nov 10, 2026
7 checks passed
@blackopsrepl
blackopsrepl deleted the fix/gate-trials-rotate-layouts branch November 10, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(bench): timed gate trials read one code layout

1 participant