Skip to content
devonjontePublic

About

Zero the scale before you weigh: A/B benchmarks of two builds with fresh link layouts, alternating runs, and every cell judged at once

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

tare

To tare a scale is to zero it before weighing, so it measures only what you put on it. tare does that for benchmarks: it compares two builds of a program while taking away what isn't the code.

  • Link layout: a binary's function order alone moves a function's speed by several percent (identical source, two link orders: 8–10% apart on an i7-12700K). Each side is relinked with a fresh random order for every pair of runs, with different seeds on the two sides, so identical code meets a new layout each time, as a real change does.
  • Run order and drift: each pair runs as fresh processes in alternating order, so drift falls on both sides alike.
  • Load: other programs' use of the machine is measured around every run, and a busy run is no evidence.
  • Judging: every cell is judged at once: a paired t-test on the log ratios, the false-discovery rate controlled over all cells, and a margin. Each verdict prints the ratio it was judged on.

Beside wall time, each sample can record the process's CPU time, the CPU package's energy, and which kind of core ran the calling thread, at what clock.

Status: being moved here from the BLAKE3 servil fork's clocks crate and tools/perf_regress.py, and from bench-hashes' compare and regress (servil-software-factory/bench-hashes#40). The plan: one instrument, versioned on its own, which BLAKE3 and bench-hashes both depend on, so a result can name "the code at X, measured with tare at Y".

License

You may use this repository under the terms of any of these four Free and Open Source Software licences:

About

Zero the scale before you weigh: A/B benchmarks of two builds with fresh link layouts, alternating runs, and every cell judged at once

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors