Commit 86c3f39
perf(bench): add optional mimalloc allocator for sp1-perf (-7.2% fib)
Add mimalloc as an optional feature for sp1-perf. When enabled,
replaces glibc malloc with mimalloc's per-thread arenas, reducing
lock contention in allocation-heavy paths.
Benchmark results (on top of physical-cores change):
fib: 28,551ms → 26,504ms (-7.2%)
keccak: 35,648ms → 34,845ms (-2.3%)
big: 38,228ms → 37,899ms (-0.9%)
Usage: cargo build --release -p sp1-perf --features mimalloc
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b2a6833 commit 86c3f39
3 files changed
Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
0 commit comments