10 iterations and 6,000+ measurements, each against a plain container on the same machine. The benchmark measures performance overhead. The diagrams show how each sandbox is built. We did not measure how well each one holds.
The 3D view could not start in this browser. The story reads the same without it.
From request to useful work · an illustration of the architecture, not a security test
The pod started in 1.5 seconds. The work finished in 37.1.
What happened in between, and which layer would you tune next? Follow one coding agent’s job through the layers of its sandbox, in five steps.
From request to useful work · one coding agent’s job
Five steps, each with its experiment.
step 1Give the agent somewhere to runA short pod completes 1.4 to 3.2 seconds later in a Kata VM, and 3.1 seconds later in AWS Nitro on its own cluster. gVisor adds no start time. No setting that we tested removed the VM start.Pod start for each sandbox →Bare-metal experiment →
step 2Get to the first commandWith image streaming, the pod ran after 1.5 s and the work was done after 37.1 s. A full pull took 50.9 s and 68.1 s. The wait moves from before the first command into the work.Image streaming →
step 3Get through the workThree defaults made the work slow. Kata’s shared folder: 11.0 s to 0.10 s with a block disk. gVisor in a 1-CPU pod: 3.6× to 1.8× with its own CPU allowance. Nitro’s disk limit: 33.5 s to 7.1 s.The four causes →Tuning experiment →
step 4Save a result you can trustSome setups report a save before the disk has it. We leave them out. When each save waits, the disk decides: 520 saved writes each second on a network disk, 23,400 on a local disk.How we measured →Nitro experiment →
step 5Decide what to reuseA running pod from a pool takes about 70 ms for each runtime. A clone of a prepared workspace takes 0.03 s, against 8 s for a reinstall. A new box for each task adds 0.25 to 3.5 s.Other sandboxes →Coding-agent sandboxes →
Each step comes from its own run, with its own files and node. The steps do not add up to one total. Disk and workspace numbers in steps 2 to 5 come from the storage run: a plain container on an m8id.xlarge node, with a workspace of 140,790 files.
Other sandboxesE2B, CubeSandbox, warm pools, krun, microsandbox and Lambda MicroVMs, started, paused and resumed.
Why
Four causes, each with its experiment.
The four causesWhat happened, why, what we changed and the result.
TuningThe same sandboxes with defaults changed, next to the defaults.
AWS NitroAWS Nitro Sandboxes on EKS, measured, with its limits and costs.
Bare metalThe same sandboxes on bare metal and on a nested control.
Pick
For readers who must decide.
Pick a sandboxDescribe your work and get a stack, its cost and what the data cannot tell you.
Lab notebook
The methods and every experiment. Read this before quoting a number.
Lab notebookAn index of every experiment, with what each one holds.
How we measuredMachines, runs, how ratios are taken and why some cells are left out.
IterationsAll 10 iterations of the study, one number at a time.
Look from any layerEvery layer around one process, from the cloud down to the container.
For agentsThe data and the recommender as plain text and JSON.
Home lab: the tuning node, an m8id.xlarge in us-east-2 with nested virtualization and local NVMe, containerd, Kata 4.3.1 with QEMU, gVisor release-20261102.0, 1 CPU / 2 GiB pods, iteration 6. Steps marked with another run come from the main run, the Nitro runs (EKS, iteration 3), the bare-metal run (iteration 5), the coding-agent job (iteration 4), the follow-up run (iteration 10), the image streaming run or the storage run. Every number compares a sandbox with a plain container in the same lab. The layers show how each sandbox is built; isolation strength was not measured.