Skip to content

Commit a60fb27

Browse files
tylergibbs1claude
andcommitted
Update stale performance numbers in SDK README and main README
- sdk/typescript/README.md: 600µs → 61µs, 1,700 → 16,500 ops/sec - README.md: 30x → 49x throughput improvement Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ea6e9be commit a60fb27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ This approach is validated by recent academic work:
102102

103103
SandCastle's performance is the result of systematic research informed by academic literature:
104104

105-
- **[Wasm-level snapshotting](https://bytecodealliance.org/articles/making-javascript-run-fast-on-webassembly)** — Pre-initializing the QuickJS runtime, polyfills, and static bridge code via wizer eliminates ~2ms of per-execution JS engine startup, yielding a **30x throughput improvement** (48315,000 ops/sec).
105+
- **[Wasm-level snapshotting](https://bytecodealliance.org/articles/making-javascript-run-fast-on-webassembly)** — Pre-initializing the QuickJS runtime, polyfills, and static bridge code via wizer eliminates ~2ms of per-execution JS engine startup, yielding a **49x throughput improvement** (33816,500 ops/sec).
106106
- **[Spectre mitigation analysis](https://arxiv.org/html/2404.12621v1)** — Disabling Cranelift's spectre mitigations for heap/table access (safe because our sandbox lacks high-resolution timing side-channels) provides a **23% throughput improvement**.
107107
- **Synchronous WASM execution** — Switching from async to sync Wasmtime calls eliminates stack-switching overhead for the sequential execution path.
108108
- **Copy-on-write instantiation** — Wasmtime's `memory_init_cow` + `InstancePre` pre-linking enables microsecond-scale instance creation from a pre-compiled module template.

sdk/typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const key = process.env.API_KEY; // Injected by host via .with_env()
9191

9292
## Features
9393

94-
- Sub-millisecond sandbox creation (~600us, 1,700 ops/sec sustained)
94+
- ~61µs sandbox creation (16,500 ops/sec sustained)
9595
- ES2024+ support (QuickJS-NG) — `Object.groupBy`, `Set.intersection`, iterator helpers
9696
- Fuel metering, memory limits, wall-clock timeouts
9797
- Host capability bridge (KV, HTTP, custom) with quota enforcement

0 commit comments

Comments
 (0)