Jasmine

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?

MeasurementJasmineDockergVisorKata
Create → first command87 ms174 ms192 ms3.35 s
Run a command4.1 ms37 ms28 ms34 ms
Write + read 1 KiB15 ms4.1 ms3.8 ms4.2 ms
Write + read 16 MiB433 ms209 ms207 ms210 ms
CPU-bound Python109 ms74 ms80 ms141 ms
500 small fsync'd files594 ms341 ms454 ms694 ms
512 MiB write + fsync2.73 s1.21 s1.22 s2.96 s
Held-out agent trace, 40 ops673 ms1.27 s1.31 s1.54 s
Clone + test a Python repo6.06 s5.16 s6.66 s7.60 s
Vite production build4.34 s2.64 s4.33 s4.91 s
Destroy75 ms121 ms133 ms339 ms
1 sandbox, ready114 ms175 ms188 ms3.35 s
5 at once, all ready398 ms432 ms551 ms6.04 s
10 at once, all ready705 ms817 ms1.04 s10.85 s
25 at once, all ready1.59 s1.96 s2.67 s25.50 s
Host memory per idle sandbox (used)5.4 MiB5.1 MiB29.6 MiB349.0 MiB
Host memory per idle sandbox (MemAvailable)3.5 MiB4.6 MiB27.4 MiB345.3 MiB
Command next to noisy neighbours9.6 ms87 ms78 ms98 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.