Skip to content

id: stress_join bench profile — cold/warm join at 1x/10x tiers (#13084) - #13424

Merged
dezren39 merged 1 commit into
mainfrom
lane-xz-13084
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-xz-13084

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

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_join profile in pkgs/id/benches/world_bench.rs (+651/−3) measuring, per stress tier:

  • Cold join — open the world store, load the latest checkpoint, replay the journal tail, produce the first view frame.
  • Warm join — catch-up snapshot + first view frame against a resident world.
  • For the tier's hot world (5 reps) and the active-world population (one join per world), 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 and verify against its manifest exactly as the generator defines it (FNV-1a over the journal bytes + restored sequence vs expected_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:

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_join smoke + full 1x and 10x stress_join runs: all 8 cells per tier emitted, all joins verified. Runs executed under heavy multi-lane load with RUSTC_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.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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).
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c3d9229d-3a0e-4458-bfe8-8ade5f206b80
Commits

Reviewing files that changed from the base of the PR and between a2eeea7 and 696a4b7.

Files selected for processing: 2

  • doc/2026-11-23T07-53-00Z_design_scale_perf_stress_v1/2026-11-23T07-53-00Z_design_scale_perf_stress_v1.md
  • pkgs/id/benches/world_bench.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T15:41:30.838647Z 696a4b7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant