Interpreter and tool measurements
How long a sandbox’s tools take to answer: Python and JavaScript kernels, a browser, a desktop and SSH, each measured end to end. Every cohort here has 30 validated samples, and percentiles are nearest-rank. Latency, memory and capacity for each tier as a whole are in tiers.md.
Interpreter execution
A persistent kernel keeps Python running between calls, so only the first call pays for
start-up: 1+1 takes 13.1 ms at p50, against 1237.4 ms in a fresh process. These samples come from
one Linux x86_64 development host, through authenticated agent HTTP on loopback.
| Operation | Fresh process p50 / p90 ms | Persistent kernel p50 / p90 ms |
|---|---|---|
Minimal 1+1 |
1237.4 / 2428.3 | 13.1 / 30.7 |
| PNG chart | 1943.6 / 2733.0 | 435.8 / 559.0 |
First execution after reusing python() |
Unavailable | 16.5 / 32.7 |
| Restart and Jupyter-ready handshake | Unavailable | 3530.3 / 5345.8 |
Both p90 budgets hold: minimal execution below 50 ms, a chart below 1 second.
Both sides use CPython 3.12.14 and the same pinned scientific wheels. The baseline launches a fresh Python process with NumPy, pandas and pyplot imported, timed directly at its supervisor with no HTTP overhead, which favours the baseline. A fresh process has no kernel to reuse or restart, so those rows have no baseline.
CPU and database checks ran on the same host. These are observations, not a capacity claim for a dedicated machine.
The deployment cohort goes through the real control and edge. Its sandboxes request four default units (one CPU core, 2 GiB), and the collector sets them explicitly, so no budget below depends on an unstated CPU quota.
| Operation | n | p50 ms | p90 ms |
|---|---|---|---|
First run after python() on a warm-template clone |
30 | 5.8 | 6.2 |
Minimal 1+1, loopback |
30 | 5.1 | 5.7 |
| PNG chart, loopback | 30 | 156.4 | 162.0 |
| Restart and ready handshake, loopback | 30 | 1621.3 | 1651.6 |
The first-run timer starts after python() opens the warmed kernel, so it leaves out sandbox
creation. With one default unit instead of four, the minimal loopback p90 is 81.6 ms, over the
50 ms budget.
Native tools
From a warm template, a new desktop returns its first screenshot in 751.7 ms at p50. The native deployment suite times create to first PNG for the desktop and the browser, through the real control and edge, at four default units (one CPU core, 2 GiB). Browser time includes starting its local deterministic page server and rendering the page.
| Operation | n | p50 ms | p90 ms |
|---|---|---|---|
| Desktop warm create to first PNG | 30 | 751.7 | 774.9 |
| Browser warm create to rendered-page PNG | 30 | 1859.6 | 2000.3 |
These are end-to-end observations, not local X11 or standalone Chromium timings, and native images have no absolute latency budget. The same deployment case checks desktop input and noVNC, raw SSH wake and revocation, real Mountpoint and rclone reads and writes, a read-only refusal, browser CDP, chroot denial for ordinary commands, and both SDKs.
Startup by tool
These timers start before the sandbox exists and end at the first validated result, through the real control and edge, routing and kernel start-up included. Thirty fresh sandboxes per tool:
| Operation from sandbox creation | n per collected tier | Container p50 ms | Container p90 ms | Process p50 ms | Process p90 ms |
|---|---|---|---|---|---|
| Python kernel to chart PNG | 30 | 1661.3 | 1791.5 | 10903.2 | 11443.0 |
| JavaScript kernel to chart PNG | 30 | 742.6 | 796.2 | 7922.2 | 8042.6 |
| Browser to rendered-page PNG | 30 | 1721.1 | 1767.4 | 8949.9 | 9028.5 |
| Desktop to screenshot PNG | 30 | 739.6 | 846.3 | 8959.8 | 9056.8 |
| SSH command and lease revocation | 30 | — | — | 8970.6 | 9006.4 |
PNG timers end once the first returned image is validated. Browser timing includes its own HTTP page-server startup. SSH timing includes writing the marker file, creating the lease, running the real OpenSSH command, observing running state and revoking the lease; it ends before sandbox deletion. There is no container SSH cohort. Percentiles use nearest ranks 15 and 27 of each sorted thirty-sample cohort.
Images, templates and the native bundle are cached before timing, but each fresh process supervisor still verifies its bundle’s complete inventory. Both tiers request four default units: containers enforce one CPU core and 2 GiB, while the process tier’s CPU and memory guarantees are off.
The tiers run on separate hosted runners, and the process tier’s cohorts on three runners at once, each cohort whole on one; their report is joined only when the runners’ host facts agree. The process tier runs as an ordinary installed account on x86_64 with host glibc 2.39, Landlock ABI 8 and no engine access. It is driven through TypeScript, the CLI and both Python SDK modes over the HTTP-only edge.
On the container tier, the interpreter execution budgets hold in the same run: minimal p90 3.8 ms and chart p90 111.9 ms, with the clock points and limits of the deployment cohort above.
How this is tested
- The interpreter collector executes and validates every sample, with the same TCP_NODELAY setting as the real bootstrap.
- The deployment cohort runs in the end-to-end suite.
CI uploads every observation as
interpreter-measurementsand prints p50 and p90 in the job summary. - The native deployment suite’s report is uploaded as
native-tools-measurements, with p50 and p90 in the job summary.
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me