Phase 11.11: bench-validate alignas fix from 11.10 - #64
Merged
Merged
Conversation
5-run sweep on Apple M4 Pro after merging Phase 11.10 alignas(64) padding (commit f3ee3a1). Results: small_allocs 0.996 PASS medium_allocs 1.122 FAIL (variance-dominated, sigma 4.7%) mixed 1.018 PASS (moved from 1.027 post-alignas) Disassembly diff confirms zero instruction delta in the inline Allocator<...>::small_alloc and ::dealloc fast paths. Remaining cost lives in the _malloc / _calloc FFI shim thunks (+10 / +14 instructions). medium_allocs amplifies the shim cost because its 4 KiB allocs go through std::alloc::alloc on every iteration. mixed passing the strict 1.02 spec is the new datapoint here. medium_allocs variance exceeds the spec gap; Linux pinned bench (ticket 86aj0jg36) is the authoritative next step.
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
cargo bench --features stats-basicafter Phase 11.10 mergedmixed1.027 → 1.018 (PASS)small_allocs~0.996 (PASS, unchanged)medium_allocs1.122 (FAIL — σ 4.7%, variance-dominated)small_alloc/deallocfast paths; +10–14 inst in_malloc/_callocFFI shim thunksClickUp
Test plan
Outcome
False-sharing fix (Phase 11.10) confirmed correct for
mixed.medium_allocsresidual lives in the FFI shim layer (not stats counters per se) and is dominated by host variance. Authoritative resolution requires the Linux pinned bench (ticket 86aj0jg36, blocked on box access).