Benchmarks#

All benchmarks measured on the Rustbox platform infrastructure. Numbers represent end-to-end latency including sandbox creation, execution, and teardown.

Per-language latency#

Median wall time for a minimal program (print("hello") equivalent) per language.

LanguageMedian latencyNotes
Python36 msCPython interpreter startup
JavaScript36 msBun runtime
TypeScript36 msBun runtime (same as JS)
C60 msGCC compilation + execution
C++72 msGCC compilation + execution
Go120 msGo compiler + execution
Rust140 msrustc compilation + execution
Java445 msjavac + JVM startup

Interpreted languages (Python, JS, TS) are fastest because there is no compilation step. Compiled languages include compilation time within the sandbox.

Throughput#

Sustained throughput under load with concurrent submissions.

LanguageExecutions/sec
Python148
JavaScript104
TypeScript104
C85
C++72
Go55
Rust48
Java18

Throughput is measured with sufficient concurrent clients to saturate the platform's worker pool. Each execution is a full sandbox lifecycle (create, execute, teardown) with isolation verification.

What the numbers include#

Every measurement includes the full cost:

  • Sandbox creation (namespaces, cgroups, mount setup, seccomp filter installation)
  • Credential drop and privilege stripping
  • Compilation (for compiled languages)
  • Execution
  • Sandbox teardown and resource cleanup

There is no warm-start optimization, no container reuse, no pre-created pools. Every execution builds a fresh sandbox from scratch.

Machine specifications#

Benchmarks were measured on the following hardware:

SpecValue
CPUAMD EPYC (4 cores)
Memory16 GB
KernelLinux 6.x (cgroup v2)
StorageNVMe SSD

Production infrastructure may differ. Reach out if you need latency guarantees for your use case.