Benchmarks: one harness per metric
Every published number has exactly one harness that produces it, and every engine compared in a row is run through that same harness. A number from one harness is never put in a ratio with a number from another, even when both are called “code edit” or both report tok/s.
The reason is concrete: two harnesses that both loaded the same model disagreed by up to 2x on the same workload (one measured a session of requests with prefix reuse, the other a single request), and an engine comparison built from different harnesses cannot separate the engine from the workload shape.
The roles
| published metric | owning harness | engines it runs | what it fixes |
|---|---|---|---|
| code-edit rate | tools/bench.sh --spec (codeedit-chat.scm in-process on SonicBoom; llama-codeedit.scm --chat + llama-server on llama.cpp) |
SonicBoom spec off / auto; llama.cpp no spec / ngram-mod | ten frozen edit requests, each one chat-templated user message, one generation length per turn; decode-only, the median of the turns’ rates (pooled also printed) on both engines |
| code-edit and chat Output Decay, run-to-run floor | the Output Decay harness, through tools/community-bench.sh --od |
SonicBoom spec off / default; llama.cpp no spec / ngram-mod; PolyStrata off / on | one frozen ten-turn prompt set, one rendered-bytes and token-id snapshot for every engine, OD by text bytes |
| chat rate | the same harness, chat prompt set | the same engines | the same, over ten fixed general prompts at a 512-token budget |
decode at depth: tg64, d512, d4096, d16384, d32768 |
tools/community-bench.sh (longctx_bench; llama-bench on the llama.cpp side) |
SonicBoom, llama.cpp | one whole-call definition at each depth, speculation off |
| prefill whole-call: pp512, pp2048, pp8192 | tools/community-bench.sh (prefill_bench; llama-bench -p n -n 0) |
SonicBoom, llama.cpp | N / t_N from position 0, the same definition as llama-bench avg_ts |
| agent multi-turn session trace | workload_bench --workload codeedit |
SonicBoom | per-turn TTFT, decode and wall time over a sequence of edit requests in one session |
| spec regression headline (Qwen2.5-7B code edit) | tools/bench/codeedit_bench, spec off and auto |
SonicBoom | the release gate’s own floor; not a cross-engine row |
| server streamed code-edit rate | tools/bench-serve.sh |
SonicBoom | the server path (HTTP + SSE), reported separately, never as a ratio against llama.cpp |
| constrained tool calls | tools/bench-toolcall.sh |
SonicBoom, llama.cpp | JSON tool calls under a grammar, with pass/fail per call |
The code-edit row is the single-turn one: ten stateless edit requests, each pasting one repository file and generating the file back. The agent multi-turn trace is a different metric — a session of requests with prefix reuse between them — and is not comparable to the code-edit rate. It used to print a “code-edit trace” heading; it now prints “agent multi-turn trace” so the two are not confused. The trace is engine-internal and is listed here so its numbers are never mistaken for the cross-engine code-edit row.
Running a cross-engine row
The code-edit rate row is owned by tools/bench.sh --spec: SonicBoom runs in-process through codeedit-chat.scm and the public C ABI (the Guile binding’s real backend, no HTTP), llama.cpp through llama-server --chat, both on the same ten frozen requests rendered by the model’s own chat template and the same per-turn generation lengths. Decode time starts when prefill returns, the definition llama-server reports as predicted_ms; the published figure is the median of the ten turns’ decode-only rates, and the pooled rate over the ten turns is printed beside it.
The Output Decay harness owns the published Output Decay rows and the chat rows. It lives with the engine runners, outside this tree, and community-bench.sh drives it:
flock /tmp/sb-bench.lock tools/community-bench.sh MODEL LLAMA_BIN --od \
--od-harness /path/to/output-decay/community.sh \
--poly-strata /path/to/strata-polyThe harness takes the model and an output directory, starts every engine on the same box, and writes <out>/<tag>/od-report.txt. It refuses to compute an OD number unless every engine was shown to receive the same rendered prompt bytes and the same prompt token ids; a reviewed exception is excluded from the cross-engine numbers and reported on its own, never silently forgiven.
--od needs llama.cpp even when the row itself is SonicBoom: the canonical prompt snapshot is rendered and tokenized by llama-server’s own template, so it is the authority every engine is checked against. PolyStrata is run when --poly-strata or SONICBOOM_POLYSTRATA_BIN names its binary.
The --spec step that community-bench.sh already runs is the published code-edit rate row, and it prints the SonicBoom arms’ OD and floor from tools/output-decay for the same prompt set. The --od step is the published Output Decay record: it runs every engine through one rendered snapshot, including llama.cpp’s ngram-mod decay.
Prompt sets and Output Decay
The metric’s definition, the prompt sets and the snapshot rule are in output-decay.md. The decode and prefill definitions are in benchmark.md. Raw logs, exact commands and engine versions for each release’s comparison are kept with that release’s measurement record; the public tree carries the tools, not the recorded runs.