How the bench works
A scripted model gives every agent the same work. So the benchmark measures the agent, not the quality of its answers.
How a run works
One case, from the inside.
⟵
⟵
The model is a small local server that replies like a real provider, with one tool call per reply. From outside the container, the host reads its CPU time and memory every 100 ms. Memory is PSS, which counts memory that processes share only once.
Questions
What each part of the results measures.
- TUI startup
- Time from launch until a typed key shows on screen, with a warm file cache. At the first launch in a new home folder, and at a later launch, with the opencode and codex servers still running.
- Headless first response
- Time from launch until the first request to the model.
- Memory at start
- Memory once the agent settles after its first request, with a cold file cache.
- Install size
- Disk space that the official installer adds to the image, plus what the first launch writes into the home folder.
- Coding task
- CPU time for one task with 24 tool calls, with and without the TUI. The model streams at 30 to 1,000 tokens per second.
- Long session
- Memory, CPU time per turn and session data on disk, over 64 turns. Each agent compacts its history in its own way.
- New sessions
- Memory over 16 sessions in one process, each started with the agent's new-session command.
- Idle
- CPU time and memory during 5 minutes without input, after a task.
- Quit
- Time from /quit until the agent's process exits, at start, after the coding task and after the long session. The agent must exit with status 0.
Controls
The same conditions for every agent and every run.
- Reserved cores
- While the benchmark VM runs, the host kernel takes its cores away from all other work. Each virtual CPU runs on one fixed host thread, and hardware interrupts go to other cores.
- Fixed clock
- The reserved cores run at 4.7 GHz, the base clock of the CPU, so boost cannot change the speed between runs.
- One at a time
- One case runs at a time, on two cores. The benchmark runs on a third core. In a test, four neighbours on the same cores made the agents use 6% to 8% more CPU time.
- Same start
- Each agent comes from its official installer, at a fixed version, with its defaults. Only telemetry, error reports and updates are off. The TUI starts as a user starts it each day: the bare command, with the settings in the agent's config. Headless starts as automation starts it, with the settings as flags. Each case starts a new container, in a home folder that a first launch used, as on a user's machine. Measurement starts when the agent's CPU settles after its first request, so startup work does not count twice. One practice task per agent does not count.
- Same work
- A fixed seed generates the work. Every case runs 3 to 10 times, and each repeat shuffles the order of the agents.
- Checked work
- The scripted model checks every tool result, so an agent cannot skip work. Any failure stops the run, and the site shows only complete runs of all agents.
The host hook that reserves the cores is in bench/proxmox.
Noise
How much the runs of one case differ, in the run on this site.
Spread is the range of the runs, as a share of their median. CPU time of real work varies little. Short and idle times vary more, because a few wake-ups are a large share of them. The hypervisor took at most 30 ms from the agent's cores in any case. A fixed CPU job before every case took 212 ms. In 95% of the 329 cases it took at most 2.0% longer, and 29% longer in the slowest.
| Result | Runs | Typical spread | Largest spread |
|---|---|---|---|
| Startup time | 10 | 7.2% | 16% codex |
| Memory at start | 10 | 1.9% | 3.2% smelt |
| CPU in the TUI | 3 | 1.2% | 4.6% opencode |
| Headless CPU | 3 | 0.8% | 10% Claude Code |
| Terminal CPU | 3 | 0.9% | 1.3% Claude Code |
| Memory in a long session | 3 | 6.2% | 23% fx |
| Session data on disk | 3 | 0.1% | 132% opencode |
| CPU when idle | 3 | 3.5% | 21% opencode |
Typical is the median over the agents. A lead in the results needs all runs of an agent to beat all runs of the next agent, by 10%. With 3 runs each, all-beat-all alone is the strongest result that a one-sided Mann-Whitney test can give (p = 0.05).
Workload
Generated work with the shape of real sessions.
I measured 5,617 turns and 108,489 tool calls from my own coding sessions. The benchmark keeps only their shape: tool calls per turn, tool kinds and sizes, but no text. Half of the turns make 5 tool calls or fewer, one in ten makes 50 or more, and the largest 1% make 211 or more.
Tool calls by kind
| Kind | Share of calls | Typical size |
|---|---|---|
| shell | 59% | 647 B |
| read | 19% | 2.4 KiB |
| edit | 14% | 434 B |
| search | 5% | 1.6 KiB |
| write | 2% | 3.7 KiB |
Causes
Where the Why under a chart comes from.
The causes come from separate runs with profilers, never the timed runs: perf for CPU time, strace for timers, and the files that the agent saves. Each cause links the code in the agent's source, at the version in the benchmark. Claude Code is closed source, so its causes come from traces only. RELEASE.md tells how to find each cause again.
Limits
What these numbers do not tell you.
- Nothing about the quality of answers, because the model is scripted.
- The workload comes from my own sessions. Its text is filler, and real code and Markdown can cost more to render.
- The model makes one tool call per reply. Real models sometimes make several at once.
- One Linux machine and one version of each agent.
- I wrote the benchmark, and I also build smelt. The setup of each agent is in the repository. If one is set up unfairly, please open an issue.
This run was measured with the code at b4e5fc9. The benchmark README has the full details, such as how results are checked and how the cost of the terminal is measured.