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".
You may use this repository under the terms of any of these four Free and Open Source Software licences:
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- Transitive Grace Period Public License 1.0 (LICENSE-TGPPL or https://spdx.org/licenses/TGPPL-1.0.html)
- Bootstrap Open Source License v1.0 (LICENSE-BOSL.txt)