Compare
Firecracker vs Docker vs gVisor vs Kata, on one machine
Same host, same node:22-bookworm image, same 2 vCPU / 4 GiB limits, interleaved rounds. A system wins only if its confidence interval clears every other. Jasmine wins 9 of 18.
Which is fastest for an AI agent?
| Measurement | Jasmine | Docker | gVisor | Kata |
|---|---|---|---|---|
| Create → first command | 87 ms | 174 ms | 192 ms | 3.35 s |
| Run a command | 4.1 ms | 37 ms | 28 ms | 34 ms |
| Write + read 1 KiB | 15 ms | 4.1 ms | 3.8 ms | 4.2 ms |
| Write + read 16 MiB | 433 ms | 209 ms | 207 ms | 210 ms |
| CPU-bound Python | 109 ms | 74 ms | 80 ms | 141 ms |
| 500 small fsync'd files | 594 ms | 341 ms | 454 ms | 694 ms |
| 512 MiB write + fsync | 2.73 s | 1.21 s | 1.22 s | 2.96 s |
| Held-out agent trace, 40 ops | 673 ms | 1.27 s | 1.31 s | 1.54 s |
| Clone + test a Python repo | 6.06 s | 5.16 s | 6.66 s | 7.60 s |
| Vite production build | 4.34 s | 2.64 s | 4.33 s | 4.91 s |
| Destroy | 75 ms | 121 ms | 133 ms | 339 ms |
| 1 sandbox, ready | 114 ms | 175 ms | 188 ms | 3.35 s |
| 5 at once, all ready | 398 ms | 432 ms | 551 ms | 6.04 s |
| 10 at once, all ready | 705 ms | 817 ms | 1.04 s | 10.85 s |
| 25 at once, all ready | 1.59 s | 1.96 s | 2.67 s | 25.50 s |
| Host memory per idle sandbox (used) | 5.4 MiB | 5.1 MiB | 29.6 MiB | 349.0 MiB |
| Host memory per idle sandbox (MemAvailable) | 3.5 MiB | 4.6 MiB | 27.4 MiB | 345.3 MiB |
| Command next to noisy neighbours | 9.6 ms | 87 ms | 78 ms | 98 ms |
Medians from fairbench on AMD EPYC 7763 64-Core Processor, 4 CPUs. Bold marks a statistically clear winner; no bold means no clear winner.
Questions people ask
Is Docker safe for running AI-generated code?
Docker containers share the host's kernel, so a kernel exploit in the container reaches the host. That's fine for code you trust. For code an AI agent wrote, a microVM (its own kernel behind a hardware boundary) or gVisor (a user-space kernel) is the safer default.
Is Firecracker faster than Docker?
For starting sandboxes and running commands, Jasmine's Firecracker microVMs measured faster on the same machine: 87 ms vs 174 ms to a first command, 4.1 ms vs 37 ms per command. Docker wins raw CPU and disk work, because it pays no virtual machine cost.
What's the difference between gVisor, Kata and Firecracker?
gVisor intercepts system calls with a kernel written in Go, in user space. Kata Containers runs each container inside a lightweight VM managed through containerd. Firecracker is a minimal VM monitor from AWS; Jasmine restores Firecracker VMs from memory snapshots so they start without booting.
Try it in a minute
Self-host it with one command, free. Jasmine Cloud, the hosted version, is in early access.