Repository navigation
test(bench): add an app-shell bundle-size set with a React + alien-signals twin - #2027
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
View logs |
octane-website | faa03e1 | Oct 12 2026, 09:13 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
View logs |
octane-website-mcp | faa03e1 | Oct 12 2026, 09:13 PM |
1f5e2c4 to
1fb43ab
Compare
1fb43ab to
faa03e1
Compare
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
75 other measured values are unchanged. Public-import reachability bundles (bytes)No changes across 111 measured values. |
The shell under a split-chunk rolldown + oxc buildThese are measurements to keep alongside the
Do the #1855 / #1942 eliminations survive oxc and split chunks?Yes. I built the same app with static imports two ways and compared them with the source-map oracle:
Both keep identical declarations. The 1.3 KB difference is cross-chunk glue, plus oxc not inlining small functions across a chunk boundary. Other checks:
Chunk totals depend on the chunking configCompare per module through the source map, not per chunk:
Did the signals engine grow between 0.10.2 and 0.13.1?No. I built the same shell against both npm releases, each with its own compiler:
Per module, Where the signals chunk's never-run bytes goAt hydrate, 27% of the signals chunk executes. The largest never-run pieces are:
#2035 measured removing that method at −2,134 raw / −486 gzip on the signals chunk. It is paused as evidence for #2031 item E. |
Summary
shell_*set tobenchmarks/bundle-size/run.mjs. It is the smallest app that combines the runtime features a production Octane app uses together, plus a React 19.3 +alien-signalstwin of the same component.Why
Each existing fixture uses one or two features, so it reaches only a small part of the runtime. Production apps use hydration, lazy routes, Suspense, ViewTransition, transitions, and signals together. The whole app is one component (a
useSignal$counter insideViewTransition, updated instartTransition), one lazy page underSuspense, and ahydrateRootentry. It has under 1 kB of app code, so almost every byte measured is runtime.Local result (Vite 8, oxc minify, gzip):
shell_octane-jsxshell_react 19.3 + alien-signalsKnockout on both twins, swapping the same feature in each (total gzip):
hydrateRoot→createRootViewTransition→ FragmentuseState(useSignal$/alien-signals)lazy+Suspense→ static import + FragmentReact ships these features in its base runtime, so removing them saves it about 2.2 kB. Octane splits each one out, so the base is 10 kB smaller than React's, but each feature adds 11 to 23 kB and the costs add up. With the four features combined, Octane ships 54.3 kB more than React. Without signals on either side (React with
useState, Octane withuseStatebut keeping the other three features), it is 109.6 kB against 68.9 kB.Changes
benchmarks/bundle-size/apps/app-shell/{octane-jsx,react}: the two twins, each withmain.tsx,app.tsx, andpage.tsx.run.mjs: newAPP_SHELLset with prefixshell_andceiling: false, so the signal andalien-signalsimports don't widen the rows ceilings.pnpm-workspace.yaml: both twins are workspace packages. The React twin pinsreact/react-dom19.3.0, the first stable release with<ViewTransition>, because the default catalog is on 19.2. It also bumps the hoistedreactpeer that a few docs/tsrx tooling snapshots resolve, which is lockfile-only, likeweather-app/*, so adding React doesn't re-resolve@apollo/clientpeers in the bindings app.benchmarks/README.md,size-review.mjs: document theshell_prefix.pnpm syncoutput: lockfile hashes inpackages/*/audit/react-parity.jsonand the evals manifest.Validation
node benchmarks/bundle-size/run.mjs octane-jsx react: exits 0, numbers aboveoctane-tscstrict on the Octane twin: cleannode --test benchmarks/size-review.test.mjs scripts/bundle-size-workflow.test.mjs: 22/22 pass (first revision; the harness hasn't changed since)pnpm format:fileson the changed paths,pnpm syncpnpm typecheck/pnpm test: not run locally. No runtime or compiler source changed.perf-review: not applicable (benchmark fixture only)concise-code: 3 source files per twin, about 40 lines each. I didn't extend weather-app, because that would change the existing rows. I didn't add per-featurerun-minimal.mjsscenarios either, because those already gate each feature on its own, and the gap only shows up when the features are combined.Risk / follow-ups
@types/react).octane-jsxreportsvoid-root generic-rootfor this set. That's informational: onlyoctane-tsrxis gated on it.shell_*rows as additions.Provenance
agent-authored)Note
Low Risk
Benchmark and documentation only; React 19.3 is scoped to the new fixture via lockfile, not production Octane packages.
Overview
Adds a
shell_*bundle-size scenario that measures runtime cost when production-style features are combined, not in isolation.New twin apps under
benchmarks/bundle-size/apps/app-shell/share the same UI:hydrateRoot, alazyroute behindSuspense,ViewTransition,startTransition, and a counter driven byuseSignal$(Octane) oralien-signals+useSyncExternalStore(React). The Octane target usesoctane-jsx; the React twin pins React 19.3.0 so<ViewTransition>is available.run.mjsregisters the set with prefixshell_, targetsoctane-jsxandreact, andceiling: falseso signal-related imports do not inflate framework ceiling rows.pnpm-workspace.yamllists both packages;benchmarks/README.mdandsize-review.mjsdocument theshell_prefix.Lockfile sync adds the workspace entries and bumps
lockfileSha256acrossreact-parity.jsonaudit files (no runtime/compiler changes).Reviewed by Cursor Bugbot for commit faa03e1. Bugbot is set up for automated code reviews on this repo. Configure here.