Project Overview & Harness Control
When does WebAssembly improve Web Applications?
This benchmark suite evaluates JavaScript, linear-memory WebAssembly, and WasmGC across 50 workload suites (48 interactive browser playground cards, 45 multi-language kernel manifests, 11 real-DOM iframe stages, and 38 frozen v1 catalog definitions). Every timing table separates delivery, worker dispatch, in-memory kernel compute, and real-DOM mutation after pre-timing oracle verification.
Empirical Synthesis · Four Bottleneck Regimes
What governs Wasm vs. JavaScript in practice
No universal JavaScript-versus-Wasm ratio exists because four distinct runtime mechanisms govern different application shapes. Click any linked workload below to verify that regime in your own browser tab.
1. Lifecycle & Instantiation
45 / 49 workers
In the 50-test worker lifecycle audit, 45 of 49 self-attesting contract workers compile a fresh WebAssembly.Instance per task while 33 keep JavaScript warm. Standalone Deno/V8 probes (M4 Pro) measure up to 15.5× overhead on pcap-decode and 7.8× on sum-u32 when instances are not reused.
2. Data-Parallel SIMD128
12 / 45 ≥ 1.05×
Compiling 45 kernels with -msimd128 -funroll-loops emitted v128 instructions in 36 binaries, yet accelerated 12 (audio-fir 3.20×, ml-gemm 2.37×, gltf-viewer 2.03× in standalone Deno/V8). Branchy state machines (sha256, zip, markdown-cms) stay near 1.00×.
3. Cache Stride vs. Language
1.98× JS · 4.43× Wasm
On ml-gemm (128³ strict f32), Track A C, C++, and Rust sit within 6% (0.86–0.92 ms). Switching JavaScript to i/k/j row-streaming (Track B js-opt) halves JS latency (3.01 → 1.52 ms, 0 ULP drift); adding 4-wide f32x4 SIMD128 (c-ikj-simd) reaches 0.20 ms.
4. WasmGC & Numeric Width
4.70× heap cost
On text.gc-document-edit (10,000 edits), Dart/WasmGC's managed _Node reference graph runs 4.70× slower (0.635 ms vs 0.135 ms) than non-allocating C slot arrays. On ml-gemm, emulating absent native f32 scalars in f64 costs ~40×.
Interactive Benchmark Playground & Performance Comparison
Run JavaScript and WebAssembly benchmarks directly in this browser across four isolated scopes. The overview defaults to Live in This Browser (0 measured until you click Run); start with the 6-archetype Quick Tour (~15s) to measure your browser tab, or switch the overview Data Source toggle to Logged Reference Profile (reference-snapshot.v1.json, standalone Deno 2.9 / V8 CLI on Apple M4 Pro) to inspect all 45 kernel ratios, SIMD128 speedups, and arena-reuse probes immediately.
“Cold start” here is the first iteration of a run in your current browser: worker load, Wasm compile and instantiate, input setup, then the first timed execution. Select 1 iteration to measure only that. What cold start includes, and how the controlled experiment defines cold more strictly.
Preparing benchmark suite...
Loading Interactive Benchmark Playground...
Suite & evidence summary
- Catalog Workloads
- 38
- Playground Demos
- 48
- Run Unattended
- 47
- v2 Proposals
- 20
- Multi-Language Manifests
- 45
- Wasm Artifacts
- 345
Preregistered M1 Corpus & Local Store Inspector
Evidence available now
The M1 implementation slice (acceptance package, commit 9c309c49) and the 50-test / 345-binary suite pass deno task check with reproducible provenance manifests, pre-timing oracle checks, and live browser smoke verification. The preregistered 120-launch owned-Chrome corpus (m1-chrome-sum-u32-v1) has not been collected yet, so the local-pilot tables below remain empty on the read-only public service and populate when running deno task local.
A Chrome 150 validation completed the visible JavaScript/Wasm control and returned two HTTP 201 responses, according to a parent attestation. The records were removed and no replayable browser artifact remains, so the attestation is unverified and supplies no timing evidence.
Workload matrix
Absolute durations remain separate by target and cache state. Cold and warm are controlled protocol states with an exact definition.
| Variant | Cache | Fresh launches | Samples | First scored median | All-sample median | p95 | Status |
|---|---|---|---|---|---|---|---|
| Loading local evidence… | |||||||
Complete trajectories
The first scored post-calibration iteration is retained alongside separate first-use lifecycle metrics. Slow samples are not silently removed.
No trajectories loaded.
Raw run inspector
Each record exposes correctness, work counters, build footprint, environment, metric availability, failures, and every sample.
No local records. Open six audio proposal result records or open the accepted sum-u32 source/build manifest without JavaScript.
How to read this page
- Rows from manual pilots stay labelled as pilots and do not enter the accepted corpus.
- Cold and warm records remain separate.
- Missing memory evidence is
unavailableorblocked; zero is reserved for a measured zero. - Paired ratios and exact intervals appear only after the fresh-launch gate commits enough valid pairs.
Multi-language comparison (run it here)
The same frozen sum-u32 kernel, implemented identically in JavaScript, WAT, AssemblyScript, C, C++, Rust, and Dart/WasmGC — compiled to WebAssembly and measured side by side in this tab.
Run the comparison
Ready. Select loop iterations, then click Start.
All timings are exploratory measurements taken in this browser tab; the arithmetic is verified bit-identical to the committed oracle before any timing is shown.