Conversation
helly25
force-pushed
the
feature/arena
branch
from
September 10, 2026 01:06
eaf0770 to
797b31c
Compare
helly25
force-pushed
the
proof/arena-layouts
branch
3 times, most recently
from
September 10, 2026 18:44
25d7885 to
70dbc4d
Compare
helly25
force-pushed
the
feature/arena
branch
from
September 10, 2026 19:28
3a59f0b to
fc1df1f
Compare
helly25
force-pushed
the
proof/arena-layouts
branch
from
September 10, 2026 19:32
70dbc4d to
e5a9722
Compare
helly25
force-pushed
the
proof/arena-layouts
branch
from
September 10, 2026 20:33
e5a9722 to
5bd16d4
Compare
This branch has not been deployed
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.
Adds a benchmark-only proof for Arena block-growth decisions. It keeps competing strategies out of the production API until clean measurements show which choices are worthwhile, and records both latency and memory cost for the same realistic workload.
This pull request is intentionally draft and must not merge before validated Apple M5 Pro and AMD Zen 5 JSON artifacts exist.
AG;DR
//mbo/memory:arena_layout_benchmarkas a manual clang-tidy-covered benchmark target.Validation at head
5bd16d46c://mbo/memory:arena_layout_benchmarkbazel test //mbo/memory:arena_test //mbo/memory:block_source_testafter rebasing onto the GCC portability correction in PR 440Apple M5 Pro evidence is now committed as four validated immutable JSON envelopes from clean benchmark commits
c913ba9ae,673d95295, and8a82b50cb. The main layout artifact contains 22 families and exactly nine repetitions per family. Listed growth won both fresh and retained fastest-three timing while reserving only about 259 KiB more than fixed 4 KiB growth. For growing record layouts, pointers beat stable segmented offsets on sequential and permuted lookup by 34.7% and 22.7%, while segmented offsets reserved roughly 1.70 MiB versus 2.29 MiB. An isolated full-protocol insertion rerun found their all-nine means within 1.6% but remained noisy, so insertion does not decide the representation.The full M5 retention artifact from clean
673d95295confirms the bounded small-block cache: fastest-three 7.686 us with 652,926 bytes retained, versus 10.210 us and 6,418,558 bytes for retain-all, and 10.655 us with zero retained for release-all. It is within 0.5% of caching the full chain while retaining only 10.2% as many bytes. The artifact records all nine samples, memory counters, 72.77-second duration, and the higher 3.54/4.52/4.61 host-load context.The full pointer-layout artifact confirms that SoA saves exactly 65,536 bytes, or 2.86% of total reserved memory, but slows fastest-three insertion by 19.6%, sequential lookup by 20.2%, and permuted lookup by 22.0%. The run ended at elevated load averages of 2.90/8.77/7.94; nevertheless, lookup CVs are below 0.82% and the observed penalties greatly exceed sample variation. The complete samples and load context remain in the JSON rather than being discarded. Pointer AoS remains the provisional growing representation pending Zen 5 and complete-interner measurements.
Still required:
Portability: the proof and production code remain C++20-compatible. This PR introduces no user-facing API.