GeezerVison is showing github.com — id(phase-14): join-time benches — cold and warm join at stress tiers · Issue #13084 · developing-today/code
id(phase-14): join-time benches — cold and warm join at stress tiers #13084DescriptionPart of the #6304 v1 large-world stress program (Phase 14 core topic #6281). Design: pkgs/id/doc/2026-11-23T07-53-00Z_design_scale_perf_stress_v1/2026-11-23T07-53-00Z_design_scale_perf_stress_v1.md. Depends on the stress generator slice of #6304's breakdown.
Scope
Add join-time measurements to pkgs/id/benches/world_bench.rs: cold join (open store, load latest checkpoint, replay journal tail, first view frame) and warm join (world already resident), reported p50/p95/p99 per scale tier. Measure against worlds whose journals sit at a checkpoint boundary and at the mid-interval worst case (just before the next checkpoint, default interval 2,000 ms).
Acceptance
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Pickup (Lane QK, archer): working this now — join-time benches (cold + warm) at the 1x and 10x stress tiers in pkgs/id/benches/world_bench.rs, verified against the generator manifest's expected state hash, numbers recorded in the #6304 design doc's limits table. Dependency check: the stress generator slice (#13083) has landed (PR #13163 merged), so this is unblocked. Building on the laptop in a worktree off current main; verification on the reference laptop per the acceptance criteria. dezren39 commented on Nov 23, 2026 HOLD (Lane QK, archer) — supersedes my pickup above. Creating the laptop worktree for this item tripped a platform execution-risk check on the checkout content. Per the standing rule I stopped immediately: nothing in the worktree has been run, built, tested, or modified, and no code changes were made. This item now waits on Drew's item-specific go-ahead for this checkout.
State left behind (untouched, for whoever resumes after approval):
- Worktree
~/wt-lane-qk-13084 on the laptop, branch lane-qk-13084, at main ebd4bde81ca32ffedbad131a2590ecc9af065197 — pristine checkout, no edits.
Prepared scope (fully mapped, ready to execute on approval):
- In
pkgs/id/benches/world_bench.rs, add join-time measurements alongside the landed stress_gen profile (id(phase-14): stress generator — seeded tier worlds for the v1 stress program #13083, PR feat(id): seeded stress-world generator in world_bench (#13083) #13163): cold join (open store, load latest checkpoint, replay journal tail, first view frame) and warm join (world already resident), reported p50/p95/p99 per scale tier.
- Measure against worlds whose journals sit at a checkpoint boundary and at the mid-interval worst case (just before the next checkpoint; default interval 2,000 ms).
- Verify each join result against the generator manifest's expected state hash.
- Run at the 1x and 10x tiers on the reference laptop (pkgs/id
nix develop shell), record the run manifest.
- Record the numbers in the limits table of the id(phase-14): Scale & performance hardening — v1 — first-iteration design #6304 design doc (
pkgs/id/doc/2026-11-23T07-53-00Z_design_scale_perf_stress_v1/).
- PR, merge once verified, close this issue.
dezren39 commented on Nov 23, 2026
Takeover claim — Lane XZ (archer), 2026-11-23. Adopting Lane QK's orphaned claim on this item: QK claimed at 09:58:03Z and stopped on a platform execution-risk flag at 09:58:57Z (hold record c.7097341046, prepared scope recorded there); no done record, no PR, and no activity since — well over an hour, so the claim is orphaned and adopted per the orphan rule.
Drew batch-approved all outstanding flag holds on 2026-11-23 ("Approve all the flag holds listed above"), which covers this item. Landing the prepared scope exactly as recorded in QK's hold comment: cold + warm join-time measurements in pkgs/id/benches/world_bench.rs at the 1x and 10x tiers (checkpoint-boundary and mid-interval journals), join results verified against the generator manifest's expected state hash, run manifest + numbers recorded in the #6304 design doc's limits table, then PR, merge, close. dezren39 commented on Nov 23, 2026
Done — Lane XZ (archer), 2026-11-23. Landed via PR #13424, merged d3e57210434122737502a55f82be4a670646ae20 (head 696a4b7afb1b822810400bcebc8281919c2f39a4, SHA-guarded; pre-merge comment re-read count-confirmed 4/4 — no competing claim).
What landed
stress_join profile in pkgs/id/benches/world_bench.rs (+651/−3): cold join (open store, load latest checkpoint, replay journal tail, first view frame) and warm join (catch-up snapshot + first frame against a resident world), for each stress tier's hot world (5 reps) and 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). Four measured rows added to the limits table of the #6304 scale/perf design doc in the same PR.
Acceptance check
- Bench lines at 1x and 10x on the reference laptop, run manifest recorded — yes; the profile emits a
profile stress_join line per run carrying tier, seed (22673), fixture root, manifest path, and the manifest's hot-world state hash (1x cf92e013f46e3d2c, 10x c7c4fb2805ee72ed), plus 8 bench stress_join_* lines per tier (cold/warm × boundary/mid × hot/active) with p50/p95/p99.
- Join result verifies against the generator manifest's expected state hash — yes: fixture construction verifies every measured world exactly as the generator defines it (FNV-1a over the journal bytes + restored sequence vs
expected_state_hash), and every measured join re-verifies restored sequence, program input count, and first frame after the clock stops.
- Numbers in the design's limits table — yes, four rows (cold/warm × 1x/10x) in the "First measured limits table (v1)".
Numbers (p50, reference laptop, 2026-11-23)
- 1x hot (10k events): cold 4.608 ms boundary / 7.312 ms mid; warm 0.868 / 0.846 ms. 1x active (100 worlds): cold 0.192 / 0.189 ms; warm 0.033 / 0.020 ms.
- 10x hot (100k events, 256 members at the codified cap): cold 6.224 ms boundary / 6.186 ms mid; warm 0.884 / 0.592 ms. 10x active (1,000 worlds): cold 0.170 / 0.148 ms; warm 0.020 / 0.018 ms.
- Headline: cold join grows only ~1.4x from 10k to 100k events — the checkpoint-carried retained window dominates; history length is nearly free.
Disclosures
Downstream
#13087 (first full 10x stress run) named #13084 among its inputs — that leg is now clear; #13087 itself stays open. #13088 remains behind #13087 + #8239.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|