dock

Dock's local engine, measured.

Latencies of the dock CLI local engine on a GitHub-hosted runner, from one run of the open harness. Every figure comes from that run, and the raw samples are public.

Results

dock v0.3.2 on 2026-10-11. Times in milliseconds. Success was 100% in every scenario.

Latency per scenario in milliseconds, nearest-rank percentiles
ScenarioIterationsSuccessP50P95P99
Create, one at a time (create to first exec)50100%4,9015,0236,428
Create, 4 at once (per create)50100%8,1468,9279,658
exec('true') on a ready dock50100%20.121.538.0
Stop, then resume to first exec50100%4,8464,8554,866
Branch to 3 copies, until all answer exec10100%19,73720,13920,139
Branch to 10 copies, until all answer exec10100%51,15853,53653,536

Nearest-rank percentiles. With 50 iterations the P99 is the single slowest sample; with 10 iterations the P95 and P99 are both the slowest sample. They are observed samples, not tail-latency estimates.

Raw samples: bench/results. Write-up: docs.usedock.io/benchmarks.

What ran, and where

One GitHub-hosted runner, versions as reported by the run.

Date
2026-10-11
Dock
dock v0.3.2, local engine (QEMU on KVM). Dock is the only provider measured.
Image and size
ubuntu-24.04, cached before the clock starts. Each dock 2 vCPU, 1 GiB memory, 10 GiB disk.
Runner
GitHub-hosted ubuntu-latest (image ubuntu24 20261004.327.1), Linux 6.17.0-1022-azure
CPU
AMD EPYC 9V74, 4 vCPU, under a Microsoft hypervisor (nested virtualisation)
Memory
15.6 GiB
Hypervisor
QEMU 8.2.2 with KVM (/dev/kvm)
Client
bun 1.4.3, on the same machine as the engine

Read these numbers with their limits

They describe one machine and one run of the local engine. Here is what they do not show.

P99 is not a tail estimate
Percentiles are nearest-rank over the successful samples. At 50 iterations the P99 is the single slowest sample and the P95 the third slowest; at 10 iterations the P95 and P99 are both the slowest sample. Read them as observed samples, not as tail latency.
CLI start is included
Each operation is a call to the dock CLI, so every time includes starting the CLI process.
Nested virtualisation
The runner is a VM, and the docks are VMs inside it. Cold starts are expected to be slower than on bare metal; bare metal was not measured.
Not comparable to hosted sandboxes
The client runs on the same machine as the engine, so there is no network hop, and the iteration counts are lower than ComputeSDK's 100. Do not set these next to published numbers for hosted sandboxes.
Local engine only
This is the local engine of the dock CLI, not the Firecracker fleet. Docks on fleet hosts were not measured.
One runner, one run
It shows the order of magnitude on a shared 4 vCPU machine, not a distribution across machines. The CPU model is not fixed: a runner pool change can move it, so expect the same shape but not the same digits when you rerun it.
Contention
Create at 4 at once is slower per dock than one at a time because the four VMs share 4 vCPUs. Resume was measured one at a time.
Small docks
Docks are 1 GiB here so that ten copies fit next to the source in the runner's memory. The CLI default is 2 GiB.

Method

The clock boundaries follow ComputeSDK's sandbox benchmarks.

Create
The clock stops at the first successful exec('true').
Resume
The clock starts after the stop has finished and stops at the first successful exec('true').
Branch
The clock starts at the dock branch call and stops when every copy answers exec('true').
Failures
A failed iteration counts against the success rate and is listed with its error; it is never dropped.
Cleanup
Every dock is destroyed after its iteration, and the run fails if one cannot be. No dock was left behind.
Order
The image is pulled before the first scenario. Scenarios run in sequence on one runner, in the order of the table, and each writes its own results file.

Run it yourself

The harness is open source. Rerun the workflow, or run it on your own machine against the local engine or your own Dock.

The Bench workflow in usedock/dock reruns it monthly and on manual dispatch. To run it locally you need the dock CLI on the PATH with the ubuntu-24.04 image pulled. The workflow runs each scenario as its own step:

cd bench
bun install
export DOCK_BENCH_MEMORY_MIB=1024
bun run bench --provider dock-local --scenario sequential --iterations 50
bun run bench --provider dock-local --scenario burst --iterations 50 --concurrency 4
bun run bench --provider dock-local --scenario exec --iterations 50
bun run bench --provider dock-local --scenario resume --iterations 50 --concurrency 1
bun run bench --provider dock-local --scenario branch-3 --iterations 10
bun run bench --provider dock-local --scenario branch-10 --iterations 10

Each run writes a JSON and a CSV file to results/ and prints a table. The harness README covers running against a self-hosted Dock and every flag.

Start a dock in a minute.

Self-host Dock for free, or join the waitlist for Dock Cloud.