Skip to content

bench(lynx): inventory production bundle owners - #718

Merged
trueadm merged 3 commits into
octanejs:mainfrom
Huxpro:huxcx/bench-lynx-production-inventory
Aug 12, 2026
Merged

trueadm merged 3 commits into
octanejs:mainfrom
Huxpro:huxcx/bench-lynx-production-inventory

Conversation

@Huxpro

@Huxpro Huxpro commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add an exact rows=0 production inventory for Web and Lynx bundles
  • capture pre-encode main/background sections, hashes, raw/gzip/brotli sizes, and reachable transformed modules
  • classify every reachable byte by subsystem with 100% proportional raw attribution
  • add exact total, section, and owner budgets with explicit calibration
  • run the inventory from the root Lynx bundle-size suite and check in the latest-main report

Tracks the umbrella at Huxpro#48.

Latest-main baseline

Source: upstream main at ffadd397, which includes merged #706 and #707.

artifact raw gzip brotli
Web bundle 485,345 132,334 100,114
Lynx bundle 474,618 159,077 134,144
main section 203,712 57,563 48,950
background section 277,505 74,381 63,571

The inventory accounts for 2,923,829 transformed reachable raw bytes. Largest owners are compiler output (140,155 Web / 137,057 Lynx), build wrapper (90,775 / 88,768), universal runtime (78,258 / 76,528), host/PAPI (37,599 / 36,768), and protocol (34,427 / 33,666).

The report also preserves the controlled ledger for #706 and the complete two-commit #707 head. Compressed ledgers are intentionally reported as controlled whole-build measurements rather than summed per-module gzip claims.

Validation

  • node benchmarks/lynx-bundle-size/inventory.mjs — all total/section/owner budgets passed
  • node benchmarks/lynx-bundle-size/run.mjs — preview and IFR budgets passed
  • node benchmarks/bench.mjs --only lynx-bundle-size --ratios
  • pnpm format:files:check benchmarks/bench.mjs benchmarks/lynx-bundle-size
  • pnpm sync

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Benchmark-only inventory and budget recalibration; no product runtime or security-sensitive code changes. Risk is limited to CI size-gate accuracy.

Overview
Adds a production rows-0 inventory for the Lynx table fixture that builds Web and Lynx artifacts, records hashes plus raw/gzip/Brotli sizes, and attributes 100% of final raw bytes by reachable-module owner.

Wires inventory.mjs into the lynx-bundle-size suite with frozen total, section, and owner budgets in inventory-budgets.json, plus a checked baseline report. Recalibrates the existing no-worklet preview/IFR gzip and background raw caps on the integrated #706/#707 stack instead of applying controlled gzip deltas additively.

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

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit c8ddb83. Configure here.

Comment thread benchmarks/bench.mjs Resolved
@github-actions github-actions Bot added the agent-authored Diff or issue body substantially produced by an AI agent label Aug 12, 2026
@trueadm
trueadm marked this pull request as ready for review August 12, 2026 09:45
@trueadm
trueadm merged commit 28d719c into octanejs:main Aug 12, 2026
21 of 22 checks passed
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants