wasm64 against wasm32 in WebAssembly: November 2026
- Reference machine
- Apple M4 Pro (arm64) · macOS 26.5.2
- Browsers
- Chrome 156 · Firefox 151
- Workload
- bevy_ecs editor session, 100,000 entities
- Samples
- 20 rounds per build
Safari does not support memory64.
Measure on this machine1. Main points
2. wasm64 against wasm32
Figure 1. In Chrome, wasm64 took 13.2% less time than wasm32; in Firefox, about the same; its peak memory was 3.8% higher in both
wasm64 ÷ wasm32 time per browser, paired by round: median, 95% CI and min–max of 20 rounds. Peak memory is exact.
- Claimed in both captures
- Not claimed
- 95% CI
- Min–max
- ±3% threshold
Arrow keys move between points; Enter pins one so its values stay shown; Escape clears.
Peak memory, wasm32 → wasm64
- Chrome 156
- 39.3 MiB → 40.8 MiB
- 3.8% higher
- Firefox 151
- 39.3 MiB → 40.8 MiB
- 3.8% higher
3. Results
| Browser | wasm32 time | wasm64 time | Time ÷ | Time ÷ min–max | Peak memory | Peak ÷ | Checksum |
|---|---|---|---|---|---|---|---|
| Chrome 156 | 237 msmin–max 234–240 ms | 205 msmin–max 204–209 ms | 0.86895% CI 0.863–0.873 | 0.860–0.883 | 40.8 MiBwasm32 39.3 MiB | 1.038 | matches |
| Firefox 151 | 231 msmin–max 230–233 ms | 232 msmin–max 230–235 ms | 1.00295% CI 0.999–1.009 | 0.991–1.020 | 40.8 MiBwasm32 39.3 MiB | 1.038 | matches |
245 frames per session.
Measurement notes
- Conditions
- Chrome 156.0.8078.80 (headless) on macOS 26.5.2 (25F84); Apple M4 Pro, arm64, 14 logical cores; on AC power, Low Power Mode off. Captured 8 November 2026, 21:47–21:47 UTC. Capture 1 of 2.
- Clock
- Cross-origin isolated. Timer resolution in a worker 5 µs (median step; finest 5 µs).
- Method
- 20 samples per row, each a batch of at least 50 ms divided by its repetitions. Untimed warm-up of at least 500 ms and 2 rounds (at most 20). Order alternated each round; ratios are paired by round.
- Workload
- A bevy_ecs editor session over nested groups, shapes and connectors: select a fifth of the document, drag it for 240 frames, then release, undo, redo and revert (245 frames). One crate, built for wasm32 and wasm64 with the same nightly compiler and flags. The document is built untimed; then the two builds run in every round, alternating which goes first, so each round gives one wasm64 ÷ wasm32 ratio.
- Checks
- Every sample returns a checksum of the final document; a run counts only if both builds' checksums match.
- Peak memory
- Linear memory of each build after the run. It grows in 64 KiB pages and never shrinks, so it is the high-water mark, measured to the page. Differences within one page or 3% are not called.
- Firefox 151 capture
- Firefox 151.0.3 (headless), captured 8 November 2026, capture 1 of 2. Raw per-round data (JSON)
- Build
- rustc 1.99.1 (58cf8f9c3 2026-10-13); wasi-sdk-29; wasm-opt version 133 (version_133); wasm-bindgen 0.2.130. Release profile: opt-level 3, LTO true, codegen-units 1, target features none (no simd128), wasm-opt -Os.
- Libraries
- bevy_ecs 0.20.1.
- Commit
ef16b9543512- Artifacts
2 wasm modules, SHA-256
memory64_wasm32_bg.wasm255 kBb0ba767ff81186ccd1708c1e93091bf22a6e1c08a3363c64b6f00382cbf9eb3cmemory64_wasm64_bg.wasm263 kBc4914b49114e0a6360dd77baeb0b5de84297b69d688eae0d13c2ffcc28167cab
- Raw data
- Raw per-round data (JSON)
Reference edition 2026-11-08 ·Apple M4 Pro (arm64), macOS 26.5.2 (25F84) ·Chrome 156 and Firefox 151 ·20 rounds per build ·Method ·Raw data (JSON)
4. Measure on this machine
Run the same session as wasm32 and wasm64.
Export after a run: CSV, JSON, Markdown