Skip to content

Performance · 0.19.0

Measured, not claimed

Every figure on this page comes from a run recorded in the repository: the reference laptop for real speed, QEMU to compare one build with the next. Nothing here is compared with another operating system until both have run on the same machine.

On real hardware

The reference laptop, measured

An Intel Core i3-3217U at 1.8 GHz, with 2 cores and 4 threads, booted from a USB stick: run bench over SSH on development build 69, on 20 November 2026.

260 ns
an empty system call, into the kernel and back
≈ 8 µs
a message and its answer between two threads
218k–237k
messages a second, whatever the size up to 256 bytes
17–23 µs
a request to a service in another process, with its answer
Where the time goes on the reference laptop, log scale: an empty system call 262 ns, an IPC round trip 8.6 µs, a request to the network or file service 17 and 21 µs; reading and replacing 4 KiB on the USB stick 3.0 and 16.3 ms, the stick’s own speed.

Files go at the USB stick’s speed, not the system’s: a 4 KiB read is one USB mass-storage command, and an atomic replace waits for the stick’s flash. And these are a floor, not a tuned figure: the kernel has no IPC fast path yet, so every message goes through the general queue, the scheduler and a wake-up.

The laptop’s figures, in a table

p50 / p95 / p99 of runs 2 and 3; development build 69, 4 CPUs online

MeasurementRun 2Run 3
Empty system call (ns)262 / 262 / 407260 / 262 / 373
IPC round trip, 8 B (ns)8 576 / 10 898 / 11 4477 721 / 10 909 / 11 501
IPC round trip, 64 B (ns)8 774 / 11 163 / 11 8577 737 / 10 929 / 11 565
IPC round trip, 256 B (ns)7 846 / 11 247 / 12 3788 284 / 11 726 / 12 260
IPC messages a second, 8 / 64 / 256 B229 096 / 224 372 / 229 925236 676 / 234 054 / 218 200
Request to the file service (µs)21 / 22 / 2822 / 23 / 29
Request to the network service (µs)17 / 19 / 2919 / 20 / 32
Read 4 KiB from the USB stick (µs)2 997 / 3 000 / 3 008—
Replace 4 KiB on the USB stick (µs)16 327 / 16 995 / 17 939—
Quiet idle, all CPUs (‰)998—

Before and after

What each change bought

When a change is meant to make something faster, the same measurement runs on the build before and the build after, on the same machine. Most of these are QEMU figures: they compare builds, they do not predict hardware.

Time per operation before and after a change, log scale: listing a directory from 10 ms to 44 µs, 227 times faster; a network request from 10 ms to 71 µs, 141 times; a full-screen flip from 43.6 to 0.86 ms, 51 times; SHA-256 in WebAssembly from 233 to 11 ms, 21 times; the echo of a key over SSH from 30.6 to 9.7 ms, 3.2 times.
Before and after, in a table

Each row measured on the build before and the build after, on the same machine

MeasurementWhereBeforeAfterGain
Listing a directory (fsd list)QEMU · ADR 00209 993 µs44 µs227×
A request to the network serviceQEMU · ADR 004410 001 µs71 µs141×
A full-screen flip, 800×600laptop · ADR 007843.6 ms0.86 ms51×
SHA-256 of 16 KiB in WebAssemblyQEMU · ADR 0071233 ms11 ms21×
Echo of a key over SSH, medianQEMU · ADR 006930.6 ms9.7 ms3.2×
SSH outputlaptop · 0.170.12 MB/s1.15 MB/s9.6×
Pixels written when the pointer moves 1 px, 1024×768host test · ADR 0046786 4322473 184× fewer

3D on the CPU

One band per processor

There is no GPU driver for 3D yet, so the software renderer draws every pixel. With threads in a process (ADR 0082) it draws each frame in bands, one per processor, and moves their edges after each frame so every band takes the same time. Same laptop, same scenes, 800×600.

Frames per second for 14 bench3d scenes at 800×600 on the reference laptop, one thread against one band per processor on 4 threads: from 1.7 to 3 times faster; shading-phong goes from 26 to 69 fps and fractal from 21 to 62.

Pixels, not triangles, cost the CPU, so the per-pixel scenes gain most. On 2 real cores the gain is 1.7 to 3 times, and the package peaked at 78 °C, against 69 °C on one thread. These are the CPU baseline that a GPU path must beat, scene by scene, before it is called a win.

The 3D figures, in a table

Frames per second at 800×600; bench3d 6 on one thread and bench3d 8 with bands that follow the work

SceneOne threadBands, 4 threadsGain
geometry1131891.7×
geometry-dense53991.9×
texture-nearest611262.1×
texture-linear541132.1×
texture-mipmap511042.0×
shading-gouraud821591.9×
shading-phong26692.7×
effect2d-3x321432.0×
effect2d-5x59202.2×
terrain24451.9×
objects28531.9×
shadow (2 scenes)14312.2×
fractal21623.0×
everything21412.0×

Compute on the GPU

A first kernel on the HD 4000

Two 1024 × 1024 float matrices multiplied by hand-assembled kernels on the GPU’s EUs, against one core of the CPU. The GPU’s product equals the CPU’s to the bit (ADR 0086).

Time to multiply two 1024 × 1024 float matrices: one CPU core 422 ms; the GPU 600 ms at 350 MHz, 420 ms at 650 MHz and 320 to 340 ms at 1050 MHz.

About 2 % of the GPU’s peak: the first correct kernel, not a fast one. At its top clock it beats one CPU core, and the package reaches 76 to 78 °C. Finding the bottleneck is a study of its own before the next change.

The GPU figures, in a table

Best of 10 runs of run gpu_probe 3; temperature of the package after each clock’s runs

RunTimeGFLOP/sPackage
CPU, one core422 ms5.1—
GPU at 350 MHz600 ms3.663 °C
GPU at 650 MHz420 ms5.167 °C
GPU at 1050 MHz320–340 ms6.3–6.776–78 °C

How it is measured

Repeatable on your own machine

  • bench gives p50, p95 and p99 of each measurement; the second run is kept, since the first pays for the program’s pages and buffers
  • cargo xtask perf runs the benchmark alone in QEMU and fails a build whose latency passes twice the baseline
  • Heavy runs go scene by scene under a thermal watch, each one started below 70 °C
  • QEMU figures compare builds on one host; only the laptop’s figures speak for real hardware
Measure it yourself
ari> run bench        # on AriCodeOS: p50 / p95 / p99 of each measurement
cargo xtask perf      # on the host: QEMU against the recorded baseline