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.
| Measure | Result | Gate |
|---|---|---|
| Cold sandbox boot (no pool) | 287 ms p50 | |
| Container in a running sandbox | 56 ms p50 | |
| Snapshot (256 MiB guest) | 32 ms | |
| Restore | 74 ms p50, 83 ms max | ≤ 300 ms: pass |
| Restore to first container exec | 142 ms p50 | |
| Fork n=10 | 328 ms (33 ms per clone), 0 dead | |
| Fork n=100 | 2471 ms (25 ms per clone), 0 dead | ≤ 5000 ms: pass |
| Host RAM for 100 forks | 26 GB (~260 MB each) | |
| Disk written by 100 forks | 28 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 sandbox | p50 |
|---|---|
| Cold boot (no pool) | 287 ms |
| Restore from the template snapshot (pool empty) | 74 ms |
| Claim from the warm pool | 1.9 ms (n=17, max 2.5 ms) |
| First container exec after a pool create | 71 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 client | 20 clients, 4 orgs | 64 clients, 8 orgs | |
|---|---|---|---|
| Create from pool | 2.0 ms | 6.4 ms | 14.7 ms |
| Exec | 76 ms | 264 ms | 424 ms |
| Python function, end to end | 170 ms | 805 ms | 1.5 s |
| Node function, end to end | 192 ms | 939 ms | 1.7 s |
| Throughput (creates + invokes) | 27/s | 26/s | |
| Cross-org attempts refused | 80/80 | 192/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.
| Load | Creates from the pool | Pool create p50 | Errors |
|---|---|---|---|
| 6 clients, 2 orgs (rate only) | 133 / 150 | 2.1 ms | none |
| 6 clients, 2 orgs (rate + burst) | 146 / 150 | 2.1 ms | none |
| 64 clients, 4 orgs | 63 / 512 | 4.1 ms | none |
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.
| Target | Measured | Verdict |
|---|---|---|
| Idle footprint ≤ 400 MB | 46 MB | pass |
| First run after install ≤ 60 s | 2.1 s | pass |
| Container cold start ≤ 250 ms | 166 ms (median of 5) | pass |
| Bind-mount I/O ≥ 70% of native | 30% of host native | miss |
| Snapshot 2 GB sandbox ≤ 2000 ms | 1528 ms | pass |
| Warm restore ≤ 1000 ms | 657 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=fsyncon 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:
make bench
On a bare-metal Linux host with KVM, set up as a kosa8 host:
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