This is the run of 2026-11-27. A newer run exists. See the latest results.
Resources
What do they cost your machine?
Every agent does the same scripted work in the same container, on 2 reserved cores and 4 GiB. Lower is better. How it works.
Run of 2026-11-27
Overview
The median of each question. Blue marks a lead: all the agent's runs beat all runs of the next agent by at least 10%. Agents with as many leads share a rank. Click a column to sort.
Start | Coding task | Long session | Idle | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| # | Agent | ||||||||||
| 1 | 3 | 4.9 ms | 4.4 MiB | 9.1 MiB | 13.4 s | 827 ms | 12 ms | 236 MiB | 21.1 MiB | 913 ms | |
| 1 | 3 | 34 ms | 19.5 MiB | 46.8 MiB | 7.33 s | 282 ms | 136 ms | 104 MiB | 12.3 MiB | 0.6 ms | |
| 3 | 2 | 271 ms | 103 MiB | 397 MiB | 3.87 s | 915 ms | 359 ms | 194 MiB | 6.5 MiB | 93 ms | |
| 4 | 0 | 260 ms | 187 MiB | 404 MiB | 5.59 s | 1.73 s | 16 ms | 466 MiB | 19.2 MiB | 515 ms | |
| 4 | 0 | 35 ms | 124 MiB | 1.1 GiB | 6.38 s | 856 ms | 93 ms | 387 MiB | 45.9 MiB | 53 ms | |
| 4 | 0 | 151 ms | 232 MiB | 447 MiB | 9.18 s | 1.54 s | 288 ms | 600 MiB | 18.6 MiB | 1.54 s | |
| 4 | 0 | 287 ms | 331 MiB | 276 MiB | 7.35 s | 3.57 s | 179 ms | 727 MiB | 16.6 MiB | 1.02 s | |
- fx is clearly lowest on startup time, memory at start and disk after the first launch.
- smelt is clearly lowest on headless CPU, memory in a long session and CPU when idle.
- pi is clearly lowest on CPU in the TUI and session data on disk.
The agents do not all do the same things, and an agent with fewer features can cost less. Compare their features.
Start
How fast each agent starts, and how much memory and disk it needs.
TUI startup
- Every launch
- Extra at first launch
› Why NativeLoads JavaScriptTwo processes
A small binary that shows the prompt at once.
A native binary. About half of its startup is the kernel, as it reads each TLS certificate file and searches for Lua modules. At the first launch, it also unpacks its built-in Lua plugins. strace: open and stat
A large binary. A worker thread sets up codex while the main thread waits for it. At the first launch, it also installs a 503 MiB copy of itself for its shared server, which stays after quit, and clones an 82 MiB plugin repository in the background. bpftrace: futex wait of the main thread
Bun starts in 3 ms. It draws a live prompt that takes typed keys at once, while a long chain of JavaScript setup runs on one thread. At the first launch, it also writes a 144 MiB native module into the home folder and builds a model catalog database. cli.ts:577-592
Bun starts in 8 ms at most. Then it runs 120 MiB of precompiled JavaScript on the CPU until the first frame, and runs git 3 times. At the first launch, it also clones the plugin marketplace. bpftrace: CPU, exec and connect
A shell script starts Node.js in 6 ms. Node.js starts in 16 ms, then loads 24 JavaScript files and runs them. bpftrace: exec and open
Bun starts in 3 ms. The TUI connects to a shared server. The first launch starts that server, which stays after quit, and fills a database with the models.dev catalog. Later launches use the running server. bpftrace: event loop waits of the TUI
The JavaScript runtimes boot in 3 to 16 ms. The rest is loading and running each agent's code.
Headless first response
Memory at start
Install size
- Agent code
- Runtime
- Bytecode copy
- Extra binaries and data
- Other
- Written at first launch
› Why One binaryJavaScript twiceNode.js installSeveral binaries
One Zig binary.
One Rust binary and its Lua files.
Keeps source, bytecode, a web UI and a model catalog.
Includes Node.js, its development files and npm.
Keeps both JavaScript source and compiled bytecode.
Keeps source, bytecode and two native modules for different CPUs.
A large main binary and 3 helpers that repeat much of its code.
A coding task
One task with 24 tool calls. The model streams 60 tokens per second.
Where the CPU time goes
› Why Rewrites rowsLays out allAnimatesRebuilds rowsRenders all
Rewrites each screen row that changes. When the transcript scrolls, that is the whole screen. tui-alt-screen.ts:1795-1798
Lays out all messages each frame and parses Markdown again for each token. perf: Yoga layout and Markdown
The progress animation adds redraws between tokens. status_indicator_widget.rs:308-319
Animations add redraws between tokens, without clearing the screen. prompt_chrome.lua:252-263
Rebuilds the session's display rows when the message list changes. rows.ts:164-187
Animations add redraws between tokens, and its stack sampling profiler runs alongside. The task clears the screen only at startup. loop-sampler.ts:78
Renders the whole transcript on each update, but writes finished text only once. transcript_blocks.zig:2817-2844
Terminal output
CPU use while streaming
- opencode 17%
- omp 17%
- smelt 15%
- Claude Code 14%
- fx 11%
- pi 10%
- codex 8.4%
A long session
One session of 64 turns, each with as many tool calls as a real one. Each agent compacts its history near the context limit.
Memory
- opencode 727 MiB
- omp 600 MiB
- Claude Code 466 MiB
- codex 387 MiB
- fx 236 MiB
- pi 194 MiB
- smelt 104 MiB
CPU time per turn
- opencode 3.67 s
- fx 3.18 s
- Claude Code 1.72 s
- codex 1.18 s
- omp 968 ms
- smelt 932 ms
- pi 848 ms
› Why Rebuilds per messageFlat
Rebuilds all display rows per message and reads all history per step. rows.ts:164-187
CPU per turn stays level after turn 16. Each update renders only the current turn, after a saved state of the finished turns. frozen_prefix.zig:1-3
Nearly level after turn 16, but each frame still lays out all messages.
CPU per turn stays level after turn 16.
CPU per turn stays level after turn 16.
CPU per turn stays level after turn 16.
CPU per turn stays level after turn 16.
Session data on disk
- codex 45.9 MiB
- fx 21.1 MiB
- Claude Code 19.2 MiB
- omp 18.6 MiB
- opencode 16.6 MiB
- smelt 12.3 MiB
- pi 6.5 MiB
What the session data holds
- JSONL
- SQLite
- SQLite WAL
- JSON
- Other
- Text of the session, 4.8 MiB
› Why File per sessionOne databaseFolder per session
Saves each tool result once, plus small edit diffs.
Keeps display and model history separately, plus request logs and a search index.
One SQLite database for all sessions. The first shell command also copies a 3.5 MiB terminal helper into the home folder.
Its log is 3 times the session text. It also keeps each edited file before and after each edit.
Keeps tool results in 3 places, plus copies of edited files.
Saves tool output in both a log and separate files: about 4,320 files in 64 turns.
Saves each item twice in the session log, plus database copies and debug logs.
Same session text; different copies, logs and caches.
New sessions
16 sessions in one process, each started with the agent's new-session command. It shows memory that finished sessions leave behind.
Memory
- opencode 566 MiB
- omp 515 MiB
- Claude Code 391 MiB
- codex 356 MiB
- pi 154 MiB
- smelt 68.5 MiB
- fx 64.3 MiB
Idle
An open session, left alone after a task.
What wakes an idle agent
› Why WaitsSlow timersPolls filesBusy loopProfiler
Sleeps until input or a model event arrives.
No repeating timers. Update checks finish in the first 30 s.
Writes logs every 10 s. Its 500 ms terminal size check runs only inside tmux, which the agent cannot detect here. log_db.rs:58
Checks ~/.claude.json every 1 s and the ~/.claude folder every 2 s. strace: statx every 1 s
Checks plugin folders every 500 ms; sends a heartbeat every 15 s. watch.ts:100
Checks for input every 8 ms, about 120 times a second. main.zig:202
A JavaScriptCore sampling profiler, which names the code behind a blocked event loop, wakes about 100 times a second. A watchdog also checks for a blocked event loop every 250 ms. loop-sampler.ts:78
Claude Code and opencode spend about half their idle CPU time on memory cleanup after wake-ups.
CPU time
- omp 1.54 s
- opencode 1.02 s
- fx 913 ms
- Claude Code 515 ms
- pi 93 ms
- codex 53 ms
- smelt 0.6 ms
Memory
- opencode 426 MiB
- omp 384 MiB
- codex 305 MiB
- Claude Code 253 MiB
- pi 112 MiB
- smelt 52.1 MiB
- fx 18.1 MiB
What the memory holds
- Code and mapped files
- Heap and data
› Why SmallJavaScript heapOwn codeTwo heaps
Its code and data fit in 16 MiB.
Most of its memory is its own code.
Node.js code and a small heap.
The JavaScript heap is most of its memory.
About 80% is program code, of the TUI and of its shared server. Little is data.
The JavaScript heap, plus its native module.
The TUI and server each keep their own JavaScript code and data.
Quit
How fast each agent exits after /quit.
Time to quit
- opencode 220 ms
- pi 154 ms
- omp 114 ms
- Claude Code 60 ms
- smelt 44 ms
- fx 40 ms
- codex 28 ms
Values are medians of the runs. Whiskers and bands show the range. Kernel 7.0.0-43-generic, podman version 5.7.0.