Skip to content

ci(bench): reset the Lynx main-thread caps and background pin for #1700 - #1710

Merged
trueadm merged 1 commit into
mainfrom
ci/lynx-bundle-caps
Oct 4, 2026
Merged

trueadm merged 1 commit into
mainfrom
ci/lynx-bundle-caps

Conversation

@trueadm

@trueadm trueadm commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This budget-only PR covers the weekly lynx-bundle-size gates that #1700 broke, plus the background pin checked in the same block.

Why the caps move.

What changes in benchmarks/lynx-bundle-size/run.mjs (NO_WORKLET_BUDGET, values and comment only).

gate before #1700 main now old cap new cap
preview main gzip 83,657 83,742 83,688 83,774 (measured + 32)
IFR main gzip 89,331 89,404 89,362 89,436 (measured + 32)
background raw (exact pin) 288,390 288,390 294,677 288,390

The background program shrank after the 2026-10-03 reset, through #1652 and #1662, so its exact pin was already failing. Main never reached that gate because the preview cap failed first.

Measured on 77504c160c: node benchmarks/bench.mjs lynx-bundle-size on macOS. The "before #1700" column builds the same tree with packages/lynx/src/main-thread.ts from 76b5b02671. The comment in run.mjs records that Linux and macOS main-thread gzip differ by up to 2 bytes, which the +32 margin covers.

Refs #1055

Validation

  • node benchmarks/bench.mjs lynx-bundle-size: every run.mjs gate passes.
  • pnpm format:files:check benchmarks/lynx-bundle-size/run.mjs
  • pnpm format:check, pnpm typecheck, and pnpm test were not run locally. This change edits budget constants only.

Risk / follow-ups

  • The suite is still red after this PR. inventory.mjs fails on the pre-existing frozen budgets in inventory-budgets.json. Web raw is 519,378 against 501,574, and those budgets have not changed since bench(lynx): inventory production bundle owners #718. That is a separate re-baseline, not covered here.

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
Only benchmark budget constants and comments change; no product code or security-sensitive paths.

Overview
Re-baselines the lynx-bundle-size weekly gates in run.mjs so CI matches current main after #1700.

NO_WORKLET_BUDGET raises preview and IFR main-thread gzip caps (83,688 → 83,774 and 89,362 → 89,436, measured + 32) because freezing a fresh root’s decoded program runs adds ~141 raw bytes on main while improving first-mount density. The background raw pin drops from 294,677 to 288,390 to match the smaller background program after the prior reset (#1652, #1662).

Inline comments document the 77504c1 measurements and tie the main-thread bump to #1700; no runtime or benchmark logic changes.

Reviewed by Cursor Bugbot for commit ac1eef5. Bugbot is set up for automated code reviews on this repo. Configure here.

#1700 freezes a fresh root's decoded program runs so a first mount takes
the dense host record store again. That costs the main thread 141 raw
bytes: preview main gzip 83,657 -> 83,742 and IFR 89,331 -> 89,404,
both over their measured + 32 caps. The weekly-only lynx-bundle-size
gate never ran on that pull request.

Raise both caps to the new measurement + 32. Re-pin the background
program at 288,390: it shrank after the 2026-10-03 reset (#1652, #1662),
and its exact pin is the next gate in the same block. Budget values and
their comment only.

Refs #1055

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm marked this pull request as ready for review October 4, 2026 15:47
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline labels Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No budget breaches, no added work, and no timing changes beyond ±3%.

Compares f8520681a, the merge commit's first parent with a03bcd9fe on the same runner. A byte value over its committed budget or any increase in a js-framework work counter fails this check. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.967 2.925 −0.0% −3.2% … +0.0% ⚪ within noise
octane-tsrx replace 6.242 6.192 ±0.0% −3.0% … +0.8% ⚪ within noise
octane-tsrx add 2.558 2.600 ±0.0% −0.0% … +1.9% ⚪ within noise
octane-tsrx update 0.130 0.129 +1.1% ±0.0% … +2.5% ⚪ within noise
octane-tsrx select 0.006 0.005 −2.6% −4.3% … −1.0% ⚪ within noise
octane-tsrx swap 0.034 0.034 +0.7% −0.7% … +1.5% ⚪ within noise
octane-tsrx remove 0.019 0.019 −0.8% −1.8% … +1.1% ⚪ within noise
octane-tsrx runlots 23.658 23.508 −3.5% −6.7% … +0.4% ⚪ within noise
octane-tsrx select_lots 0.005 0.005 ±0.0% −1.0% … ±0.0% ⚪ within noise
octane-tsrx clear 42.883 43.392 +1.9% +0.6% … +4.0% ⚪ within noise
octane-jsx run 3.433 3.733 ±0.0% −2.6% … +1.4% ⚪ within noise
octane-jsx replace 7.050 6.458 −2.2% −5.7% … +0.0% ⚪ within noise
octane-jsx add 3.192 3.208 ±0.0% −2.9% … +0.0% ⚪ within noise
octane-jsx update 0.251 0.255 −0.4% −1.4% … +0.7% ⚪ within noise
octane-jsx select 0.127 0.126 −0.8% −1.3% … +0.0% ⚪ within noise
octane-jsx swap 0.226 0.229 +1.1% +0.3% … +2.0% ⚪ within noise
octane-jsx remove 0.179 0.186 −0.0% −0.6% … +1.7% ⚪ within noise
octane-jsx runlots 28.842 29.408 +1.8% −0.5% … +3.5% ⚪ within noise
octane-jsx select_lots 1.399 1.367 +0.5% −0.5% … +2.4% ⚪ within noise
octane-jsx clear 44.658 42.942 −3.3% −6.0% … −0.9% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx bindings_js_gzip 240,871 240,859 −12 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 205,103 205,092 −11 (−0.0%) 🟢
octane-tsrx bindings_app_gzip 121,728 121,716 −12 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,740 101,729 −11 (−0.0%) 🟢

50 other measured values are unchanged.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

@trueadm
trueadm merged commit c60eef1 into main Oct 4, 2026
49 of 52 checks passed
@trueadm
trueadm deleted the ci/lynx-bundle-caps branch October 4, 2026 16:17
trueadm added a commit that referenced this pull request Oct 4, 2026
#1714 moved the universal hook cells into the owner kernel, which adds
8 raw bytes to the background program. run.mjs pins that size exactly,
so the weekly lynx-bundle-size suite failed at 288,398 against the
288,390 that #1710 set. Budget value and comment only; the main-thread
caps are unchanged.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant