| 22 | 22 | ## Results over time (issue #101) |
| 24 | | −`.toboggan/workflows/bench.yml` runs `scripts/bench-track.sh` on each push to `main`, on a dedicated, quiet runner labelled `louise-bench`. The script runs `scripts/bench.sh` and `scripts/bench-compile.sh`, and counts each benchmark's user-space instructions with `perf stat` (the fewest of `BENCH_RUNS`; skipped without perf). Instructions vary far less than wall time, but multi-threaded benchmarks (`messages`, `parallel`, `timers`) still vary a little with stealing. |
| 24 | +`.toboggan/workflows/bench.yml` runs `scripts/bench-track.sh` on a dedicated, quiet runner labelled `louise-bench`: by hand, and on each push to `main` once the repository variable `LOUISE_BENCH_ENABLED` is `true`. The script runs `scripts/bench.sh` and `scripts/bench-compile.sh`, and counts each benchmark's user-space instructions with `perf stat` (the fewest of `BENCH_RUNS`; skipped without perf). Instructions vary far less than wall time, but multi-threaded benchmarks (`messages`, `parallel`, `timers`) still vary a little with stealing. |
| 26 | 26 | Results stay on the runner, in `LOUISE_BENCH_DIR` (default `~/louise-bench`): one CSV per commit (`commit,benchmark,metric,value`; metrics `ms`, `compile_ms`, `instructions`), and `index`, the commits in the order they ran. Each run is compared with the previous one. Regressions beyond `BENCH_THRESHOLD_MS` (default 10%) or `BENCH_THRESHOLD_INSTRUCTIONS` (default 2%) are written to `<commit>.report` and printed, without failing the run. With the secret `LOUISE_BENCH_TOKEN` (a personal token) and the variable `LOUISE_BENCH_ISSUE` (an issue number), the workflow also posts them on that issue. |