Skip to content

id(phase-14): frame cost vs world state size — view fuel and wall time at 10k/100k/1M events #13085

Closed

Description

@dezren39

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/).

Acceptance

Activity

  1. added
    kind/featureNew feature or capability request
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    design/id-phase-14Design: id-phase-14 - all issues of this effort carry it
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · claimed — Lane QC (archer, sandbox fix lane)

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

    Measured (reference laptop, 2026-11-23)

    profile frame_cost guest=territory seats=2 events=10000 view_fuel=958616 view_wall_us_med=134.0 layout_fuel=958683 layout_calls=5 layout_wall_us_med=138.1 update_fuel_max=59807 applied_secs=0.192
    profile frame_cost guest=territory seats=2 events=100000 view_fuel=958616 view_wall_us_med=127.5 layout_fuel=958683 layout_calls=5 layout_wall_us_med=125.5 update_fuel_max=59807 applied_secs=0.868
    profile frame_cost guest=territory seats=2 events=1000000 view_fuel=958616 view_wall_us_med=145.4 layout_fuel=958683 layout_calls=5 layout_wall_us_med=147.7 update_fuel_max=59807 applied_secs=12.836
    

    Acceptance, point by point:

    • View + layout fuel and wall time at 10k / 100k / 1M applied events: recorded — in the id(phase-14): Scale & performance hardening — v1 — first-iteration design #6304 limits table in the scale & performance design doc (three new measured rows), in the same PR, per the program's rule.
    • 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-phase-14Design: id-phase-14 - all issues of this effort carry itepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requeststatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions