Benchmark

The opt-in, anonymous sandbox benchmark at agent-box.sh/bench, what it measures and exactly what a hub sends

agent-box.sh/bench is a live benchmark of dev sandboxes, built from how they perform while people actually use them. Its hero is a ranking of the providers, best on the left, by boot time, CPU speed, I/O speed or cost; below it are the detail tables: boot time, create failures, agent tokens/s, model API errors and resource pressure, by provider, size and location. The numbers come from AgentBox hubs whose owners turned sharing on. Sharing is off by default.

Each provider also has its own page, such as agent-box.sh/bench/hetzner. It shows that provider's numbers by size and location, a capabilities table, list prices per size, and how the provider bills a box. The capabilities come from the provider table in the AgentBox code, plus a few hand-kept values that print their source. Pages exist for docker, remote-docker, hetzner, digitalocean, daytona, e2b and vercel. Community provider plugins have none yet. Like /bench, each page has a user-data view and a lab view, such as /bench/hetzner/users and /bench/hetzner/lab. A table at the bottom of /bench compares the providers and links to their pages.

What is measured

Every hub records these for its own boxes. They stay on the hub unless you opt in.

  • Boot time. Each step of a create (image, provision, workspace seed, credentials, carry, bootstrap, agent start, ...) is timed by the hub that runs it. The boot time is the sum of the steps, minus a browser re-login, which is a person's wait.
  • Create failures. A failed create is classified by category: capacity, config, quota, auth, network, timeout, image, provider-5xx, agent-login, oom or unknown, plus the step it failed at. The public failure rate leaves out config (a size or location that does not exist, an invalid agentbox.yaml): those are the user's own mistakes, not the provider's.
  • Agent throughput. The hub reads each model turn from the agent's transcript: output tokens over the time from the request to the last token. Tokens/s counts turns of 200 or more output tokens (shorter ones mostly measure the wait for the first token). Time to first token is there only where the agent records it (codex).
  • Model API errors. Rate limits, overloaded, server errors, connection errors, timeouts, auth and invalid requests per turn, retried ones included. A subscription's own usage limit is counted as plan-limit, never as throttling.
  • Resource pressure. A sampler inside every box reads /proc/stat (CPU steal), cgroup cpu.stat (throttled periods) and PSI (CPU, IO and memory pressure) every 15 seconds. Each minute is tagged with what the box was doing: booting (running its boot tasks), agent working, or idle, so a building box is never compared with an idle one. PSI is missing on E2B.
  • CPU speed (work score). Once a box is idle it times a fixed single-thread kernel (sha256 over 256 MiB) at the lowest priority, about 1000 for one modern server core. The ranking shows the median box's score; the rows of the tables also carry it as a bucket (0-99, 100-199, 200-399, 400-799, 800+), so a slow CPU can be told from a slow provider.
  • I/O speed (disk probe). Once per box boot, after the work score, when the boot tasks are done and the box is idle (lowest CPU priority, ionice -c3 where the box has it, never on the 15-second cadence, stopped if the agent starts working), the box writes 64 MiB of non-repeating data to a scratch file on the workspace's filesystem with fsync, reads it back with O_DIRECT (dd iflag=direct) so the page cache cannot answer, and deletes it. It runs again only when a later work score moves by more than 20% (the box landed on other hardware). The ranking's bar is the write+fsync rate: it is what a build or a checkout waits on, and every filesystem can report it. The O_DIRECT read is in the readout; where the filesystem refuses O_DIRECT it is left out rather than measured through the cache. The file goes to a writable scratch directory on the same filesystem (/var/tmp, the temp dir or home); where there is none the probe is skipped, never written into your repo.
  • Cost. Not measured: the list price of one box of the size on each bar (the busiest size the hubs ran on that provider that has a public price, at its location), per hour with the box fully busy, from the providers' public pricing pages (the table, with its sources and the date checked, is on the page). It is list price, not what anyone paid: no plan credits, free tiers, discounts or taxes. Docker and remote Docker run on your own machine and are left out.

Turning it on

In the hub, open Benchmarks and click Share anonymous data: the dialog shows exactly what would be sent and has the on/off setting. Or from a shell:

$ agentbox config set --global bench.share on

The hub reads bench.share from its own machine's global config on every hourly tick, so no restart is needed. On a deployed hub, set it on the control box. Once a day the hub posts every complete UTC day it still holds in full (up to the last seven, within perf.retentionDays) that changed since it last sent it.

Before turning it on, look at what it would send:

$ curl -s -H "Authorization: Bearer $(cat ~/.agentbox/hub/token)" \
    http://127.0.0.1:8787/api/v1/perf/share/preview

submissions in the answer is the exact JSON the next run posts. The preview saves nothing: for a month your hub has not sent yet it shows a fresh random submitter, and the real one is minted by the first send. To delete everything your hub has sent (the dialog offers this when you turn sharing off):

$ curl -s -X DELETE -H "Authorization: Bearer $(cat ~/.agentbox/hub/token)" \
    http://127.0.0.1:8787/api/v1/perf/share

The routes are in the API reference.

What a submission contains

One JSON document per month of data, { v, submitter, days }. The schema is BenchSubmission in @agentbox/usage-view (packages/usage-view/src/bench.ts), shared by the hub that sends it and the site that receives it. The site refuses anything else, including unknown keys.

  • submitter: 22 random characters, a new one each month and per site. It lets the site replace a day that is sent again instead of counting it twice. A secret minted with it stays on your hub (~/.agentbox/hub/bench-share.json, readable only by you) and goes out only to authorize that id's posts and its delete. The site keeps only the secret's hash.
  • days[]: one entry per UTC day, { day, boot, turns, resources, machines }. Each row is keyed by provider (docker, hetzner, daytona, vercel, e2b, remote-docker, digitalocean, host, other), size and location (the provider's catalog ids, like cx23 and nbg1; docker is local), agent and the work-score bucket; turns add the model id, and resources add the state (boot, agent, idle).
    • boot: successful and failed create counts, failures by category and by step, and histograms of the boot time and of each step.
    • turns: turn counts, histograms of tokens/s and time to first token, API errors by category, and how many ended the turn.
    • resources: minutes, and histograms of the per-minute steal, iowait, cgroup throttling and PSI.
    • machines: per provider, size and location, the number of boxes and one sample per box: histograms of the work score and of the disk probe's write and read MB/s.

Histograms are counts over fixed bucket edges defined in the schema, so the site merges hubs by adding them up.

Never in a submission: box, project, repo, branch, session, host or user names, any id other than the monthly submitter id, paths, prompts or any time finer than the day. A size or location that is not a plain catalog id is sent as unknown, never as typed, and a provider AgentBox does not know is sent with no size or location. A model id is cut to its public family, tiers and version (claude-opus-5-5, gpt-4o), without its routing prefix (anthropic/, openrouter/): anything after the version that is not a known tier word is dropped, so gpt-4o-acme-prod is sent as gpt-4o. A fine-tune (ft:...) or a name outside the public families, which could carry an organization's or project's name, is sent as other.

The hub sends one month per scheduled run, so ids of two months never reach the site together. The site keeps only days for dates (when a post arrived, when an id was first seen) and a network-address hash keyed by the data day, so it can count distinct hubs without linking one hub's days or months together.

How the page shows it

The site takes days up to 8 days old; older days are closed. The page merges the 30 most recent closed days and is rebuilt once a day (and when a lab run arrives), never on a hub's submission, so two versions of the page never differ by one hub's post. Percentiles are read from the bucketed histograms, so they are approximate.

  • A day counts toward a row only when at least 3 distinct hubs from 3 distinct network addresses contributed to it that day (IPv6 counted per /48), so ids minted from one address do not unlock a row.
  • Each network address weighs at most one busy hub per row and day, however many submitter ids and rows it sends: 100 creates, 5000 turns, ten box-days of resource minutes, 20 boxes. An honest hub stays under these; a flood of failed creates cannot push a provider's failure rate to 100%. One address feeds at most 200 distinct rows a day.
  • The site keys its rows by what the page shows, so a made-up size lands in the provider's one "other" row instead of a new row.
  • Each bar of the ranking is one size and location: the provider's default size (Hetzner cx23, DigitalOcean s-2vcpu-4gb, ...) where it has data, else its busiest. Its boot time, score, disk speed and price are that size's, never a mix.
  • Only the providers' public sizes and locations, and public model ids, are shown; anything else is "other".

What is left: the opt-in is anonymous, so the site cannot tell a real hub from a made-up one. Someone with two or three network addresses (a cloud VM or an IPv6 tunnel each) can still unlock a row alone, or send 2 fake hubs beside one real one and read that hub's day from the result; many addresses can move a row, each as one capped hub. A real hub that deletes its submissions changes days the page already showed, at the next rebuild. The thresholds and caps make abuse expensive, not impossible.

Lab runs

Besides the hubs that opt in, AgentBox runs its own lab runs: on a schedule, our control box creates short-lived boxes across a matrix of providers, sizes and locations, measures each one exactly as a user box is measured (create steps and failures, work score, disk probe, one short claude turn), and destroys it. Lab data fills the combinations few people run, and it is kept apart from user data:

  • Only our hub can post it, to POST /api/bench/lab, authorized by a shared secret (Authorization: Bearer). Without the secret configured the route answers 503, with a wrong one 401; DELETE /api/bench/lab/<runId> removes a bad run.
  • A run is one document, { v, run: { id, day }, day: { boot, turns, resources, machines } } (BenchLabSubmission in @agentbox/usage-view), with the same rows, enums, histograms and catalog rules as a user day, and its own size caps. The site keeps the last 35 days of runs; a run sent again replaces itself.
  • Lab runs carry no submitter id and no network-address hash. They are never counted as a hub, never added to the user-data rollup and never help a user row pass its 3-hub threshold.

Lab boxes run on one control box's network and live for minutes, while user data comes from real use, so the two are stored apart and the page keeps them distinguishable:

  • agent-box.sh/bench shows both, /bench/users only user data and /bench/lab only lab runs.
  • On /bench a lab cell is added to the user-data cell of the same provider, size and location only after the user data has passed its 3-hub threshold, so comparing /bench with /bench/lab never reveals a row that did not pass.
  • Every ranking bar and table row says where its numbers come from (lab, user data or lab + user data) and how many samples each source has (and, for user data, how many hubs).
  • User data keeps its 30 closed days; lab runs are read over the 30 days ending today, so a run shows as soon as it arrives. A lab run rebuilds /bench and /bench/lab when it arrives; a user post never rebuilds a page.

These are numbers from real use, not a fixed workload: compare like with like (same model, same state) and mind the sample counts beside each row.

On this page