Repository navigation
Methodology 0.5: four code layouts per run, a pause before every iteration, t-intervals - #3
Open
MatejKocourek wants to merge 1 commit into
Open
MatejKocourek wants to merge 1 commit into
MatejKocourek wants to merge 1 commit into
Conversation
…ation, t-intervals - Every build is also linked at three more code layouts (1000, 2100 and 3300 bytes of filler in front of R's code; build-r.sh relinks R.bin, byte-identical to compiling with the filler, and hard-links the rest of the installation). A run is one pass of the suite per layout, one process per benchmark each; speedr merge-passes makes the k-th pass process k. - rbench pinned to PRL-PRG/r-benchmarks#6: the harness idles 1 ms before each iteration's clock starts, so no iteration inherits the branch predictor state of the one before. - Statistics: 95% t-intervals (n - 1 df for a run, n_a + n_b - 2 for a comparison) and a 0.1% floor on every run's log standard error. - mathkernel/MMM-T1 left out (drivers/common.py PRUNED): one layout in eleven made it 20% slower, and matmult_triplp runs the same kernel. Measured on R 4.5.2, six runs under this design: same-build comparisons excluded no change in 2.1% of cases (95% intervals allow 5%), flagged none, and resolve 0.43% at the median benchmark. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Methodology 0.5, from the run-design and noise studies on the kabylake machine (R 4.5.2).
What changes
build/build-r.shnow also links R three more times with 1000, 2100 and 3300 bytes of filler in front of R's code and installs each inPREFIX/layout/PAD. OnlyR.binis relinked (under 1 s each); the rest of the installation is hard links, plus the few text files naming the prefix. The layouts are part of the build id.speedr-node run).speedr merge-passesturns the 4 pass reports into onetiming.json, with pass k as process k. The layouts are recorded inrun.envandmeta.json(run_design.layouts).PRUNEDindrivers/common.py, applied to both drivers). Its smallest resolvable change is about 10%, andmatmult_triplpruns the same scalar triple loop. heat, rw2d1 and pidigits (2–3%) stay for now.methodology/0.5.qmd(with how the design was chosen),versions.csv, guidelines.Evidence
Six runs of R 4.5.2 under this design, 117 benchmarks, comparing every pair of runs (same build, so nothing to find):
Tested
pytest: 51 passed.build-r.sh(scratch prefix):lib64installation): all three layouts link and run.🤖 Generated with Claude Code