Follow-up C: Publish profile_bench results — README <1% claim partially supported - #29
Merged
Merged
Conversation
- Run snmalloc-rs/benches/profile_bench.rs end-to-end with --features profiling on Apple M4 Pro / macOS 26.3.1; capture mean / CI / median / stddev from target/criterion/*/new/estimates.json. - New docs/heap-profiling-benchmarks.md table-formats the raw numbers for the small_allocs / medium_allocs / mixed groups across the three variants (profile-off, profile-on-inactive, profile-on-active). - Compute ratio_idle and ratio_active per group; averages are ~1.024 in both configurations, max ratio is 1.0493 on medium_allocs/profile-on-inactive. All groups stay inside the bench harness's documented <=1.05 acceptance band. - Document the gap vs the existing "<1% overhead" README claim: small allocs support it (in noise), but medium and mixed land at ~3-5%. Recommend softening the README phrasing in a follow-up PR. - No groups hit the 20-minute time budget; full sweep ~85s wall-clock.
- Replace 'soften README claim' recommendation with link to ClickUp ticket 86aj0hfmc that drives medium/mixed under 1% - Keep reproduction caveats (Linux pinning, larger sample_size) - Per user direction: target stays; gap is a perf-regression follow-up, not a docs change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publishes
docs/heap-profiling-benchmarks.mdwith measured overhead from Phase 7.2's criterion bench suite.Machine: Apple M4 Pro / macOS 26.3.1 / 12 cores / rustc 1.95.0
Wall clock: ~85s for full 3-group × 3-variant sweep
Headline
Status
The README "<1% overhead at default sampling rate" claim is the design target. This measurement does not yet support it on
medium_allocsandmixed. The gap is being driven to closure in ClickUp ticket 86aj0hfmc (open). Investigation targets: cache-line alignment of the Sampler hot state, Phase 3.3 alloc-hook fast path, dealloc null-check predictor behavior, lazy-provider first-touch costs.Closes ClickUp ticket 86aj0h88j (the publish task). The perf gap is tracked separately.
Test plan
cargo bench --features profiling(all 3 groups completed, no skips)docs/heap-profiling-benchmarks.mdwell-formed markdown