benchlisted
Install: claude install-skill ArakunHQ/arakun
# Benchmark Arakun
`tools/bench/bench.py` has two suites. Both write JSON to `target/bench/`, and
`compare` turns two results into a table.
| Suite | What it runs | What it measures |
| --- | --- | --- |
| `perf` | A test Arakun (`arakun dev`) on a fixed scratch project, with `ZED_MEASUREMENTS=1` so GPUI logs each frame's draw time. Scenarios: idle, palette, sidebar, zoom, scroll, terminal | Time to first frame, frames drawn, p50/p95/p99/max frame time, frames over 16.7 ms, CPU % and memory |
| `agent` | Each task in `tools/bench/tasks/` copied to a scratch git repo, its prompt given to Claude Code, then a hidden check run | Pass rate, time, turns, tokens, cost. Runner `arakun` runs the session in a test Arakun; `claude` runs bare `claude -p` as the baseline |
## Perf: check a change for regressions
Measure with a release build. Debug builds are several times slower and say
little about what users see.
1. Build the branch: `cargo build --release --locked --no-default-features`.
2. Build main in a worktree of its own, so your checkout stays as it is:
```sh
git worktree add /tmp/arakun-main origin/main
(cd /tmp/arakun-main && cargo build --release --locked --no-default-features)
```
3. Run both, one after the other on the same machine, never in parallel:
```sh
tools/bench/bench.py perf --bin /tmp/arakun-main/target/release/arakun --out target/bench/main.json
tools/bench/bench.py perf --out target/bench/branch.json
tools/bench/bench.py compare target