Skip to content

Rust allocators in WebAssembly: November 2026

Reference machine
Apple M4 Pro (arm64) · macOS 26.5.2
Browsers
Chrome 156 · Firefox 151 · Safari 26
Input
Silesia xml: 21 documents, 5.32 MB
Samples
20 per allocator
Measure on this machine

1. Main points

  • talc vs dlmalloc: 256 KiB more heap, 1.92 kB smaller download; about the same time, except 3.8% less in Firefox (Figure 1; table).
  • bump-scope vs bumpalo: the same heap, 0.27 kB smaller download; 4% more time in Chrome and Firefox, about the same in Safari (Figure 1; table).

2. Time per document

Figure 1. talc took 3.8% less time per document than dlmalloc in Firefox; bump‑scope took 4% more time than bumpalo in Chrome and Firefox

Median time per document and observed min–max of 20 samples; compare within each class.

Arrow keys move between points; Enter pins one so its values stay shown; Escape clears.

3. All allocators

Median time per document; under it, time against the class baseline, paired by round (95% CI). Heap growth over 3 batches; the module's brotli download.
AllocatorChrome 156Firefox 151Safari 26Heap growthDownload (brotli)
General-purpose · compared with dlmalloc
dlmallocRust's default2.22 msbaseline2.54 msbaseline2.19 msbaseline100 pages6.25 MiB16.04 kBbaseline
talcglobal allocator2.17 msabout the same (2.5% less)
95% CI 2.2–2.7% less
2.45 ms3.8% less time
95% CI 3.1–4.9% less
2.15 msabout the same (1.3% less)
95% CI 1.0–1.6% less
104 pages6.50 MiB14.13 kB−1.92 kB vs dlmalloc
Arena · compared with bumpalo
bumpalobump arena1.72 msbaseline2.00 msbaseline1.73 msbaseline521 pages32.56 MiB18.14 kB+2.10 kB vs dlmalloc
bump-scopescoped bump arena1.79 ms4.0% more time
95% CI 3.7–4.2% more
2.08 ms4.0% more time
95% CI 3.3–4.4% more
1.76 msabout the same (1.3% more)
95% CI 0.9–2.0% more
521 pages32.56 MiB17.88 kB+1.83 kB vs dlmalloc
Measurement notes
Conditions
Clock
Method
Documents
Allocator calls
Classes
Workload
Timing
Heap growth
Download size
Firefox 151 capture
Safari 26 capture
Build
Libraries
Commit
Artifacts
Corpus

4. Measure on this machine

Input

Silesia xml: 21 XML documents, 5.3 MB.

Samples
Export after a run: CSV, JSON, Markdown