Compare JavaScript and WebAssembly execution, account for warmup, and inspect timing variance.
Trial Controls
Ready to benchmark a JS add loop against the generated WASM add export.
Benchmarks are sensitive to browser JIT warmup, timer precision, CPU scaling, tab visibility, optimizer behavior, startup costs, compilation costs, and JS/WASM boundary overhead.
JavaScript
No samples yet.
WebAssembly
No samples yet.
Correctness
Both paths compute `index + 3`. This microbenchmark intentionally highlights boundary overhead; more realistic WASM wins appear when work per call is larger.