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.
| Host | Hardware | Versions | Price an hour | Data |
|---|---|---|---|---|
| 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.
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
dicer run, until the process runs | 344 msp99 364 ms | 333 msp99 339 ms | 400 msp99 408 ms | 402 msp99 415 ms |
| Defining the instance | 7.9 msp99 12 ms | 6.9 msp99 7.7 ms1.2× faster | 8.1 msp99 9.5 ms | 8.1 msp99 12 ms |
| The start call, until the process runs | 336 msp99 357 ms | 326 msp99 332 ms | 391 msp99 400 ms | 394 msp99 407 ms |
The start call, until exec works | 357 msp99 376 ms | 349 msp99 353 ms | 424 msp99 432 ms | 419 msp99 425 ms |
| Stopping it | 50 msp99 61 ms1.1× faster | 57 msp99 71 ms | 61 msp99 73 ms1.1× faster | 65 msp99 76 ms |
| Deleting it | 8.6 msp99 12 ms | 7.8 msp99 8.2 ms1.1× faster | 7.8 msp99 11 ms | 7.7 msp99 11 ms |
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| The start call, until the process runs | 1.2 sp99 1.3 s | 916 msp99 1.1 s1.3× faster | 830 msp99 1.0 s | 871 msp99 924 ms |
The start call, until exec works | 1.2 sp99 1.6 s | 1.0 sp99 1.2 s1.2× faster | 937 msp99 1.2 s1.1× faster | 989 msp99 1.1 s |
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Taking the snapshot | 214 ms2.8× faster | 598 ms | 170 ms3.0× faster | 504 ms |
| The fork call, until the copy answers | 1.6 sp99 1.9 s | 993 msp99 2.0 s1.6× faster | 1.6 sp99 1.8 s | 979 msp99 1.9 s1.6× faster |
| Until every copy answers | 41 s | 25 s1.6× faster | 39 s | 25 s1.6× faster |
| Host memory each copy takes | 392 MiB | 14 MiB27× less | 181 MiB | 14 MiB13× less |
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Taking the snapshot | 711 msp99 714 ms3.4× faster | 2.4 sp99 2.4 s | 656 msp99 664 ms3.0× faster | 2.0 sp99 2.0 s |
| Its size on disk | 2.0 GiBp99 2.0 GiB | 2.0 GiBp99 2.0 GiB | 2.0 GiBp99 2.0 GiB | 2.0 GiBp99 2.0 GiB |
| Forking it, until the copy works | 60 msp99 62 ms | 44 msp99 46 ms1.4× faster | 72 msp99 74 ms | 46 msp99 46 ms1.6× faster |
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Taking the snapshot | 2.9 sp99 2.9 s4.2× faster | 12 sp99 12 s | 2.4 sp99 2.4 s4.4× faster | 11 sp99 11 s |
| Its size on disk | 8.0 GiBp99 8.0 GiB | 8.0 GiBp99 8.0 GiB | 8.0 GiBp99 8.0 GiB | 8.0 GiBp99 8.0 GiB |
| Forking it, until the copy works | 79 msp99 80 ms | 45 msp99 46 ms1.7× faster | 72 msp99 73 ms | 46 msp99 47 ms1.6× faster |
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Putting it on standby | 407 msp99 415 ms15× faster | 6.3 sp99 6.4 s | 363 msp99 370 ms17× faster | 6.0 sp99 6.0 s |
| Disk it takes on standby | 1.0 GiBp99 1.0 GiB | 1.0 GiBp99 1.0 GiB | 1.0 GiBp99 1.0 GiB | 1.0 GiBp99 1.0 GiB |
| The start call that wakes it | 39 msp99 40 ms | 27 msp99 27 ms1.5× faster | 60 msp99 64 ms | 28 msp99 30 ms2.1× faster |
Waking it, until exec works | 46 msp99 47 ms | 31 msp99 31 ms1.5× faster | 68 msp99 72 ms | 32 msp99 33 ms2.1× faster |
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.
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Sandboxes, before the host was full or answers slowed down | 1,600 | 1,600 | 2,200 | 2,200 |
| Host memory each takes | 144 MiB | 146 MiB | 162 MiB | 157 MiB |
| Disk each takes | 15 MiB | 15 MiB | 16 MiB | 16 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 |
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Sandboxes, before the host was full or answers slowed down | 1,500 | 1,500 | 2,000 | 2,1001.1× more |
| The host’s CPU in use when full | 39%1.1× lower | 43% | 33%1.1× lower | 36% |
| Cost per sandbox-hour, on Spot | $0.0006 | $0.0006 | $0.0007 | $0.0007 |
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.
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |||
|---|---|---|---|---|
| Cloud Hypervisor | Firecracker | Cloud Hypervisor | Firecracker | |
| Hashing with SHA-256 | 100% | 100% | 100% | 100% |
| Compressing with DEFLATE | 100% | 99% | 100% | 99% |
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.
| m7g.metalarm64, Graviton3 | m7i.metal-24xlx86_64, Intel Xeon Platinum 8488C | |
|---|---|---|
| Cloud Hypervisor | Cloud Hypervisor | |
| Its API answers | 1.1 sp99 1.1 s | 1.1 sp99 1.1 s |
| It reports every instance running | 1.1 sp99 1.1 s | 1.1 sp99 1.1 s |
exec works in every one | 1.2 sp99 1.2 s | 1.2 sp99 1.2 s |
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.
idleis a small Python web service that answers at once, a sandbox waiting to be used.servicekeeps a working set of random bytes in memory and hashes part of it for each request.jobis 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
| Scenario | What it measures |
|---|---|
boot | Each 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. |
fork | How fast one memory snapshot of a running sandbox becomes many running copies, and what each copy costs the host. |
snapshot | How long a memory snapshot of a guest takes, how large it is, and how fast a copy of it answers. |
standby | How long putting a guest on standby and waking it take, and the disk a guest on standby takes. |
fleet | How 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-cpu | How fast a guest’s vCPU hashes and compresses, compared with one of the host’s CPUs. |
guest-disk | How fast a guest reads and writes its writable disk or a volume, compared with the host’s data directory. |
daemon-restart | How 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:
| Suite | What it runs |
|---|---|
publish | The 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. |
quick | Every 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:
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