Skip to content

feat(id): frame_cost bench profile — view/layout fuel and wall at 10k/100k/1M applied events (#13085) - #13209

Merged
dezren39 merged 1 commit into
mainfrom
lane-qc-13085
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-qc-13085

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Implements the frame-cost slice of the #6304 scale & performance stress program. #6304 itself stays open.

What

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; the 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 runs a 200-event smoke size. Adds 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

Finding

Frame cost is flat in applied-event count at this shape — identical fuel at 10k / 100k / 1M, ~9.6% of the 10M default budget — so no size is reported as a measured limit. Note the design §3's 7.1–7.8M Territory reference point is stale for the current checked-in module (the FUEL_BUDGETS baseline for territory view is 1,134,256); the binding frame limit for this guest class remains seats/board state (the perf-budgets doc's seat sweep), not history length. Wall times were taken under multi-lane load and are indicative; fuel is exact.

The three sizes are recorded in the #6304 limits table in the design doc, per the program's rule that results land in the same PR that lands a tier run.

Closes #13085.


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

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Clippy (1.99.1)

Clippy execution timed out
Clippy (1.99.1) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.

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-23T11:19:12.908532Z c676f60 New commits
ℹ️ 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.

…/100k/1M applied events (#13085)

New `frame_cost` profile in world_bench: the Territory-class guest
(checked-in territory.wasm, perf-budgets baseline shape — two seats
joined) takes N applied cursor-move inputs, then the view and layout
frames are measured at full state through WorldInstance::metrics
(fuel_last of dedicated calls; wall is the median of five calls).

Measured on the reference laptop, 2026-11-23 (fuel is exact; wall
times taken under multi-lane load, indicative only):

  events=10000   view_fuel=958616 view_wall_us_med=134.0 layout_fuel=958683 layout_wall_us_med=138.1
  events=100000  view_fuel=958616 view_wall_us_med=127.5 layout_fuel=958683 layout_wall_us_med=125.5
  events=1000000 view_fuel=958616 view_wall_us_med=145.4 layout_fuel=958683 layout_wall_us_med=147.7

Frame cost is flat in applied-event count at this shape: ~9.6% of
the 10M default fuel budget at every size, so no size is reported
as a measured limit. The design's 7.1-7.8M Territory reference
point is stale for the current checked-in module (the FUEL_BUDGETS
baseline for territory view is 1,134,256); the binding frame limit
for this guest class remains seats/board state, not history length.

The three sizes are recorded in the #6304 limits table in the
scale & performance design doc.
@dezren39
dezren39 merged commit 3df7edb into main Nov 23, 2026
1 of 2 checks passed
@dezren39
dezren39 deleted the lane-qc-13085 branch November 23, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant