kosa8 / Benchmarks

Benchmarks · Measured, dated, on named hardware

kosa8 benchmarks

Updated · latest run

Every speed figure kosa8 publishes comes from this page, and every figure on this page comes from kosa8's own benchmark notes, with the date, the machine and the method. They are one machine each, not a guarantee and not a customer's figure. Competitor numbers are not measured here.

01The headline numbers

  • 74 msrestore a sandbox, median
  • 2.5 sfork 100 live copies, 0 dead
  • 1.9 mscreate from the warm pool, median
  • 192/192cross-org attempts refused, 64 clients

Linux engine, AMD Ryzen 7 7700, 1 vCPU and 256 MiB sandboxes, 2026-11-03.

02Linux engine: restore and fork

2026-11-03. Hetzner AX auction box: AMD Ryzen 7 7700 (8 cores / 16 threads), 64 GB DDR5, state on XFS with reflink on its own NVMe, Ubuntu 24.04 (6.8), Cloud Hypervisor v53.0. Sandboxes of 256 MiB and 1 vCPU. This is the kosa8 Cloud go/no-go run.

MeasureResultGate
Cold sandbox boot (no pool)287 ms p50
Container in a running sandbox56 ms p50
Snapshot (256 MiB guest)32 ms
Restore74 ms p50, 83 ms max≤ 300 ms: pass
Restore to first container exec142 ms p50
Fork n=10328 ms (33 ms per clone), 0 dead
Fork n=1002471 ms (25 ms per clone), 0 dead≤ 5000 ms: pass
Host RAM for 100 forks26 GB (~260 MB each)
Disk written by 100 forks28 MB (reflink shares the rest)

Every clone ran a container afterwards.

03Warm pool

2026-11-03, same host. The host agent keeps each template's VMs restored from its memory snapshot and paused; a create resumes one. Timed through the host API the control plane calls, with the token check, state write and resume included. Template base (alpine), 1 vCPU, 256 MiB, pool depth 5.

Path to a running sandboxp50
Cold boot (no pool)287 ms
Restore from the template snapshot (pool empty)74 ms
Claim from the warm pool1.9 ms (n=17, max 2.5 ms)
First container exec after a pool create71 ms

All 17 creates were served from the pool. After the agent was killed and restarted it adopted the same 5 paused VMs, with no rebuild and no duplicates.

04Concurrency and isolation under load

2026-11-03, same host. A load tester drives the host API for several organisations at once. Each client creates a sandbox, runs a command in it, has another organisation try to run a command in it (it must be refused), deletes it, then calls a Python or Node function.

1 client20 clients, 4 orgs64 clients, 8 orgs
Create from pool2.0 ms6.4 ms14.7 ms
Exec76 ms264 ms424 ms
Python function, end to end170 ms805 ms1.5 s
Node function, end to end192 ms939 ms1.7 s
Throughput (creates + invokes)27/s26/s
Cross-org attempts refused80/80192/192

Held at once: 150 sandboxes running simultaneously from 10 orgs, created in 2.8 s at 16 in parallel, each answering correctly while all were up. No errors, no cross-tenant access and no leaked VMs at any level. The 8-core host saturates at about 26 operations a second; more load becomes queueing, so scale is more hosts.

05A pool that follows demand

2026-11-03, same host. The pool sizes itself from the recent claim rate, the measured refill time and the largest burst seen, and gives memory back after a quiet minute.

LoadCreates from the poolPool create p50Errors
6 clients, 2 orgs (rate only)133 / 1502.1 msnone
6 clients, 2 orgs (rate + burst)146 / 1502.1 msnone
64 clients, 4 orgs63 / 5124.1 msnone

Below saturation the pool absorbs the load. At saturation it cannot at any depth, because refills cannot keep up: that is host capacity, and the answer is more hosts.

06Mac baseline

2026-09-20. Apple M-series, macOS 26.0.1, the local engine on Apple's Virtualization.framework.

TargetMeasuredVerdict
Idle footprint ≤ 400 MB46 MBpass
First run after install ≤ 60 s2.1 spass
Container cold start ≤ 250 ms166 ms (median of 5)pass
Bind-mount I/O ≥ 70% of native30% of host nativemiss
Snapshot 2 GB sandbox ≤ 2000 ms1528 mspass
Warm restore ≤ 1000 ms657 ms (median of 3)pass

The bind-mount miss is shown as measured. The VM's own disk reached 52% of host native on the same run, so no file-sharing path can reach 70% on that platform; a workspace on the sandbox's own disk runs at that ceiling.

07Method

  • Medians, not best runs: cold start is a median of 5, warm restore a median of 3, because single samples flapped across the threshold.
  • I/O comparisons write with conv=fsync on both sides, so they measure durable writes, not the page cache.
  • Idle footprint sums resident memory for the daemon and guest helpers.
  • Each table names one machine. Re-run on the target hardware before relying on a figure.
  • Competitor figures are not measured here; same-workload comparisons are still to be run.

08How to reproduce

The harnesses are in the kosa8 source tree under bench/, with the raw results as JSON. On an Apple-silicon Mac:

terminal
make bench

On a bare-metal Linux host with KVM, set up as a kosa8 host:

terminal
KOSA8_BENCH=1 sh bench/linux-fork.sh
# knobs: FORK_NS="10 100" MEM_MB=512 CPUS=1 RESTORES=5 IMAGE=alpine:latest

Both skip cleanly on a machine that cannot boot real VMs. The source tree is not public; to run the harness on your own hardware, or to see the raw JSON, book a call or write to contact@kosa8.com.

Updated 2026-11-21