You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(phase-14): frame cost vs world state size — view fuel and wall time at 10k/100k/1M events #13085
Part 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
Measure frame cost as a function of world state size: view (and layout, where present) fuel and wall time at 10k / 100k / 1M applied events, using the existing WorldInstance::metrics / id world measure machinery rather than new instrumentation. The known near-limit reference point at 1x state sizes is the Territory-class view at ~7.1-7.8M of the 10M default fuel budget (see pkgs/id/doc/2026-10-17T15-30-00Z_feature_world_perf_budgets/).
Plan: locate the landed generator + measure entry points on current main, generate the three state sizes, measure view (and layout, where present) fuel and wall time, record the numbers in the id(phase-14): Scale & performance hardening — v1 — first-iteration design #6304 limits table, and report any size that exceeds the default fuel budget as a measured limit with the guest/world shape named.
Done — Lane QC. Landed via PR #13209, merged at 3df7edbbbb27c8c9ee23bbd351870e5bd0cd0d5e (head c676f60a366).
What landed
New frame_cost profile in pkgs/id/benches/world_bench.rs: the Territory-class guest (checked-in territory.wasm, perf-budgets baseline shape — two seats joined) takes N applied cursor-move inputs; view and layout frames are then measured at full state through WorldInstance::metrics (fuel = fuel_last of dedicated calls; wall = median of five calls). ID_BENCH_FRAME_EVENTS selects a single size; --quick is a 200-event smoke run. Workloads only, no new instrumentation, per the design.
Over-budget sizes reported as measured limits: none. Frame cost is flat in applied-event count at this shape — identical fuel at all three sizes, ~9.6% of the 10M default budget — so there is no size at which view (or layout) exceeds the default fuel budget for this guest/world shape (Territory-class, 2 seats). The guest/world shape is named in each table row.
Two notes for the program
The design §3's Territory reference point (worst view 7.1–7.8M fuel) is stale for the current checked-in module: the FUEL_BUDGETS baseline for territory view in crates/id-worlds/src/sandbox.rs is 1,134,256 (the guest's style-runs rendering landed after the 2026-10-17 perf-budgets doc). The binding frame limit for this guest class remains seats/board state (the perf-budgets seat sweep: out of fuel at 6 seats on the old module), not applied-history length. Worth correcting in §3 when id(phase-14): first 10x stress run — measured limits table update #13087 assembles the program table.
Wall times were taken on the reference laptop under multi-lane load and are indicative; fuel is exact (instruction count, host-independent). A post-rebase rebuild re-ran the 10k size and reproduced identical fuel (958,616 / 958,683).
Activity
developing-today commentedon Nov 23, 2026
CODE-4774
dezren39 commentedon Nov 23, 2026
🤖 Agent note · claimed — Lane QC (archer, sandbox fix lane)
WorldInstance::metrics/id world measuremachinery, no new instrumentation.feat(id): frame_cost bench profile — view/layout fuel and wall at 10k…
feat(id): frame_cost bench profile — view/layout fuel and wall at 10k…
Merge pull request #13209 from developing-today/lane-qc-13085
dezren39 commentedon Nov 23, 2026
Done — Lane QC. Landed via PR #13209, merged at
3df7edbbbb27c8c9ee23bbd351870e5bd0cd0d5e(headc676f60a366).What landed
New
frame_costprofile inpkgs/id/benches/world_bench.rs: the Territory-class guest (checked-interritory.wasm, perf-budgets baseline shape — two seats joined) takes N applied cursor-move inputs; view and layout frames are then measured at full state throughWorldInstance::metrics(fuel =fuel_lastof dedicated calls; wall = median of five calls).ID_BENCH_FRAME_EVENTSselects a single size;--quickis a 200-event smoke run. Workloads only, no new instrumentation, per the design.Measured (reference laptop, 2026-11-23)
Acceptance, point by point:
Two notes for the program
FUEL_BUDGETSbaseline for territory view incrates/id-worlds/src/sandbox.rsis 1,134,256 (the guest's style-runs rendering landed after the 2026-10-17 perf-budgets doc). The binding frame limit for this guest class remains seats/board state (the perf-budgets seat sweep: out of fuel at 6 seats on the old module), not applied-history length. Worth correcting in §3 when id(phase-14): first 10x stress run — measured limits table update #13087 assembles the program table.