Repository navigation
perf: add correctness-gated allocator benchmark - #99
Conversation
|
Authoritative allocator evidence: https://github.com/zackees/reld/actions/runs/33068576290 (artifact ID 9645699405, All correctness gates passed for no-LTO, ThinLTO, and full-LTO: repeated raw artifact identity across allocators, exact native output, profiler-off contamination checks, and separate successful pprof/DHAT diagnostic profiles. Wall medians were identical in every cell: no-LTO 0.38/0.38s, ThinLTO 0.43/0.43s, full-LTO 0.28/0.28s (system/mimalloc). Aggregate wall improvement was 0.000%, paired bootstrap 95% CI [-1.610%, +0.385%]. Aggregate CPU was 0.000%, CI [-14.471%, +12.642%]; RSS was -0.098%, CI [-0.384%, +0.361%]. The machine-readable decision is |
Closes #93
Part of #97
Outcome
Adds the reproducible correctness-first allocator decision harness. This PR does not claim that mimalloc is faster and does not change linker behavior. It creates the evidence gate that will decide whether the already-landed allocator remains or is reverted.
Controlled comparison
e2d6be5aGit treee0868677Git treenmproof rejects sampled pprof hooks; all documented pprof/DHAT controls are scrubbed and a dedicated output directory must remain empty before, during, and after timingCorrectness before timing
Every no-LTO, ThinLTO, and full-LTO cell links twice with each allocator, requires one raw SHA-256 artifact identity across all four outputs, and checks exact native exit/stdout/stderr. Every timed artifact is hash-checked against that oracle and natively executed outside timing.
Statistics and decision
inconclusive_or_worse; meta(perf): externalize mimalloc-pprof and optimize the standalone LLVM COFF driver #97 then requires reverting the allocator defaultDiagnostic evidence
A separate non-timing runner builds default, sampled-pprof, and exact-DHAT modes, requires artifact identity and exact native behavior, and uploads nonempty profile evidence. Diagnostic runs never enter timing cells.
Safety and observability
All capture/link/native phases are bounded. Exact temporary archive trees are created with
mktemp; EXIT cleanup accepts only the exact passed directories after fixed-parent, basename, symlink/junction, and containment validation. The GitHub job runs in a pinned Rust container digest, pins native package versions and action SHAs, and uploads raw evidence even on failure.Host validation
ruff check: passbash -n ci/allocator_benchmark.sh ci/allocator_profiles.sh: passgit diff --check: passThe PR must not merge until the manual allocator workflow completes and its authoritative JSON decision has been applied.