Heuristic:0sec labs 0 Benchmark Median Not Single
| Knowledge Sources | |
|---|---|
| Domains | Benchmarking, Fuzzing, Reliability |
| Last Updated | 2026-10-30 00:00 GMT |
Overview
Never report a single benchmark run — confirm counts carry roughly ±1–2 sites of run-to-run variance; report a median over ≥3 runs with the range.
Description
The magma benchmark is the credibility instrument for 0verse vulnerability discovery. Its output carries inherent run-to-run variance: `main` once scored 4 confirmed findings and then 2 on identical code. A bare decimal implies precision the instrument does not have. Additionally, never compare two runs whose invocations differ — if budget, flags, or target set differ, re-run the control at the same settings. Comparing a candidate at `--timeout 7200` against a baseline at `2400` produced a confident and wrong "regression" conclusion.
Usage
Apply this heuristic whenever reporting benchmark numbers, comparing pipeline runs, or evaluating pipeline changes. Also apply when reviewing PRs that claim performance improvements or regressions.
The Insight (Rule of Thumb)
- Action: Report a median over ≥3 runs with the range (min–max), never a single run.
- Value: The denominator is 53 bug-sites across 5 built targets (lua 4, libpng 7, libsndfile 14, libxml2 14, libtiff 14). Numbers quoted before 2026-07-30 used 39 because libtiff would not build.
- Trade-off: Running 3+ full magma runs is expensive (hours each), but a single run is scientifically meaningless.
- Never compare across a changed invocation: If budget, flags, or target set differ, re-run the control at the same settings.
- Known unconfirmable sites: libtiff ships only 12 of its 14 canary IDs (`TIF013` configure-disabled upstream, `TIF011` not linked). Upstream magma behaviour, not ours.
Reasoning
Fuzzing is inherently stochastic — the same binary with the same fuzzer configuration can find different bugs on different runs due to random seed selection, path scheduling, and timing. A single run's count is a sample from a distribution, not a precise measurement. The ±1–2 site variance means a 3→4 "improvement" could be pure noise. Only a median over multiple runs with an explicit range communicates the true uncertainty.