Skip to content
This is the documentation for main, which is not released yet. Read the latest.

Benchmarks

This page shows how fast Dicer gives you a working environment, how many fit on one host and what each costs, and what a guest gives up to its hypervisor. tools/bench measured it all, on an arm64 host and an x86_64 one, and every number is kept in the repository with the host and the versions it ran on. You can run the same suite on your own hardware and set your numbers beside these.

In short

  • A new instance’s process runs 326–394 ms after the start call, under either hypervisor, on either host.
  • A copy of a running sandbox answers in 979 ms–1.6 s, forked from a memory snapshot. Under Firecracker, each copy takes 14 MiB of the host’s memory.
  • 1,600 idle sandboxes fit on a host with 256 GiB of memory, and 2,200 on one with 384 GiB, at $0.0005–$0.0006 each an hour on Spot. The host runs out of memory before their answers slow down.
  • A guest’s vCPU runs at 100% of the speed of one of the host’s CPUs.
  • Restarting the daemon, as an upgrade does, leaves its API unanswered for 1.1 s. The instances keep running throughout.

Results

The suite ran on two hosts, an arm64 one and an x86_64 one. Each table shows them side by side, with a column for each hypervisor under each host. Most results were measured many times. A value is the typical one: the median, the middle of all the measurements. Beneath it is the slowest 1%, the 99th percentile: only one measurement in a hundred took longer. On each host, the better hypervisor’s value is in colour, with how much better it is beneath it.

HostHardwareVersionsPrice an hourData
m7g.metal
11 Oct 2026
arm64, 64 CPUs, 251 GiB
Graviton3
Dicer v0.4.0
Cloud Hypervisor v53.0.0, Firecracker v1.17.0
$2.61 on demand
$0.84 on Spot
Results
The publish suite
m7i.metal-24xl
11 Oct 2026
x86_64, 96 CPUs, 377 GiB
Intel Xeon Platinum 8488C
Dicer v0.4.0
Cloud Hypervisor v53.0.0, Firecracker v1.17.0
$4.84 on demand
$1.41 on Spot
Results
The publish suite

Each host ran Ubuntu 24.04 and nothing but the benchmarks, with the data directory on an EBS gp3 volume of 400 GB at 16,000 IOPS and 1,000 MB/s. The limits that thousands of instances reach were raised, as Running thousands of instances describes, and resources.memory_overcommit was set high enough that the host’s memory, not the daemon’s admission, decided how many fit.

How fast is an instance ready?

How long it takes from asking for an instance until it can be used. The instance is started from its image, one at a time or many at once, forked from a snapshot of one already running, or woken from standby.

A new instance, one at a time

From defining it to deleting it.

Share of starts whose process was running by each time
0%25%50%75%100%303 ms329 ms356 ms382 ms409 msfrom the start call
Cloud Hypervisor, m7g.metal Firecracker, m7g.metal Cloud Hypervisor, m7i.metal-24xl Firecracker, m7i.metal-24xl
m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
dicer run, until the process runs344 msp99 364 ms333 msp99 339 ms400 msp99 408 ms402 msp99 415 ms
Defining the instance7.9 msp99 12 ms6.9 msp99 7.7 ms1.2× faster8.1 msp99 9.5 ms8.1 msp99 12 ms
The start call, until the process runs336 msp99 357 ms326 msp99 332 ms391 msp99 400 ms394 msp99 407 ms
The start call, until exec works357 msp99 376 ms349 msp99 353 ms424 msp99 432 ms419 msp99 425 ms
Stopping it50 msp99 61 ms1.1× faster57 msp99 71 ms61 msp99 73 ms1.1× faster65 msp99 76 ms
Deleting it8.6 msp99 12 ms7.8 msp99 8.2 ms1.1× faster7.8 msp99 11 ms7.7 msp99 11 ms
How it's measured

From each call until the instance is defined, started, stopped or deleted. Its process counts as running once its command connects to the host: by then its guest has booted, its network is up and its command has started. The guest connects to the host, rather than the host to the guest, because a connection from the host before the guest was up would wait a second for the kernel’s next ARP request.

Setup
Guest
alpine:3.21
vCPU
1
Memory
512 MiB
Disk
1 GiB
Runs
100, after 5 unmeasured
Reproduce
tools/bench/run.sh HOST boot -set hypervisor=cloud-hypervisor -set concurrency=1 -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=512 -set runs=100 -set vcpus=1 -set warmup=5
tools/bench/run.sh HOST boot -set hypervisor=firecracker -set concurrency=1 -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=512 -set runs=100 -set vcpus=1 -set warmup=5

Many new instances at once

As a CI system or an agent platform asks for them.

Share of starts whose process was running by each time
0%25%50%75%100%483 ms700 ms916 ms1.1 s1.3 sfrom the start call
Cloud Hypervisor, m7g.metal Firecracker, m7g.metal Cloud Hypervisor, m7i.metal-24xl Firecracker, m7i.metal-24xl
m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
The start call, until the process runs1.2 sp99 1.3 s916 msp99 1.1 s1.3× faster830 msp99 1.0 s871 msp99 924 ms
The start call, until exec works1.2 sp99 1.6 s1.0 sp99 1.2 s1.2× faster937 msp99 1.2 s1.1× faster989 msp99 1.1 s
How it's measured

From each instance’s start call, while the others start too.

Setup
Guest
alpine:3.21
vCPU
1
Memory
512 MiB
Disk
1 GiB
Runs
200
At once
50
Reproduce
tools/bench/run.sh HOST boot -set hypervisor=cloud-hypervisor -set concurrency=50 -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=512 -set runs=200 -set vcpus=1 -set warmup=0
tools/bench/run.sh HOST boot -set hypervisor=firecracker -set concurrency=50 -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=512 -set runs=200 -set vcpus=1 -set warmup=0

Copies of a running sandbox

Forked from a memory snapshot of a Python web service.

m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Taking the snapshot214 ms2.8× faster598 ms170 ms3.0× faster504 ms
The fork call, until the copy answers1.6 sp99 1.9 s993 msp99 2.0 s1.6× faster1.6 sp99 1.8 s979 msp99 1.9 s1.6× faster
Until every copy answers41 s25 s1.6× faster39 s25 s1.6× faster
Host memory each copy takes392 MiB14 MiB27× less181 MiB14 MiB13× less
How it's measured

From each fork call until the copy’s web service answers. Host memory each copy takes is how much less memory the host had once the copies settled, divided by the copies.

Setup
Guest
python:3.13-alpine
Workload
idle
vCPU
1
Memory
512 MiB
Disk
1 GiB
Copies
500
At once
20
Reproduce
tools/bench/run.sh HOST fork -set hypervisor=cloud-hypervisor -set concurrency=20 -set disk_mib=1024 -set forks=500 -set image=docker.io/library/python:3.13-alpine -set memory_mib=512 -set settle=10s -set vcpus=1 -set working_set_mib=64 -set workload=idle
tools/bench/run.sh HOST fork -set hypervisor=firecracker -set concurrency=20 -set disk_mib=1024 -set forks=500 -set image=docker.io/library/python:3.13-alpine -set memory_mib=512 -set settle=10s -set vcpus=1 -set working_set_mib=64 -set workload=idle

Snapshots of a 2 GiB guest

Taken once the guest has filled half its memory.

m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Taking the snapshot711 msp99 714 ms3.4× faster2.4 sp99 2.4 s656 msp99 664 ms3.0× faster2.0 sp99 2.0 s
Its size on disk2.0 GiBp99 2.0 GiB2.0 GiBp99 2.0 GiB2.0 GiBp99 2.0 GiB2.0 GiBp99 2.0 GiB
Forking it, until the copy works60 msp99 62 ms44 msp99 46 ms1.4× faster72 msp99 74 ms46 msp99 46 ms1.6× faster
How it's measured

Once the guest has filled half its memory with random bytes, which cannot be shared or compressed away.

Setup
Guest
alpine:3.21
vCPU
1
Memory
2 GiB, 1 GiB filled
Disk
1 GiB
Runs
5
Reproduce
tools/bench/run.sh HOST snapshot -set hypervisor=cloud-hypervisor -set disk_mib=1024 -set fill_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=2048 -set runs=5 -set vcpus=1
tools/bench/run.sh HOST snapshot -set hypervisor=firecracker -set disk_mib=1024 -set fill_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=2048 -set runs=5 -set vcpus=1

Snapshots of an 8 GiB guest

Taken once the guest has filled half its memory.

m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Taking the snapshot2.9 sp99 2.9 s4.2× faster12 sp99 12 s2.4 sp99 2.4 s4.4× faster11 sp99 11 s
Its size on disk8.0 GiBp99 8.0 GiB8.0 GiBp99 8.0 GiB8.0 GiBp99 8.0 GiB8.0 GiBp99 8.0 GiB
Forking it, until the copy works79 msp99 80 ms45 msp99 46 ms1.7× faster72 msp99 73 ms46 msp99 47 ms1.6× faster
How it's measured

As for the 2 GiB guest.

Setup
Guest
alpine:3.21
vCPU
1
Memory
8 GiB, 4 GiB filled
Disk
1 GiB
Runs
3
Reproduce
tools/bench/run.sh HOST snapshot -set hypervisor=cloud-hypervisor -set disk_mib=1024 -set fill_mib=4096 -set image=docker.io/library/alpine:3.21 -set memory_mib=8192 -set runs=3 -set vcpus=1
tools/bench/run.sh HOST snapshot -set hypervisor=firecracker -set disk_mib=1024 -set fill_mib=4096 -set image=docker.io/library/alpine:3.21 -set memory_mib=8192 -set runs=3 -set vcpus=1

Standby

A guest parked to disk, and woken.

m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Putting it on standby407 msp99 415 ms15× faster6.3 sp99 6.4 s363 msp99 370 ms17× faster6.0 sp99 6.0 s
Disk it takes on standby1.0 GiBp99 1.0 GiB1.0 GiBp99 1.0 GiB1.0 GiBp99 1.0 GiB1.0 GiBp99 1.0 GiB
The start call that wakes it39 msp99 40 ms27 msp99 27 ms1.5× faster60 msp99 64 ms28 msp99 30 ms2.1× faster
Waking it, until exec works46 msp99 47 ms31 msp99 31 ms1.5× faster68 msp99 72 ms32 msp99 33 ms2.1× faster
How it's measured

Once the guest has filled part of its memory. Disk it takes on standby is how much less space the data directory’s disk had afterwards.

Setup
Guest
alpine:3.21
vCPU
1
Memory
1 GiB, 256 MiB filled
Disk
1 GiB
Runs
10
Reproduce
tools/bench/run.sh HOST standby -set hypervisor=cloud-hypervisor -set disk_mib=1024 -set fill_mib=256 -set image=docker.io/library/alpine:3.21 -set memory_mib=1024 -set runs=10 -set vcpus=1
tools/bench/run.sh HOST standby -set hypervisor=firecracker -set disk_mib=1024 -set fill_mib=256 -set image=docker.io/library/alpine:3.21 -set memory_mib=1024 -set runs=10 -set vcpus=1

How many instances fit on a host?

Instances are added a batch at a time. Each is a sandbox: a Python web service waiting to be used, which the benchmark asks something at a steady rate all the while. Adding stops when the host runs short of memory or disk, or when the sandboxes’ answers slow down.

Idle sandboxes

Every instance waiting to be used.

Host memory each sandbox takes, as sandboxes were added
0 MiB48 MiB97 MiB145 MiB193 MiB05501,1001,6502,200sandboxes
Cloud Hypervisor, m7g.metal Firecracker, m7g.metal Cloud Hypervisor, m7i.metal-24xl Firecracker, m7i.metal-24xl
m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Sandboxes, before the host was full or answers slowed down1,6001,6002,2002,200
Host memory each takes144 MiB146 MiB162 MiB157 MiB
Disk each takes15 MiB15 MiB16 MiB16 MiB
Cost per sandbox-hour, on demand$0.0016$0.0016$0.0022$0.0022
Cost per sandbox-hour, on Spot$0.0005$0.0005$0.0006$0.0006
How it's measured

Once each batch is up. A request’s time counts from when it was due, not from when it was sent, so a sandbox that falls behind is charged for the requests queued behind it. Answers have slowed down once the slowest 1% take twice as long as with the first batch, or one request in a thousand fails. Host memory each takes is how much less memory the host had once full than before any sandbox ran, divided by the sandboxes. A guest gives back the memory it frees, but not its page cache.

Setup
Guest
python:3.13-alpine
Workload
idle
vCPU
1
Memory
512 MiB
Disk
1 GiB
Added
100 at a time
At once
16
Requests
every 5 s
Each step
20 s
Until
10% left
Reproduce
tools/bench/run.sh HOST fleet -set hypervisor=cloud-hypervisor -set batch=100 -set busy_ratio=0 -set concurrency=16 -set disk_mib=1024 -set image=docker.io/library/python:3.13-alpine -set job_mib=64 -set job_rest=10s -set max=0 -set measure=20s -set memory_mib=512 -set min_available=0.1 -set rate=0.2 -set vcpus=1 -set work_kib=256 -set working_set_mib=64 -set workload=idle
tools/bench/run.sh HOST fleet -set hypervisor=firecracker -set batch=100 -set busy_ratio=0 -set concurrency=16 -set disk_mib=1024 -set image=docker.io/library/python:3.13-alpine -set job_mib=64 -set job_rest=10s -set max=0 -set measure=20s -set memory_mib=512 -set min_available=0.1 -set rate=0.2 -set vcpus=1 -set work_kib=256 -set working_set_mib=64 -set workload=idle

Sandboxes, some of them busy

Some instances run a batch job over and over instead of waiting.

Slowest 1% of answers, as sandboxes were added
0.0 ms0.7 ms1.3 ms2.0 ms2.7 ms05251,0501,5752,100sandboxes
Cloud Hypervisor, m7g.metal Firecracker, m7g.metal Cloud Hypervisor, m7i.metal-24xl Firecracker, m7i.metal-24xl
m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Sandboxes, before the host was full or answers slowed down1,5001,5002,0002,1001.1× more
The host’s CPU in use when full39%1.1× lower43%33%1.1× lower36%
Cost per sandbox-hour, on Spot$0.0006$0.0006$0.0007$0.0007
How it's measured

As for the idle sandboxes. The busy ones make 64 MiB of data, compress it, write it to disk and sync it, read it back and hash it, then rest for ten seconds, over and over.

Setup
Guest
python:3.13-alpine
Workload
idle
vCPU
1
Memory
512 MiB
Disk
1 GiB
Added
100 at a time
At once
16
Requests
every 5 s
Busy
10%
Each step
20 s
Until
10% left
Reproduce
tools/bench/run.sh HOST fleet -set hypervisor=cloud-hypervisor -set batch=100 -set busy_ratio=0.1 -set concurrency=16 -set disk_mib=1024 -set image=docker.io/library/python:3.13-alpine -set job_mib=64 -set job_rest=10s -set max=0 -set measure=20s -set memory_mib=512 -set min_available=0.1 -set rate=0.2 -set vcpus=1 -set work_kib=256 -set working_set_mib=64 -set workload=idle
tools/bench/run.sh HOST fleet -set hypervisor=firecracker -set batch=100 -set busy_ratio=0.1 -set concurrency=16 -set disk_mib=1024 -set image=docker.io/library/python:3.13-alpine -set job_mib=64 -set job_rest=10s -set max=0 -set measure=20s -set memory_mib=512 -set min_available=0.1 -set rate=0.2 -set vcpus=1 -set work_kib=256 -set working_set_mib=64 -set workload=idle

How fast is a guest’s CPU?

The same work run on the host and in a guest, which shows what a guest’s vCPU gives up to its hypervisor.

CPU

A vCPU against one of the host’s CPUs, as a share of its speed.

m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorFirecrackerCloud HypervisorFirecracker
Hashing with SHA-256100%100%100%100%
Compressing with DEFLATE100%99%100%99%
How it's measured

By the same program on the host and in the guest: SHA-256 over 32 MiB four times, and DEFLATE over it once, keeping the fastest of three runs.

Setup
Guest
alpine:3.21
vCPU
1
Memory
512 MiB
Disk
1 GiB
Runs
3
Reproduce
tools/bench/run.sh HOST guest-cpu -set hypervisor=cloud-hypervisor -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=512 -set runs=3 -set vcpus=1
tools/bench/run.sh HOST guest-cpu -set hypervisor=firecracker -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set memory_mib=512 -set runs=3 -set vcpus=1

How long does an upgrade interrupt the daemon?

Upgrading Dicer restarts the daemon. The instances keep running, and the daemon takes them over again as it starts.

Restarting the daemon

With instances running, from the restart until each step.

m7g.metalarm64, Graviton3m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C
Cloud HypervisorCloud Hypervisor
Its API answers1.1 sp99 1.1 s1.1 sp99 1.1 s
It reports every instance running1.1 sp99 1.1 s1.1 sp99 1.1 s
exec works in every one1.2 sp99 1.2 s1.2 sp99 1.2 s
How it's measured

From systemctl restart, while the instances keep running.

Setup
Guest
alpine:3.21
vCPU
1
Memory
256 MiB
Disk
1 GiB
Instances
500
Runs
3
At once
16
Reproduce
tools/bench/run.sh HOST daemon-restart -set hypervisor=cloud-hypervisor -set concurrency=16 -set disk_mib=1024 -set image=docker.io/library/alpine:3.21 -set instances=500 -set memory_mib=256 -set runs=3 -set vcpus=1

Which hypervisor?

Both run on the same host, and each instance picks one. The results above come down to this:

  • Firecracker, for many copies of one sandbox. A copy takes 14 MiB of the host’s memory, as the copies share their snapshot’s pages, against 181–392 MiB under Cloud Hypervisor. A copy also answers sooner, and a guest wakes from standby sooner.
  • Cloud Hypervisor, for taking snapshots and putting guests on standby. A snapshot of an 8 GiB guest takes 2.4–2.9 s under Cloud Hypervisor, and 11–12 s under Firecracker. Putting a guest on standby takes 363–407 ms under Cloud Hypervisor, and 6.0–6.3 s under Firecracker.
  • Either, for starting instances and for how many fit. Started one at a time, instances are ready within about 10 ms of each other under either, and the same number of idle sandboxes fit on a host. Started many at once, they were ready sooner under Firecracker on the arm64 host, and under Cloud Hypervisor on the x86_64 one.

Hypervisors says what else sets them apart.

How the benchmarks work

tools/bench runs on the host it measures, and talks to the daemon over its socket, so that nothing is timed but the daemon and the guests. A suite says which scenarios to run and with which parameters. Each scenario starts guests running a workload, measures them, and removes everything it made. It writes what it measured as JSON, which bench report, bench compare and this page read.

    flowchart LR
  suite["suite<br/>publish.yaml"] --> run["bench run"]
  run --> scenario["scenario<br/>boot, fork, fleet…"]
  scenario --> harness["harness"]
  harness -- "the API" --> daemon["dicerd"]
  daemon --> guests["guests running<br/>a workload"]
  harness --> json["results<br/>JSON"]
  json --> report["bench report"]
  json --> compare["bench compare"]
  json --> page["this page"]
  

Concepts

  • Scenario: one thing to measure, such as how fast an instance boots or how many fit on the host. It declares its parameters, with defaults, and records what it measures through the harness.
  • Workload: what a scenario’s guests run. idle is a small Python web service that answers at once, a sandbox waiting to be used. service keeps a working set of random bytes in memory and hashes part of it for each request. job is a batch job run over and over: it makes data, compresses it, writes and syncs it, and reads it back.
  • Probe: work whose speed says what a machine can do, for its CPU or its disk. The same program runs it on the host and in a guest, so the two differ only in where they run.
  • Harness: what every scenario shares. It labels the instances a run makes, deletes them and their snapshots, volumes and networks when the scenario ends, even after a failure, and samples the host’s memory, CPU and disk.
  • Suite: a YAML file listing scenarios and their parameters. A matrix runs a scenario once for each combination of its values.
  • Result: a scenario’s metrics, each a single value or the p50, p90 and p99 of many samples, and series, such as a fleet’s memory as guests were added. The run records the host, the versions and the host’s price beside them.

Scenarios

ScenarioWhat it measures
bootEach step of an instance’s life, from defining it to deleting it, and above all how long until its process runs. One at a time, or many at once.
forkHow fast one memory snapshot of a running sandbox becomes many running copies, and what each copy costs the host.
snapshotHow long a memory snapshot of a guest takes, how large it is, and how fast a copy of it answers.
standbyHow long putting a guest on standby and waking it take, and the disk a guest on standby takes.
fleetHow many guests fit on the host, added a batch at a time and all kept in use, before their requests slow down or the host runs short.
guest-cpuHow fast a guest’s vCPU hashes and compresses, compared with one of the host’s CPUs.
guest-diskHow fast a guest reads and writes its writable disk or a volume, compared with the host’s data directory.
daemon-restartHow long the daemon takes to restart, as an upgrade does, and take over the instances that kept running.

bench list lists each scenario’s parameters and their defaults.

Suites

Two suites are built in:

SuiteWhat it runs
publishThe suite behind this page: every scenario, at full size, under both hypervisors. It fills the host more than once, so it needs a host of its own for about an hour.
quickEvery scenario, small, in about ten minutes on any host: to check that the benchmarks work, and what a change does, before a full run.

A suite is a list of entries:

tools/bench/suite/publish.yaml
entries:
  - scenario: fleet
    parameters: {workload: idle, rate: 0.2, busy_ratio: 0.1}
    matrix:
      hypervisor: [cloud-hypervisor, firecracker]

Running them yourself

Run a suite on a host

run.sh builds the daemon and the benchmarks from your tree, installs them on a host under a prefix of their own, runs them and copies the results back. The host needs what any Dicer host does, and no other dicerd.

$ tools/bench/run.sh my-kvm-host -suite quick
$ tools/bench/run.sh my-kvm-host fork -set hypervisor=firecracker -set forks=50

Read the results

$ go run ./tools/bench report bench-my-kvm-host.json

Compare two runs

Run the same suite before and after a change, and see what moved:

$ go run ./tools/bench compare before.json after.json