Repository navigation
id: stress_join bench profile — cold/warm join at 1x/10x tiers (#13084) - #13424
Merged
Merged
Conversation
Adds the `stress_join` profile to benches/world_bench.rs: cold join (open store, load latest checkpoint, replay journal tail, first view frame) and warm join (snapshot + first frame against a resident world), for the stress tiers' hot world and active-world population, each with the journal at a checkpoint boundary and at the mid-interval worst case (255-event tail, the 256-event / 2,000 ms checkpoint cadence minus the checkpoint itself). Fixtures reuse the stress_gen generation (manifest-verified: FNV-1a over the journal bytes + restored sequence against the manifest's expected_state_hash). Checkpoint forms mirror WorldCore:: checkpoint_entries in the legacy admin-history form — the current form's JournalAdminHistory has crate-private fields and no public constructor, so a bench outside id-worlds cannot build one (filed as #13421); the retained window is carried in full and serializes under the writer's own inline bound. Every measured join verifies the restored sequence, program input count, and first frame against the manifest-verified reference after the clock stops. At the 10x hot world's 256-participant cap, warm setup revokes one roster member in the resident core to admit the measured joiner. Results are recorded in the scale/perf design's first measured limits table: cold join grows only ~1.4x from the 10k-event to the 100k-event hot world (the checkpoint-carried retained window dominates; history length is nearly free); warm joins are sub-millisecond to ~1 ms at both tiers. Verification: release bench binary on the reference laptop; --quick smoke plus full 1x and 10x stress_join runs, all cells emitted and verified (runs under multi-lane load; sccache bypassed after the shared server stalled — filed as #13423).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
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.
Lands the #13084 join-time benches (Phase 14 of #6304), taken over from Lane QK's orphaned claim under Drew's 2026-11-23 batch approval of the former flag holds.
What
New
stress_joinprofile inpkgs/id/benches/world_bench.rs(+651/−3) measuring, per stress tier:Fixtures reuse the
stress_gengeneration and verify against its manifest exactly as the generator defines it (FNV-1a over the journal bytes + restored sequence vsexpected_state_hash); every measured join re-verifies restored sequence, program inputs, and first frame after the clock stops. Results are recorded in the design doc's first measured limits table (4 new rows) in this same PR.Disclosures, also in the bench header:
WorldCore::checkpoint_entriesin the legacy admin-history form: the current form'sJournalAdminHistoryhas crate-private fields and no public constructor, so a bench outsideid-worldscannot build one — filed as id-worlds: JournalAdminHistory cannot be constructed outside the crate — no public constructor for current-form checkpoint fixtures #13421. The retained window is carried in full and serializes under the writer's own inline bound.Measured (reference laptop, 2026-11-23; seed 22673)
1x (manifest
hot_state_hash=cf92e013f46e3d2c): hot world cold p50 4.608 ms boundary / 7.312 ms mid-interval; warm p50 0.868 / 0.846 ms. Active worlds cold p50 0.192 / 0.189 ms; warm 0.033 / 0.020 ms.10x (manifest
hot_state_hash=c7c4fb2805ee72ed): hot world cold p50 6.224 ms boundary / 6.186 ms mid-interval; warm p50 0.884 / 0.592 ms. Active worlds cold p50 0.170 / 0.148 ms; warm 0.020 / 0.018 ms.Headline: cold join grows only ~1.4x from the 10k-event to the 100k-event hot world — the checkpoint-carried retained window dominates; history length is nearly free.
Verification
Release bench binary built on the reference laptop (
cargo bench --bench world_bench --no-run, exit 0; bench file rustfmt-clean).--quick --only stress_joinsmoke + full 1x and 10xstress_joinruns: all 8 cells per tier emitted, all joins verified. Runs executed under heavy multi-lane load withRUSTC_WRAPPER=after the shared sccache server stalled (filed as #13423).#13084's remaining dependency effect: #13087 (first full 10x stress run) names #13084 among its inputs; this landing clears that leg.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.