> Every page is listed in https://eugo.io/docs/pairbench/0.1.1/llms.txt; all of them are in one file at https://eugo.io/docs/pairbench/0.1.1/llms-full.txt.

# How does pairbench decide?

> The chain behind every verdict: paired rounds, a noise floor from twins, the exact sign test, a correction for several cases and the rule that combines them.

pairbench 0.1.1. Web page: https://eugo.io/docs/pairbench/0.1.1/method/

In steps: paired rounds in a rotating order, a noise floor measured from twins in the same run,
an exact sign test for each case, a correction for testing several cases, and a rule that turns
them into a verdict. Each page below explains one step: what pairbench does, why, and what a
reader of a result can rely on.

## How a verdict is reached

1. [Paired rounds](https://eugo.io/docs/pairbench/0.1.1/method/paired-rounds/index.md): every side runs once per round, in an order that
   rotates and reverses, so that drift and position affect every side alike.
2. [Noise floor](https://eugo.io/docs/pairbench/0.1.1/method/noise-floor/index.md): each side runs beside an identical twin; the gap between
   them is the noise of this machine, at this load, in this run.
3. [Sign test](https://eugo.io/docs/pairbench/0.1.1/method/sign-test/index.md): an exact test of whether one side is lower in more rounds than
   chance would give.
4. [Multiple comparisons](https://eugo.io/docs/pairbench/0.1.1/method/multiple-comparisons/index.md): testing several cases at once needs a
   correction, or one of them comes out significant by luck.
5. [Verdicts](https://eugo.io/docs/pairbench/0.1.1/method/verdicts/index.md): the rule that combines the gap, the bar and the p-value, every
   outcome and reason, and how to report one.

## Checks on the instrument and the machine

- [Shared machines](https://eugo.io/docs/pairbench/0.1.1/method/shared-machines/index.md): quiet at the start is not quiet throughout; pinning,
  locks, witnesses and disturbed rounds.
- [Instrument controls](https://eugo.io/docs/pairbench/0.1.1/method/instrument-controls/index.md): every analysis tool needs a case that must
  pass and a case that must fail.
- [Positive control](https://eugo.io/docs/pairbench/0.1.1/method/positive-control/index.md): twice the work must read as twice the value.
- [Launch cost](https://eugo.io/docs/pairbench/0.1.1/method/launch-cost/index.md): what a launch costs before the workload runs.
- [Simulated error rates](https://eugo.io/docs/pairbench/0.1.1/method/error-rates/index.md): how often the default rule gives each outcome
  when the true difference is known.

## Serving and energy

- [First-token definitions](https://eugo.io/docs/pairbench/0.1.1/method/first-token-definitions/index.md): what each load tool puts inside its
  time-to-first-token stopwatch.
- [Energy per token](https://eugo.io/docs/pairbench/0.1.1/method/energy-per-token/index.md): what is measured, what is left out, and when no
  value is given.

## Beyond the verdict

- [Diagnostics](https://eugo.io/docs/pairbench/0.1.1/method/diagnostics/index.md): resource figures, counters, sampled stacks and flame graphs.
- [Pitfalls](https://eugo.io/docs/pairbench/0.1.1/method/pitfalls/index.md): common ways a benchmark fools its author.
- [Reporting checklist](https://eugo.io/docs/pairbench/0.1.1/method/reporting-checklist/index.md): what a published comparison should state.
