Repository navigation
fix(bench): rotate the timed gate trials through the code layouts - #246
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #245. See the issue for the measurements.