harness lab

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-277 agents329 cases, 3 to 10 runs eachAMD Ryzen 9 7900X at 4.7 GHz

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
134.9 ms
4.4 MiB
9.1 MiB
13.4 s
827 ms
12 ms
236 MiB
21.1 MiB
913 ms
1334 ms
19.5 MiB
46.8 MiB
7.33 s
282 ms
136 ms
104 MiB
12.3 MiB
0.6 ms
32271 ms
103 MiB
397 MiB
3.87 s
915 ms
359 ms
194 MiB
6.5 MiB
93 ms
40260 ms
187 MiB
404 MiB
5.59 s
1.73 s
16 ms
466 MiB
19.2 MiB
515 ms
4035 ms
124 MiB
1.1 GiB
6.38 s
856 ms
93 ms
387 MiB
45.9 MiB
53 ms
40151 ms
232 MiB
447 MiB
9.18 s
1.54 s
288 ms
600 MiB
18.6 MiB
1.54 s
40287 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
feels instantnoticeablewaiting
Time from launch until a typed key shows on screen. Bare command, settings in config, and the opencode and codex servers already running. Log scale.
› Why NativeLoads JavaScriptTwo processes
Native

A small binary that shows the prompt at once.

Native

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

Native

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

Loads JavaScript

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

Loads JavaScript

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

Loads JavaScript

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

Two processes

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

Time from launch until the first request to the model, with settings as flags. Log scale.

Memory at start

Memory once settled after the first request, with a cold file cache.

Install size

  • Agent code
  • Runtime
  • Bytecode copy
  • Extra binaries and data
  • Other
  • Written at first launch
Disk space of the official install. For pi, this includes Node.js. Hover a part for its files.
› Why One binaryJavaScript twiceNode.js installSeveral binaries
One binary

One Zig binary.

One binary

One Rust binary and its Lua files.

JavaScript twice

Keeps source, bytecode, a web UI and a model catalog.

Node.js install

Includes Node.js, its development files and npm.

JavaScript twice

Keeps both JavaScript source and compiled bytecode.

JavaScript twice

Keeps source, bytecode and two native modules for different CPUs.

Several binaries

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

Headless is the task without the TUI. + TUI is the extra CPU time of the TUI. + Terminal is the time tmux needs to draw the output, on its own scale. Click a column to sort.
› Why Rewrites rowsLays out allAnimatesRebuilds rowsRenders all
Rewrites rows

Rewrites each screen row that changes. When the transcript scrolls, that is the whole screen. tui-alt-screen.ts:1795-1798

Lays out all

Lays out all messages each frame and parses Markdown again for each token. perf: Yoga layout and Markdown

Animates

The progress animation adds redraws between tokens. status_indicator_widget.rs:308-319

Animates

Animations add redraws between tokens, without clearing the screen. prompt_chrome.lua:252-263

Rebuilds rows

Rebuilds the session's display rows when the message list changes. rows.ts:164-187

Animates

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 all

Renders the whole transcript on each update, but writes finished text only once. transcript_blocks.zig:2817-2844

Terminal output

Bytes written to the terminal, with escape codes.

CPU use while streaming

0.0%5.0%10%15%20%30601202501000tokens/s
  • 17%
  • 17%
  • 15%
  • 14%
  • 11%
  • 10%
  • 8.4%
Average CPU use during the task, by streaming speed.

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

0 B200 MiB400 MiB600 MiB800 MiB14163264turns
  • 727 MiB
  • 600 MiB
  • 466 MiB
  • 387 MiB
  • 236 MiB
  • 194 MiB
  • 104 MiB
Memory after each checkpoint.

CPU time per turn

0 s1.00 s2.00 s3.00 s4.00 s4163264turns
  • 3.67 s
  • 3.18 s
  • 1.72 s
  • 1.18 s
  • 968 ms
  • 932 ms
  • 848 ms
Average between two checkpoints.
› Why Rebuilds per messageFlat
Rebuilds per message

Rebuilds all display rows per message and reads all history per step. rows.ts:164-187

Flat

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

Flat

Nearly level after turn 16, but each frame still lays out all messages.

Flat

CPU per turn stays level after turn 16.

Flat

CPU per turn stays level after turn 16.

Flat

CPU per turn stays level after turn 16.

Flat

CPU per turn stays level after turn 16.

Session data on disk

0 B10.0 MiB20.0 MiB30.0 MiB40.0 MiB50.0 MiB14163264turns
  • 45.9 MiB
  • 21.1 MiB
  • 19.2 MiB
  • 18.6 MiB
  • 16.6 MiB
  • 12.3 MiB
  • 6.5 MiB
Transcripts, history, databases and logs that the session adds. First-launch files are in the install size.

What the session data holds

  • JSONL
  • SQLite
  • SQLite WAL
  • JSON
  • Other
  • Text of the session, 4.8 MiB
Session data after 64 turns, by file format. The line is the session text itself: tool calls, output and answers.
› Why File per sessionOne databaseFolder per session
File per session

Saves each tool result once, plus small edit diffs.

One database

Keeps display and model history separately, plus request logs and a search index.

One database

One SQLite database for all sessions. The first shell command also copies a 3.5 MiB terminal helper into the home folder.

File per session

Its log is 3 times the session text. It also keeps each edited file before and after each edit.

File per session

Keeps tool results in 3 places, plus copies of edited files.

Folder per session

Saves tool output in both a log and separate files: about 4,320 files in 64 turns.

File per session

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

0 B100 MiB200 MiB300 MiB400 MiB500 MiB600 MiB700 MiB14816sessions
  • 566 MiB
  • 515 MiB
  • 391 MiB
  • 356 MiB
  • 154 MiB
  • 68.5 MiB
  • 64.3 MiB
Memory after each session.

Idle

An open session, left alone after a task.

What wakes an idle agent

wake-ups/s
CPU/s
01 s2 s
Two seconds of idle. Each tick is a timer from the agent's source, as tall as the CPU time of one wake-up. Wake-ups/s counts all threads over the whole idle. CPU/s is CPU time per second of idle, after the first 30 s. No agent draws while idle.
› Why WaitsSlow timersPolls filesBusy loopProfiler
Waits

Sleeps until input or a model event arrives.

Waits

No repeating timers. Update checks finish in the first 30 s.

Slow timers

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

Polls files

Checks ~/.claude.json every 1 s and the ~/.claude folder every 2 s. strace: statx every 1 s

Polls files

Checks plugin folders every 500 ms; sends a heartbeat every 15 s. watch.ts:100

Busy loop

Checks for input every 8 ms, about 120 times a second. main.zig:202

Profiler

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

0 s500 ms1.00 s1.50 s2.00 s0 s2 min5 minidle for
  • 1.54 s
  • 1.02 s
  • 913 ms
  • 515 ms
  • 93 ms
  • 53 ms
  • 0.6 ms
CPU time since the agent went idle.

Memory

0 B100 MiB200 MiB300 MiB400 MiB500 MiB0 s2 min5 minidle for
  • 426 MiB
  • 384 MiB
  • 305 MiB
  • 253 MiB
  • 112 MiB
  • 52.1 MiB
  • 18.1 MiB
Memory while idle.

What the memory holds

  • Code and mapped files
  • Heap and data
Memory after 5 min of idle. Code and mapped files can be read again from disk, and are mostly the program itself.
› Why SmallJavaScript heapOwn codeTwo heaps
Small

Its code and data fit in 16 MiB.

Small

Most of its memory is its own code.

JavaScript heap

Node.js code and a small heap.

JavaScript heap

The JavaScript heap is most of its memory.

Own code

About 80% is program code, of the TUI and of its shared server. Little is data.

JavaScript heap

The JavaScript heap, plus its native module.

Two heaps

The TUI and server each keep their own JavaScript code and data.

Quit

How fast each agent exits after /quit.

Time to quit

0 s50 ms100 ms150 ms200 ms250 msat startafter 64 turnsquit
  • 220 ms
  • 154 ms
  • 114 ms
  • 60 ms
  • 44 ms
  • 40 ms
  • 28 ms
Time from Enter until the process exits. The agent is idle before.

Values are medians of the runs. Whiskers and bands show the range. Kernel 7.0.0-43-generic, podman version 5.7.0.