Guides

Performance

What speed to expect, and the few choices that change it.

What to expect

Measured on an Apple M3, with -M virt,gic-version=3,virtualization=on:

Speed
Tight loops1,000 to several thousand million instructions a second
md5sum, recursive calls, sortingabout half native speed
A systemd boot150 to 200 million instructions a second, on average

Boot times:

SystemTo a shell or login
Alpine Linux (netboot kernel and initramfs)a few seconds
FreeBSD 15.1about 40 seconds
Debian 13about 26 seconds
Arch Linux ARMabout 2 minutes

Choices that matter

Ask for a GICv3, and EL2

Like QEMU's, Warm64's virt board has a GICv2 and no EL2 unless you ask. A GICv2's CPU interface is memory-mapped, which makes every interrupt cost more. On a Linux desktop, -M virt,gic-version=3 runs about a fifth faster, and virtualization=on, which boots Linux at EL2 with the Virtualization Host Extensions, adds about another tenth.

warm-system-aarch64 -M virt,gic-version=3,virtualization=on ...

Use cortex-a76, not max

-cpu max advertises pointer authentication and SVE, among much else, and a kernel that uses them boots about 14% slower. Use -cpu cortex-a76 unless the guest needs those features. With cortex-a57 or cortex-a72, Linux also turns on its Spectre mitigations, as it does on those real CPUs.

Stay at or under 1.5 GiB

Up to about 1.5 GiB, counting about 34 MiB for each core, Warm64 uses its 32-bit cores. Above that, it switches to the 64-bit ones, which run about a third slower. So if the guest doesn't need the memory, don't give it. See Cores and memory.

Run it in a worker, and keep the tab visible

In a browser, Warm64 starts faster in a worker than on a page's main thread. And a hidden tab gets only a fraction of the CPU. See Embedding in a web page.

Kernel parameters don't matter

mitigations=off, nokaslr and the like make no measurable difference.

See also