# Layers > Measured cost of container sandboxes (runc, Sysbox, gVisor, Kata Containers, Firecracker, AWS Nitro Sandboxes) and agent sandboxes (Anthropic srt, BoxLite, Perplexity SPACE), each against a plain container or the bare host on the same machine. The pages are drawn with JavaScript; the data and the recommender are also available without it, listed below. ## Recommender as JSON GET /layers/costs/recommend.json returns the infra sandbox and agent sandbox that cost least for a described workload, with scores, the bottleneck, trade-offs, what was ruled out and why, and what the data does not cover. Called with no parameters it returns the list of questions and allowed values (HTTP 400 with a usage body). Parameters (only `threat` is required; the response lists any defaults it assumed): - `threat`: whose code runs inside. `own` (my team's code), `agent` (code an AI agent or a customer writes), `hostile` (strangers' code, many tenants per node), `conf` (the node's operator must not see in) - `work`: what the work mostly does, several joined with a dot. `files`, `procs`, `net`, `disk`, `cpu` - `life`: how long one sandbox lives. `req` (seconds), `sess` (minutes), `long` (hours) - `durable`: must a saved write survive a crash. `yes`, `no` - `where`: `eks`, `ec2`, `metal`, `other` - `extra`: needs inside the sandbox, several joined with a dot. `docker`, `kvm`, `gpu` - `agent`: `none`, `pod` (agent runs in the pod, no extra box), `policy` (file and network rules per task), `vm` (a micro-VM per task) Example: /layers/costs/recommend.json?threat=agent&work=files.procs&life=sess&durable=no&where=eks&agent=policy How to read the answer: - `weighted_times_slower_than_plain_container` is the score; 1 means the same as a plain runc container. Lower is better. - A category with `comparable: false` was not measured like-for-like (its `flag` says why: no flush, capped, cached, in memory, CPU layout). It is never counted as a win. - `conditional_candidates` lists sandboxes left out of the ranking because `durable=yes` and they acknowledged a save before it reached the disk. Each has `required_change`. Do not recommend one without that change. - `check_before_committing` and `not_covered` are part of the answer. Quote them with any recommendation. - Isolation level is how each sandbox is built, not a measured security result. - `run_benchmark_on_my_workload.available` is false: that offer is a placeholder and nothing can be bought or submitted. - The human page for the same answer is in `links.page`. ## Data - /layers/costs/results.js: every published measurement as `window.R = {...}` (JSON after the `=`): medians, sample counts, ratio to runc with a 95% interval, and validity flags, per node setup and runtime - /layers/costs/agent-steps.js: the coding-agent job, per agent sandbox and step - /layers/costs/agent-attempts.jsonl: every attempt of that job - /layers/timeline/iterations.js: the study iteration by iteration (`window.TIMELINE = {...}`): what each iteration changed and why, and the numbers it measured (AWS spend is in the data, not shown on the page), newest first ## Pages - /layers/costs/: how each sandbox runs and where its largest measured cost sits - /layers/costs/compare.html: sandboxes side by side, by job or by operation - /layers/costs/recommend.html: the recommender as a page - /layers/costs/methods.html: how each test was run, and its limits - /layers/timeline/: the study iteration by iteration, from the latest numbers back to the untuned baseline - /layers/metal/: the same sandboxes on bare metal, without nested virtualization - /layers/tuned/: what tuning changed - /layers/nitro/: review of AWS Nitro Sandboxes on EKS - /layers/others/: self-hosted agent sandboxes (E2B Embed, CubeSandbox, warm pools, krun, microsandbox, Lambda MicroVMs): start, pause and resume times, and what each runs on