Harness Resource Bench compares seven coding agents’ resource use
state: expiredheat: lowuncertainty: mediumrelevance: mediumcoding-agent-benchmark resource-usageleonardcser
What is this?
Developer Leonard Cser published Harness Resource Bench, a reproducible benchmark of seven coding-agent versions, with runs dated 2026-11-08 and a Show HN post dated 2026-11-09. The benchmark applies scripted workloads in the same container on an AMD Ryzen 9 7900X, limited to two CPU cores and 4 GiB memory per agent. It measures startup, memory, install and session disk use, CPU use during tasks and while idle, among other metrics; results are medians with ranges shown. Cser discloses that he makes smelt, one of the agents tested, and says the method and code are in the repository. In these tests, different agents lead on different resource measures; the page cautions that they do not all have the same features. This measures machine-resource overhead, not coding quality, and the supplied evidence does not establish how well the results generalize beyond these versions, workloads and hardware. No independent validation or adoption evidence is supplied.
Why it matters
Coding-agent comparisons usually emphasize task success, but resource use can also shape the experience and practical cost of running agents—especially in constrained environments or repeated and long-running sessions. The benchmark offers a reproducible starting point for comparing that overlooked dimension. Its findings could help developers choose tools or spot optimization opportunities, but its single-machine setup and scripted tasks limit broad conclusions, and lower resource use does not establish better coding performance or overall value.
Current assessment
New evidence: Harness Resource Bench reports 231 cases across seven agents, run 2026-11-08 on an AMD Ryzen 9 7900X under specified CPU and memory limits. The results show trade-offs rather than one overall resource winner: fx, pi and smelt each have three benchmark leads, while the other four agents have none under the page's lead rule. Examples include fx at 5.8 MiB memory at start and 12.2 MiB install size; pi at 7.4 MiB session data on disk; and smelt at 121 ms headless-task CPU time and 102 MiB memory in a 64-turn session. These are reported measurements from the benchmark, not independently confirmed findings. The author makes smelt, which is included in the comparison; the page provides no independent replication. Agents differ in features, and the task, hardware, software versions, streaming assumptions and resource limits constrain interpretation. Useful follow-up: inspect the published method and code, test on other machines and workloads, and compare resource results alongside coding quality and capability. Supplied search results do not provide relevant corroboration or adoption evidence.
Measured heat
now 0 pts/hpeak 2 pts/hcomments 0/hpeers p8momentum: steady2 platformsage 336h
points/hour across evidence · reading as of 2026-11-23 23:25:07.162792+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Show HN: Harness Resource Bench – CPU, memory and disk of coding agentsRetrieved article excerptOpen article · Retrieved 2026-11-09T12:21:22.075834+00:00 # Resource use of coding agents
How much each coding agent costs your machine. Every agent does the same
scripted work in the same container. Lower is better.
Run
: 2026-11-08
Agents
: 7
Cases
: 231
Machine
: AMD Ryzen 9 7900X
Per agent
: 2 CPU cores, 4 GiB memory
## Overview
The median of each question. Blue marks a lead: the agent is clearly lowest, because all its 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 by it.
| | | | Start | | | Coding task | | | | Long session | | Idle |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| # | Agent | Leads↓ | Startup↓ | Memory↓ | Install↓ | CPU, TUI↓ | CPU, headless↓ | Terminal↓ | CPU use↓ | Memory↓ | Disk↓ | CPU↓ |
| 1 | fx 0.0.16 | 3 | 7.0 ms | 5.8 MiB | 12.2 MiB | 1.85 s | 197 ms | 11 ms | 4.6% | 253 MiB | 23.3 MiB | 849 ms |
| 1 | pi 1.5.0 | 3 | 288 ms | 101 MiB | 384 MiB | 1.36 s | 507 ms | 116 ms | 3.5% | 211 MiB | 7.4 MiB | 89 ms |
| 1 | smelt 0.8.0 | 3 | 36 ms | 19.3 MiB | 46.8 MiB | 1.64 s | 121 ms | 35 ms | 4.1% | 102 MiB | 13.7 MiB | 0.5 ms |
| 4 | Claude Code 2.1.319 | 0 | 267 ms | 174 MiB | 325 MiB | 3.48 s | 1.41 s | 11 ms | 8.6% | 497 MiB | 30.2 MiB | 504 ms |
| 4 | codex 0.167.0 | 0 | 76 ms | 127 MiB | 516 MiB | 2.59 s | 1.65 s | 22 ms | 6.3% | 329 MiB | 52.5 MiB | 34 ms |
| 4 | omp 18.18.0 | 0 | 822 ms | 285 MiB | 271 MiB | 2.87 s | 1.56 s | 142 ms | 7.1% | 482 MiB | 31.7 MiB | 785 ms |
| 4 | opencode 2.2.6 | 0 | 820 ms | 430 MiB | 247 MiB | 3.93 s | 2.73 s | 40 ms | 9.7% | 717 MiB | 31.3 MiB | 1.22 s |
- fx is clearly lowest on startup time, memory at start and install size.
- pi is clearly lowest on CPU in the TUI, CPU use while working and session data on disk.
- smelt is clearly lowest on headless CPU, memory in a long session and CPU when idle.
The agents do not all do the same things, and an agent with fewer features
can cost less. [Compare their features](https://leonardcser.github.io/harness-resource-bench/#/agents).
## Start
How fast each agent starts, and how much memory and disk it needs.
### Startup
feels instantnoticeablewaiting
fx
7.0 ms
smelt
36 ms
codex
76 ms
Claude Code
267 ms
pi
288 ms
opencode
820 ms
omp
822 ms
Time from launch until a typed key shows on screen. Log scale.
### Memory at start
fx
5.8 MiB
smelt
19.3 MiB
pi
101 MiB
codex
127 MiB
Claude Code
174 MiB
omp
285 MiB
opencode
430 MiB
Memory after the first request, with a cold file cache.
### Install size
fx
12.2 MiB
smelt
46.8 MiB
opencode
247 MiB
omp
271 MiB
Claude Code
325 MiB
pi
384 MiB
codex
516 MiB
Disk space that the official installer uses. For pi, this includes Node.js, which it needs to run.
## A coding task
One task with 24 tool calls. The model streams 120 tokens per second.
### CPU time, TUI
pi
1.36 s
smelt
1.64 s
fx
1.85 s
codex
2.59 s
omp
2.87 s
Claude Code
3.48 s
opencode
3.93 s
CPU time of all the agent's processes during the task.
### CPU time, headless
smelt
121 ms
fx
197 ms
pi
507 ms
Claude Code
1.41 s
omp
1.56 s
codex
1.65 s
opencode
2.73 s
The same task without the terminal UI.
### Terminal CPU time
Claude Code
11 ms
fx
11 ms
codex
22 ms
smelt
35 ms
opencode
40 ms
pi
116 ms
omp
142 ms
CPU time that the terminal (tmux) needs to draw the agent's output. Your machine pays this cost, not the agent.
### Terminal output
fx
177 KiB
Claude Code
302 KiB
codex
528 KiB
smelt
889 KiB
opencode
1.4 MiB
pi
1.4 MiB
omp
2.2 MiB
Bytes that the agent writes to the terminal, with escape codes.
### CPU use while streaming
0.0%10%20%30%40%50%30601202501000tokens/sClaude Code 43%codex 35%fx 11%omp 34%opencode 48%pi 15%smelt 13%
Average CPU use during the task, at different streaming speeds.
## A long session
One session of 64 turns. Each turn has as many tool calls as a real one. Each agent compacts its history when it gets near the context limit.
### Memory
0 B200 MiB400 MiB600 MiB800 MiB14163264turnsClaude Code 497 MiBcodex 329 MiBfx 253 MiBomp 482 MiBopencode 717 MiBpi 211 MiBsmelt 102 MiB
Memory after each checkpoint.
### CPU time per turn
0.0 ms2.00 s4.00 s6.00 s8.00 s4163264turnsClaude Code 2.15 scodex 1.31 sfx 7.66 somp 875 msopencode 4.15 spi 923 mssmelt 987 ms
Average between two checkpoints.
### Session data on disk
0 B10.0 MiB20.0 MiB30.0 MiB40.0 MiB50.0 MiB60.0 MiB14163264turnsClaude Code 30.2 MiBcodex 52.5 MiBfx 23.3 MiBomp 31.7 MiBopencode 31.3 MiBpi 7.4 MiBsmelt 13.7 MiB
Transcripts, history, databases and logs that the agent saves.
## New sessions
16 sessions in one process, each started with the agent's new-session command. This shows memory that a finished session leaves behind.
### Memory
0 B100 MiB200 MiB300 MiB400 MiB500 MiB600 MiB700 MiB124816sessionsClaude Code 397 MiBcodex 250 MiBfx 50.8 MiBomp 423 MiBopencode 610 MiBpi 173 MiBsmelt 69.9 MiB
Memory after each session.
## Idle
An open session, left alone after a task.
### CPU time
0.0 ms500 ms1.00 s1.50 s2.00 s2.50 s0 s30 s1 min2 min5 minidle forClaude Code 504 mscodex 34 msfx 849 msomp 785 msopencode 1.22 spi 89 mssmelt 0.5 ms
CPU time since the agent went idle.
### Memory
0 B100 MiB200 MiB300 MiB400 MiB500 MiB600 MiB0 s30 s1 min2 min5 minidle forClaude Code 271 MiBcodex 195 MiBfx 14.8 MiBomp 294 MiBopencode 435 MiBpi 109 MiBsmelt 48.6 MiB
Memory while idle.
Values are medians of the runs. Whiskers and bands show the range. AMD Ryzen 9 7900X 12-Core Processor, kernel
7.0.0-43-generic, podman version 5.7.0. | leonardcser | 7 | 0 |
| 🟧 echo.github ⭐ | The origin is the author's repository, which contains the benchmark, method, results, and website. Its README says: “Benchmarking CPU, memor | Leonard Cser (GitHub user leonardcser) | — | — |
Interpretation history
2026-11-09T12:21:48Z
audience grounding: medium — Coding-agent comparisons usually emphasize task success, but resource use can also shape the experience and practical cost of running agents—especially in constrained environments or repeated and long-running sessions. The benchmark offers a reproducible starting point for comparing that overlooked dimension. Its findings could help developers choose tools or spot optimization opportunities, but its single-machine setup and scripted tasks limit broad conclusions, and lower resource use does not establish better coding performance or overall value.
Decision trace
- 11-24 00:20expireexpired deterministically: single-evidence seed quiet 14 days (lifecycle)
- 11-09 23:23attention_candidatecreate
- 11-09 23:22promote_anchororigin walk conf 0.98
- 11-09 23:21groundCoding-agent comparisons usually emphasize task success, but resource use can also shape the experience and practical cost of running agents—especially in constrained environments or repeated and long
- 11-09 23:21createThe benchmark is a distinct, usable comparison, but its creator also builds one of the tested agents and the results have not been independently validated.