GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing tak.jdx.dev — tak Methodology Pre-v1 software tak is pre-v1. Its interfaces and behavior are not finalized and may change incompatibly between releases. If you need a stable command benchmark, use hyperfine; for CI benchmark tracking, use Bencher or CodSpeed. These docs are currently AI slop and have not been fully reviewed. They will be reviewed and finished later. tak asks whether retired instruction counts can make small CLI regressions visible in shared CI, where wall-clock time is dominated by contention. The premise On a shared runner, wall time has a noise floor in roughly the same range as the regressions people want to catch. Thresholds either cry wolf or miss changes, and eventually get ignored. In the measurements that motivated tak, cachegrind instruction counts varied by about 0.008–0.027% on a quiet host and 0.011–0.021% under heavy CPU contention. Median instruction counts moved no more than 0.035% between those conditions while wall-clock medians moved by roughly 150%. That leads to one narrow rule:
Two tiers of metrics
Syscall counts and peak RSS are not deterministic enough for a tight threshold because thread scheduling changes them. Heap allocations Instruction counts can miss a change that allocates much more memory for little extra work. With Each program below ran 20 times under DHAT and 20 times under cachegrind, on a 32-core Linux host running valgrind 3.24.0 in a container. "Quiet" means no load was added, though other work was running on the host. "Contended" means 32
Apart from that first That suggests the totals could join the deterministic tier and the peak should stay out of it. Five programs are not enough to establish that, so for now none of them gates. Why the minimum Contention is one-sided: a busy machine can only make a run slower. A command that sometimes consults the network can only retire more instructions. The floor is therefore the robust estimator for both timing and instruction counts. Comparing programs When one benchmark compares several programs, the order samples are taken in matters as much as how many there are. Running every sample of one program and then every sample of the next puts anything that drifts during the run on whichever program was running at the time. That drift might be contention on a shared host, thermal throttling or a cache filling up. The difference then looks like one program being slower than another. tak takes one sample of each program per round and shuffles the order every round. Drift is then spread across all the programs instead of landing on one of them. Shuffling also stops a program from always running first, or always running right after the same other program and inheriting whatever state it left behind. A program with fewer samples takes part in evenly spaced rounds rather than only the early ones. A A Git notes don't carry the verdicts. They fit neither of the rules recorded metrics are read by: The seed makes an order repeatable. It does not make the timings repeatable: wall-clock comparisons between programs are still subject to the noise described above, and are never gated. Why runner classes matter Moving between machine or toolchain classes shifts absolute measurements enough to resemble a regression. Every series must be partitioned by Prior art tak borrows heavily from:
The release-asset selection in | ||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |