Skip to main content

Methodology

We compare the cost per execution-second: the cost of running one isolated execution for one second.
  • Sandbox providers: minimum allocatable memory × provider’s per-GiB-second rate. We use the cheapest provider (Cloudflare Containers) as the baseline.
  • Secure Exec: EC2/Hetzner instance cost ÷ number of concurrent executions that fit in RAM, with 30% empty capacity overhead to account for bin-packing inefficiency.
Secure Exec baseline memory per execution: ~3.4 MB (converged at-scale average, p95). See benchmarks for measurement details.

Results

All pricing as of March 2026. Almost all software runs on ARM today — we recommend comparing against ARM as a baseline.
ProviderArch$/exec-secondvs. Sandbox
Cloudflare Containers (baseline)$6.25 × 10⁻⁷
AWS t4g.micro (ARM/Graviton)arm64$1.11 × 10⁻⁸56× cheaper
AWS t3.micro (x86/Intel)x86_64$1.38 × 10⁻⁸45× cheaper
Hetzner CAX11 (ARM/Ampere)arm64$1.64 × 10⁻⁹380× cheaper
Hetzner CX22 (x86/Intel)x86_64$2.69 × 10⁻⁹232× cheaper

Pricing Sources

EUR→USD conversion: 1.09.

Scenario Breakdown

Lightweight Code Snippets

This is where Secure Exec shines the most.
  • ~3.4 MB baseline instead of 256 MB — you fit ~75× more executions per GB of RAM
  • Executions are bin-packed onto instances to maximize capacity utilization
  • Cold starts are ~16 ms (p95) instead of ~950 ms — you’re not paying for time waiting for a sandbox to boot
  • On Hetzner ARM, lightweight snippets are 380× cheaper than the cheapest sandbox provider

Heavyweight Execution (e.g. Dev Servers)

Memory overhead matters less when dev servers use 512 MB+ regardless.
  • The advantage shifts to hardware choice: you pick your cloud, instance type, and region
  • Sandbox providers vendor-lock you to their hardware and pricing
  • Self-hosted options like Hetzner or AWS Spot instances can dramatically reduce costs
  • No egress fees on most self-hosted providers

Summary

WorkloadPrimary cost advantage
Light snippets56–380× cheaper (memory + cold start)
Heavy (dev servers)Hardware choice, no vendor lock-in
High concurrencyBin-packing, no per-sandbox minimums
See also: Sandbox vs. Secure Exec for a feature-level comparison.