Commit f38ab2d
docs: the mimalloc arm, re-run directly — fixes cost 30 instructions in 108M
0.4.0 claimed "no perf cost" from a fixed-vs-pristine comparison. Rebuilt the
vendored mimalloc oracle and re-ran all four arms LD_PRELOADed into one neutral
C churn binary, so the allocator is the only variable:
glibc 160,220,039
mimalloc 95,170,830 1.0000
ra 0.3.2 107,943,033 1.1342
ra 0.4.0 107,943,063 1.1342
fixed/pristine = 1.00000 — thirty instructions in 108 million. That settles
"did seven fixes cost anything" with a count rather than an estimate.
It also adds an UNflattering caveat that belongs in the README: on this
allocation-churn microbenchmark rusty_alloc is 13.4% behind mimalloc, where the
headline lua/perl/sqlite arms read 0.99-1.01. Both are true — real programs
dilute allocator cost, a malloc/free loop does not — so "at parity" is now
explicitly scoped to the workloads it was measured on rather than stated as a
general property. Still 0.67x glibc on the same workload.
No code change; docs and README only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 9e79a11 commit f38ab2d
2 files changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
30 | 52 | | |
31 | 53 | | |
32 | 54 | | |
| |||
0 commit comments