Pure Wasm Compute
A CPU loop with no JS import. Shows baseline Wasm execution and optimizer differences between the two modules.
WebAssembly Browser Benchmark
Measures performance on the exact browser and machine that opens this page. This is not a server benchmark.
Lower values are faster. For more stable numbers: close browser DevTools, disable power-saving mode, and run the benchmark multiple times.
| Operation | Metric | Asyncify | JSPI | Faster | Ratio |
|---|---|---|---|---|---|
| No measurements yet. | |||||
A CPU loop with no JS import. Shows baseline Wasm execution and optimizer differences between the two modules.
Many synchronous host calls from Wasm into JavaScript. Shows boundary overhead without Promise/Suspend behavior.
Wasm calls one asynchronous JS import per iteration. JSPI uses WebAssembly.Suspending/promising; Asyncify uses an instrumented resume-state machine.
An async operation with additional nested work. This exposes Suspend/Resume overhead with more call-stack context.