Skip to content

perf(octane): install never-run capabilities from their creators - #2246

Merged
domgan-oai merged 2 commits into
mainfrom
perf/creator-installed-capabilities
Oct 27, 2026
Merged

domgan-oai merged 2 commits into
mainfrom
perf/creator-installed-capabilities

Conversation

@trueadm

@trueadm trueadm commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Chrome coverage across the examples showed runtime code that ships in every app but only runs when a particular feature is in use. This PR makes five of those capabilities install only from the API or compiled code that needs them, using the drivers.ts pattern: the creator installs the capability, readers test it by truthiness, and it is declared above its readers. It also lets a dead recursive function tree-shake. Render work is unchanged: js-framework work counters are equal or lower, DOM mutations are equal, and the timing A/B is flat.

Capability Installed by Previously reached from
Context dependency checks: memo/implicit bail verify and restamp, cache-hit and skipped-row refresh (CONTEXT_DEPENDENCIES driver, replaces SKIPPED_ROW_REFRESH) the first recorded context read (recordContextDependency) every memo bail, implicit bail and output-cache hit
Memo bail (MEMO_BAIL: tryMemoBail, shallowEqualProps) memo(), the only writer of __memo every component update, as a call that returned at once
Portal Fragment-ref owner registration (FRAGMENT_REFS) a FragmentInstance joining activeFragments every portal() / value portal
Controlled <select> restoration (SELECT_RESTORE) setSelectValue, the only writer of a non-null sv every controlled-element restore
Renderer-region bridge lookups bindRendererRegionOwner (callers now test RENDERER_REGION_OWNER_COUNT by truthiness, since === 0 does not fold) context default reads, teardown, handleRenderError

collectRetiredSignalRetryOwners (dead in 6 of 8 sampled apps) became a named function expression, as signalRetrySlot already is. oxc keeps an unreferenced top-level function alive through its own recursion. (placeMarker has the same shape but stays a declaration: the render-write check classifies DOM writers by their declaring function.)

Each gate is exactly the runtime condition it replaces. Every Block dependency, __memo marker, owned portal, sv value and region bridge implies its installer already ran. One exception: before the first recorded context read, bails no longer stamp $$ctxDepsEpoch, which only makes later checks scan. The new fresh-module test pins that window.

Per-app client JS (production vite build, gzip-9 sum of client chunks, main 7246709 → head)

App Raw main → head Gzip main → head Δ gzip
draftboard 213,113 → 208,998 68,614 → 67,337 -1,277 (-1.9%)
relay 202,051 → 197,936 65,563 → 64,315 -1,248 (-1.9%)
streambox 225,264 → 221,367 72,106 → 70,957 -1,149 (-1.6%)
threadline 152,320 → 148,906 50,625 → 49,638 -987 (-1.9%)
gridlab 224,267 → 221,239 71,997 → 71,068 -929 (-1.3%)
cartlane 305,969 → 304,362 101,919 → 101,482 -437 (-0.4%)
signal-chat 474,519 → 472,915 159,801 → 159,396 -405 (-0.3%)
lexical-playground 622,961 → 622,036 197,247 → 196,922 -325 (-0.2%)
wayfinder 372,660 → 371,377 122,357 → 122,052 -305 (-0.2%)
cinebase 510,205 → 508,922 158,153 → 157,854 -299 (-0.2%)
pulseboard 468,717 → 467,438 149,001 → 148,716 -285 (-0.2%)
pagecraft 548,074 → 547,161 172,470 → 172,278 -192 (-0.1%)
harbor 483,268 → 482,705 153,829 → 153,703 -126 (-0.1%)
flowboard 351,266 → 350,717 113,676 → 113,560 -116 (-0.1%)
mailroom 385,611 → 385,230 123,594 → 123,530 -64 (-0.1%)

hacker-news builds through its own two configs, so it is measured with each one: jsx/vite.config.ts 460,142 → 458,847 raw, 148,841 → 148,526 gzip (−315); tsrx/vite.config.ts 470,850 → 469,567 raw, 150,652 → 150,340 gzip (−312).

Measured with the descriptor renderer stubbed out, which approximates the tree after the descriptor-renderer PR: relay goes from 53,865 to 52,584 B gzip (−1,281).

Byte rows that grew in the benchmark report

The CI bundle-size report shrinks almost every row: `fw_gzip` −370 B, todo −495, chat −481, weather −797, `root-static` −860, `descriptor-children` −809, `binding-radix-vite` −822. A few rows grew; each of them installs every capability, or uses esbuild:

  • `full_fw` (+186 B gzip, +0.1%) and `bindings_fw` (+88 B gzip) ship every capability, so the installers, the driver objects' unmangled member names and the guarded call sites are pure cost there. That cost is the price of letting every other application drop the code.
  • `pagecraft_esbuild` (+26 B gzip) and `binding-base-ui-esbuild` (+28 B gzip): esbuild never folds a never-assigned module `let`, so in those bundles the guards stay and the guarded code stays with them. It still tree-shakes functions named only by unreachable installers, which is why the other esbuild rows shrink (threadline −948, radix −573).
  • Split-shell app chunks (`shell_app`, `shell_client_app`, octane-jsx `app_brotli`) moved +3 to +14 B from chunk-boundary and mangling shifts. Their framework chunks shrank.

The listed never-run code this PR leaves alone, and why

Coverage alone is not proof. Each item below is reachable from a generic path, so splitting it would change behavior:

  • Transition rollback (rollbackRootRender, rollbackTransitionJournal, restoreForSlot, journalForListClear, dropRootOps): every root render journals. Any uncaught render error or root-level suspension rolls back (makeRoot, drainQueue, suspendRootRender), with or without transitions.
  • drainHydrationRenderPhaseUpdates in a createRoot app: despite its name, makeRoot uses it to replay mount-time render-phase updates (QUEUE.length > 0 after the first renderBlock). That is any setState during the first mount.
  • Capture-phase dispatch: already installed by its creator (registerDelegatedCapture installs CAPTURE_FINISH, and compiled capture props call __delegateCaptureEvents). relay reaches it only through setHostProps, so the descriptor-renderer PR removes it there.
  • Focus preservation (captureFocusedMovement, dom-focused-move.ts, contentEditable selection capture): runs whenever anything is focused during a keyed move. Third-party editors set contenteditable imperatively, so no creator can see it.
  • Form extras: in .tsrx apps without descriptors, select, checked, defaultValue and autoFocus are reachable only through setAttribute/setHostProps, which the descriptor PR removes. Composition handling is needed by any controlled text input. The select restore projection was the one creator-gated piece, split here.
  • activity.ts / actions.ts / refs.ts in apps without those features: activity.ts there is generic subtree walks (forEachSubtreeChild, collectVisibleSubtreeRefs, used by many render and teardown paths); Activity itself is already split. The actions.ts and FragmentInstance weight (about 10 KB min in six apps) comes from enableDescriptorCapabilities installing everything on any createElement. That belongs to the descriptor-renderer session, which has been told.
  • signal-owners.ts renderer plumbing (about 1.8 KB min in signal-free apps): see follow-ups.

Validation

  • pnpm typecheck:files packages/octane/src/runtime/*.ts
  • pnpm format:files:check on the changed files, and pnpm sync (no generated changes)
  • pnpm test: left to CI. Ran locally in --project octane: context*, memo-bailout, implicit-element-bailout, auto-memo*, fragment-* conformance, fragment-events, audit-events-portals, controlled-select, controlled-forms, descriptor-form-controls, react-hosted/*, lazy-components and audit-lazy-metadata (44 files, 729 tests); hydration/ (180 files, 8,290 tests); --project octane-signals (31 files, 421 tests); and the new test in octane and octane-prod.
  • Seen to fail: never installing FRAGMENT_REFS fails 8 fragment-future-children tests; never installing MEMO_BAIL fails 3 memo-bailout tests; never installing SELECT_RESTORE fails 4 controlled-select tests; never installing CONTEXT_DEPENDENCIES fails 8 context and memo tests and the new context-first-read.test.ts (Expected "dark", Received "dim").
  • Bundle-size reachability (node benchmarks/bundle-size/run-minimal.mjs): new memo-context and controlled-input scenarios. Dropped/kept controls: descriptor-children drops the context checks, the memo bail, region lookups and collectRetiredSignalRetryOwners (keeps childSlot, tryImplicitBail). context drops the memo bail and region lookups and keeps the context checks. memo-context keeps both. controlled-input drops projectSelectValue and restoreCheckedState (keeps restoreControlledElement). hydrate-frame drops the Fragment-ref portal owners (keeps renderPortalChild).
  • Example e2e suites: CI example apps shards.
  • perf-review: see below.
  • concise-code: see below.

Performance A/B (same session, base = main 7246709, whose runtime is identical to 232464b; alternating base↔head)

js-framework (benchmarks/js-framework/pair.mjs, 30 alternating pairs; work counters from --work-only, jitless precise coverage)

Dialect Op head/base [95% CI] calls base → head DOM base → head
octane-tsrx run 1.000 [1.000, 1.050] 18,083 → 18,083 1,000 → 1,000
octane-tsrx replace 1.000 [0.990, 1.022] 22,095 → 22,095 2,004 → 2,004
octane-tsrx add 1.022 [1.000, 1.045] 24,083 → 24,083 1,000 → 1,000
octane-tsrx update 1.014 [1.006, 1.024] 2,975 → 2,975 100 → 100
octane-tsrx select 0.995 [0.991, 1.005] 76 → 76 1 → 1
octane-tsrx swap 0.977 [0.972, 0.984] 2,089 → 2,089 4 → 4
octane-tsrx remove 1.024 [1.008, 1.049] 2,097 → 2,097 1 → 1
octane-tsrx runlots 1.010 [1.000, 1.015] 180,079 → 180,079 10,000 → 10,000
octane-tsrx select_lots 1.006 [1.003, 1.012] 76 → 76 1 → 1
octane-tsrx clear 1.004 [0.994, 1.013] 89 → 89 10,004 → 10,004
octane-jsx run 1.000 [0.979, 1.000] 25,118 → 25,117 1,000 → 1,000
octane-jsx replace 0.989 [0.958, 1.022] 29,131 → 29,130 2,004 → 2,004
octane-jsx add 1.000 [1.000, 1.043] 37,119 → 37,118 1,000 → 1,000
octane-jsx update 1.019 [1.009, 1.037] 8,611 → 8,610 100 → 100
octane-jsx select 1.002 [0.991, 1.012] 8,112 → 8,111 1 → 1
octane-jsx swap 1.006 [1.006, 1.011] 8,123 → 8,122 4 → 4
octane-jsx remove 0.990 [0.971, 0.994] 8,127 → 8,126 1 → 1
octane-jsx runlots 0.995 [0.974, 1.009] 250,114 → 250,113 10,000 → 10,000
octane-jsx select_lots 1.013 [0.994, 1.036] 80,112 → 80,111 1 → 1
octane-jsx clear 0.990 [0.974, 0.997] 125 → 124 10,004 → 10,004

dbmon (8 rounds, base/head order alternating per round; median ms, median per-round ratio [min, max])

Target:op base head ratio [min, max]
octane-tsrx:mount 4.75 4.75 1.000 [0.979, 1.022]
octane-tsrx:tick 1.8 1.8 1.000 [0.944, 1.059]
octane-tsrx:tick_partial 0.7 0.8 1.000 [1.000, 1.143]
octane-tsrx:remount 4.45 4.5 1.000 [0.957, 1.045]
octane-tsrx:sort 0.8 0.9 1.000 [1.000, 1.125]
octane-tsrx:unmount 1.75 1.8 1.029 [0.900, 1.059]
octane-jsx:mount 6.55 6.5 1.000 [0.985, 1.031]
octane-jsx:tick 1.9 1.95 1.000 [0.950, 1.053]
octane-jsx:tick_partial 0.8 0.85 1.062 [0.889, 1.125]
octane-jsx:remount 5.05 5.05 1.000 [0.961, 1.020]
octane-jsx:sort 1 1 1.000 [0.900, 1.111]
octane-jsx:unmount 1.8 1.8 1.000 [0.900, 1.053]

effectful-list (8 rounds, base/head order alternating per round; median ms, median per-round ratio [min, max])

Target:op base head ratio [min, max]
octane-tsrx:mount_1k 9.3 9.3 1.000 [0.989, 1.022]
octane-tsrx:update_nodeps 0 0 —
octane-tsrx:update_deps 2.615 2.6 0.996 [0.985, 1.004]
octane-tsrx:clear 1.2 1.2 1.000 [1.000, 1.000]
octane-tsrx:remount 10.15 10.1 1.000 [0.990, 1.010]
octane-tsrx:remove_100_scattered 0.5 0.5 1.000 [0.833, 1.000]
octane-jsx:mount_1k 10.7 10.6 0.991 [0.981, 1.009]
octane-jsx:update_nodeps 0.35 0.355 1.000 [0.971, 1.029]
octane-jsx:update_deps 2.875 2.855 0.995 [0.959, 1.014]
octane-jsx:clear 1.2 1.2 1.000 [1.000, 1.083]
octane-jsx:remount 10.85 10.9 1.000 [0.991, 1.019]
octane-jsx:remove_100_scattered 0.9 0.9 1.000 [1.000, 1.000]

transition-hooks (6 rounds, alternating; Node + happy-dom). 106 of 115 rows identical in both trees (renders, map gets, every runtime and application creation count). Timing rows, median per-round ratio [min, max]:

Op ratio
cycle_us 1.003 [0.941, 1.097]
updater_us 0.977 [0.937, 1.096]
held_us 0.988 [0.963, 1.055]
dispatch_us 1.001 [0.960, 1.045]
bail_us 1.004 [0.963, 1.482]
click_us 1.008 [0.944, 1.038]
urgent_us 1.020 [0.958, 1.036]

suspense-recovery (4 rounds, alternating; ms median, median per-round ratio [min, max]):

Op base head ratio
error_reveal 50.95 49.95 0.980 [0.960, 1.008]
retry_recovery 33.25 33.25 1.002 [0.985, 1.265]
cancel_recovery 31.25 31.1 0.979 [0.957, 1.043]

app-frame-hydration (run.mjs 30 --base=<main>, 30 interleaved pairs per run, 4× CPU; Block, render and renderBlock counts identical, heap equal or lower). The A/A builds the head tree as both sides and gives the harness noise floor: 0.984–1.012, with one CI excluding 1.0. The A/B cells sit inside it, and the cells whose CI clears 1.0 change between runs.

Scenario Op A/B run 1 A/B run 2 A/A (head vs head)
frame hydrate_cold 1.006 [0.990, 1.026] 1.006 [0.980, 1.025] 0.994 [0.987, 1.010]
frame hydrate_warm 1.016 [0.959, 1.044] 0.979 [0.966, 0.997] 0.994 [0.951, 1.006]
frame longest_task_cold 1.009 [0.989, 1.023] 1.002 [0.982, 1.018] 0.995 [0.985, 1.002]
frame busy_cold 1.009 [0.989, 1.023] 1.002 [0.982, 1.018] 0.995 [0.985, 1.002]
frame-live-sections hydrate_cold 1.020 [1.004, 1.043] 1.004 [0.988, 1.015] 1.005 [0.992, 1.027]
frame-live-sections hydrate_warm 1.012 [0.978, 1.038] 1.015 [1.000, 1.031] 1.012 [1.000, 1.029]
frame-live-sections longest_task_cold 1.018 [1.002, 1.042] 1.004 [0.993, 1.013] 1.001 [0.993, 1.023]
frame-live-sections busy_cold 1.018 [1.002, 1.042] 1.004 [0.993, 1.013] 1.001 [0.993, 1.023]
frame-plain hydrate_cold 1.001 [0.986, 1.023] 1.020 [1.009, 1.029] 1.005 [0.989, 1.016]
frame-plain hydrate_warm 1.004 [0.971, 1.033] 0.989 [0.969, 1.017] 1.000 [0.992, 1.024]
frame-plain longest_task_cold 1.008 [0.987, 1.021] 1.016 [1.010, 1.026] 0.998 [0.983, 1.011]
frame-plain busy_cold 1.008 [0.987, 1.021] 1.016 [1.010, 1.026] 0.998 [0.983, 1.011]
frame-boundaries hydrate_cold 1.015 [0.992, 1.032] 1.007 [1.001, 1.016] 1.010 [0.991, 1.031]
frame-boundaries hydrate_warm 1.009 [0.963, 1.040] 0.998 [0.973, 1.019] 0.984 [0.962, 1.009]
frame-boundaries longest_task_cold 1.020 [0.995, 1.032] 1.009 [0.998, 1.015] 1.012 [0.991, 1.026]
frame-boundaries busy_cold 1.020 [0.995, 1.032] 1.009 [0.998, 1.015] 1.012 [0.991, 1.026]

js-framework second timed pass (30 pairs, same builds): octane-tsrx run × 1 1.9ms head/base 1.000 [0.946, 1.056]; octane-tsrx replace × 1 3.7ms head/base 1.000 [0.974, 1.029]; octane-tsrx add × 1 1.5ms head/base 1.000 [1.000, 1.000]; octane-tsrx update × 344 51.5ms head/base 1.006 [1.001, 1.009]; octane-tsrx select ×5000 16.7ms head/base 1.009 [0.991, 1.025]; octane-tsrx swap ×1301 19.6ms head/base 1.021 [1.003, 1.029]; octane-tsrx remove × 800 8.4ms head/base 1.000 [0.976, 1.012]; octane-tsrx runlots × 1 13.1ms head/base 0.992 [0.978, 1.023]; octane-tsrx select_lots ×5000 16.5ms head/base 1.006 [1.000, 1.012]; octane-tsrx clear × 1 24.8ms head/base 1.005 [0.992, 1.010]; octane-jsx run × 1 2.2ms head/base 1.000 [0.978, 1.000]; octane-jsx replace × 1 4.0ms head/base 1.000 [0.976, 1.025]; octane-jsx add × 1 1.9ms head/base 1.000 [0.956, 1.051]; octane-jsx update × 108 16.6ms head/base 1.006 [0.988, 1.015]; octane-jsx select × 232 19.3ms head/base 1.000 [0.993, 1.016]; octane-jsx swap × 139 16.0ms head/base 0.994 [0.988, 0.997]; octane-jsx remove × 190 18.0ms head/base 0.997 [0.983, 1.009]; octane-jsx runlots × 1 15.3ms head/base 1.003 [0.971, 1.030]; octane-jsx select_lots × 22 19.6ms head/base 0.988 [0.980, 0.995]; octane-jsx clear × 1 25.4ms head/base 1.026 [1.011, 1.054]. The first pass's outliers flip sign (tsrx remove 1.024 → 1.000, swap 0.977 → 1.021; jsx clear 0.990 → 1.026), with identical work counters.

perf-review: perf/creator-installed-capabilities (232464b..d942043)

Scan: node scripts/perf-review-scan.mjs → 0 candidates.
Hot paths touched: tryMemoBail's three call sites (per component update): one driver read replaces a call that returned at once without memo(). tryMemoBail/tryImplicitBail (per bail): one driver read, then the same two calls through a one-literal driver object. compilerCacheContext past its fast path, and renderBlockInner's hydrate-slot branch (only with direct context reads): one driver read. Teardown handler selection and context default reads: the existing count test moved to the caller, so there are fewer calls when no region exists. The FragmentInstance constructor and setSelectValue add one store each.

# Severity Location Dimension Finding Required evidence Provided?
1 note runtime/component-slots.ts tryMemoBail/tryImplicitBail shapes Driver object is one literal, so property calls stay monomorphic work counters, timing A/B yes
2 note runtime/context.ts recordContextDependency allocation ??= allocates the driver once; later reads do one nullish test where a store ran before — —

Not checked: browser Event Timing (no interaction latency claim is made).

  • concise-code: src +128 −60 (runtime +128 −60); no new runtime files. New exports ctxBailDepsClean, restampCtxDeps and restampCachedSlotContext (for the context.ts installer), MEMO_BAIL/installMemoBail, CONTEXT_DEPENDENCIES and FRAGMENT_REFS, each with callers in this diff. Alternatives: a boolean context flag with direct calls (smaller diff) was rejected because oxc then kept the mutually recursive refresh walk. Installing at createContext was rejected because lazily created contexts make promotion unsafe to gate, while gating consumption on recorded reads is exact. Bytes: per-app table above.

Risk / follow-ups

  • Signal-owner plumbing (about 1.8 KB min, about 0.6 KB gzip in option-less createRoot apps): about 25 sites test renderOwner?.signalOwner at runtime. signalDocumentEnabled || registerRootOptions is a sound foldable gate, because both root constructors call installRootOptions and pruneSignalRetryVisit already relies on it. Several sites are per-render paths, so it belongs in its own PR with its own A/B.
  • memo() pulls the generic return path: one memo() in the minimal context fixture grows it from 69.7 to 149.8 KB raw, because the wrapper forwards the body's return value. That is why memo-context is a separate scenario.
  • Conflict with the descriptor-renderer branch: it also adds a driver in drivers.ts and edits deopt.ts and child-slots.ts. Whichever lands second rebases; the changes are independent.

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.


Note

Medium Risk
Touches hot render, bail, teardown, and context paths with lazy initialization; behavior is validated by tests and benchmarks, with a narrow pre-first-context-read window where bail epoch stamping differs.

Overview
Octane client bundles shrink by installing five optional runtime paths only when an app actually uses them, following the existing drivers.ts pattern (creator installs, readers null-check).

The first recorded context read wires CONTEXT_DEPENDENCIES (memo/implicit bail context checks, cache-hit refresh, skipped list rows), replacing always-on SKIPPED_ROW_REFRESH. memo() alone sets MEMO_BAIL so apps without memo() skip tryMemoBail on every update. Fragment refs flip FRAGMENT_REFS when the first FragmentInstance is created, gating portal owner registration. Controlled <select> sets SELECT_RESTORE on the first non-null sv, so text-only controlled inputs avoid select projection and checked restore. Renderer-region bridge lookups run only when RENDERER_REGION_OWNER_COUNT is truthy at call sites (teardown, context defaults, suspense/error routing).

Call sites use driver indirection (MEMO_BAIL && …, CONTEXT_DEPENDENCIES?.clean, etc.). collectRetiredSignalRetryOwners is a named function expression so unused signal-retry retirement can tree-shake. Bundle-size benchmarks add memo-context and controlled-input fixtures; a test covers provider updates through a memo wall that bailed before any context read was recorded.

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

Applications that never use a capability no longer ship its runtime:

- Context dependency checks (the memo and implicit bail checks, cache-hit
  refreshes and skipped list rows) install with the first recorded context
  read, through one driver that replaces SKIPPED_ROW_REFRESH.
- The memo bail installs with memo(), the only writer of `__memo`, so
  memo-free applications skip its call on every component update.
- A portal registers Fragment-ref owners only once a FragmentInstance exists.
- Controlled select restoration installs with the first controlled select
  value, the only writer of a non-null `sv`.
- Renderer-region bridge lookups are guarded by a truthiness test of the
  region-owner count at each caller, so bundles that never bind a region
  owner drop them.
- Two recursive functions that oxc kept only through their own recursion
  become named function expressions.

Bundle-size reachability controls cover each split; a fresh-module test pins
provider updates through a memo boundary that bailed before the first read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work labels Oct 26, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website bedcfea Commit Preview URL

Branch Preview URL
Oct 26 2026, 09:43 PM

@trueadm
trueadm marked this pull request as ready for review October 26, 2026 21:27
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 20 value(s) increased
  • 🔴 bundle-reachability: 1 value(s) increased

Compares 232464b39, the merge commit's first parent with 9554dc6dc on the same runner. Any increase in a js-framework work counter fails this check; byte changes are a report. 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.275 2.275 ±0.0% −2.0% … +0.0% ⚪ within noise
octane-tsrx replace 4.425 4.392 ±0.0% −2.2% … +2.2% ⚪ within noise
octane-tsrx add 2.083 2.033 −2.3% −4.8% … ±0.0% ⚪ within noise
octane-tsrx update 0.088 0.089 −0.0% −0.7% … +0.5% ⚪ within noise
octane-tsrx select 0.005 0.005 −0.0% −0.8% … +0.3% ⚪ within noise
octane-tsrx swap 0.016 0.015 −1.1% −1.6% … +0.5% ⚪ within noise
octane-tsrx remove 0.012 0.014 +3.0% +1.0% … +8.1% ⚪ within noise
octane-tsrx runlots 20.608 21.167 +0.5% −1.8% … +3.9% ⚪ within noise
octane-tsrx select_lots 0.006 0.006 +0.6% −0.6% … +0.9% ⚪ within noise
octane-tsrx clear 40.958 41.492 +1.0% +0.0% … +2.8% ⚪ within noise
octane-jsx run 3.417 3.167 −0.0% −5.2% … +1.5% ⚪ within noise
octane-jsx replace 6.375 6.692 +4.9% −1.4% … +17.9% ⚪ within noise
octane-jsx add 2.950 3.042 −1.6% −3.6% … +3.4% ⚪ within noise
octane-jsx update 0.164 0.165 −0.0% −1.6% … +0.7% ⚪ within noise
octane-jsx select 0.084 0.083 −0.6% −1.6% … +1.0% ⚪ within noise
octane-jsx swap 0.123 0.125 +0.7% −1.3% … +2.0% ⚪ within noise
octane-jsx remove 0.116 0.113 −0.6% −1.9% … +0.7% ⚪ within noise
octane-jsx runlots 22.683 22.133 −3.6% −5.1% … −1.1% ⚪ within noise
octane-jsx select_lots 0.803 0.794 +0.6% ±0.0% … +1.2% ⚪ within noise
octane-jsx clear 39.842 40.967 +2.9% +2.0% … +3.8% ⚪ within noise

Work counters (an increase fails this check):

target metric base head Δ
octane-jsx calls_run 25,118 25,117 −1 (−0.0%) 🟢
octane-jsx calls_replace 29,131 29,130 −1 (−0.0%) 🟢
octane-jsx calls_add 37,119 37,118 −1 (−0.0%) 🟢
octane-jsx calls_update 8,611 8,610 −1 (−0.0%) 🟢
octane-jsx calls_select 8,112 8,111 −1 (−0.0%) 🟢
octane-jsx calls_swap 8,123 8,122 −1 (−0.0%) 🟢
octane-jsx calls_remove 8,127 8,126 −1 (−0.0%) 🟢
octane-jsx calls_runlots 250,114 250,113 −1 (−0.0%) 🟢
octane-jsx calls_select_lots 80,112 80,111 −1 (−0.0%) 🟢
octane-jsx calls_clear 125 124 −1 (−0.8%) 🟢

54 other measured values are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 86,532 85,354 −1,178 (−1.4%) 🟢
octane-tsrx js_gzip 29,229 28,883 −346 (−1.2%) 🟢
octane-tsrx js_brotli 26,361 26,060 −301 (−1.1%) 🟢
octane-tsrx app_brotli 2,235 2,239 +4 (+0.2%) 🔴
octane-tsrx fw_raw 79,227 78,049 −1,178 (−1.5%) 🟢
octane-tsrx fw_gzip 26,681 26,335 −346 (−1.3%) 🟢
octane-tsrx fw_brotli 24,126 23,821 −305 (−1.3%) 🟢
octane-tsrx todo_js_raw 99,385 97,834 −1,551 (−1.6%) 🟢
octane-tsrx todo_js_gzip 33,883 33,426 −457 (−1.3%) 🟢
octane-tsrx todo_js_brotli 30,381 29,956 −425 (−1.4%) 🟢
octane-tsrx todo_app_gzip 2,678 2,677 −1 (−0.0%) 🟢
octane-tsrx todo_fw_raw 93,436 91,885 −1,551 (−1.7%) 🟢
octane-tsrx todo_fw_gzip 31,205 30,749 −456 (−1.5%) 🟢
octane-tsrx todo_fw_brotli 28,119 27,694 −425 (−1.5%) 🟢
octane-tsrx chat_js_raw 98,113 96,562 −1,551 (−1.6%) 🟢
octane-tsrx chat_js_gzip 33,602 33,135 −467 (−1.4%) 🟢
octane-tsrx chat_js_brotli 30,206 29,746 −460 (−1.5%) 🟢
octane-tsrx chat_app_gzip 3,111 3,114 +3 (+0.1%) 🔴
octane-tsrx chat_app_brotli 2,741 2,732 −9 (−0.3%) 🟢
octane-tsrx chat_fw_raw 91,298 89,747 −1,551 (−1.7%) 🟢
octane-tsrx chat_fw_gzip 30,491 30,021 −470 (−1.5%) 🟢
octane-tsrx chat_fw_brotli 27,465 27,014 −451 (−1.6%) 🟢
octane-tsrx weather_js_raw 135,582 132,518 −3,064 (−2.3%) 🟢
octane-tsrx weather_js_gzip 45,228 44,453 −775 (−1.7%) 🟢
octane-tsrx weather_js_brotli 40,107 39,486 −621 (−1.5%) 🟢
octane-tsrx weather_app_brotli 7,136 7,121 −15 (−0.2%) 🟢
octane-tsrx weather_fw_raw 111,599 108,535 −3,064 (−2.7%) 🟢
octane-tsrx weather_fw_gzip 36,843 36,068 −775 (−2.1%) 🟢
octane-tsrx weather_fw_brotli 32,971 32,365 −606 (−1.8%) 🟢
octane-tsrx bindings_js_raw 691,931 691,919 −12 (−0.0%) 🟢
octane-tsrx bindings_js_gzip 229,231 229,309 +78 (+0.0%) 🔴
octane-tsrx bindings_js_brotli 195,232 195,328 +96 (+0.0%) 🔴
octane-tsrx bindings_app_gzip 118,623 118,622 −1 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 98,505 98,600 +95 (+0.1%) 🔴
octane-tsrx bindings_fw_raw 334,167 334,155 −12 (−0.0%) 🟢
octane-tsrx bindings_fw_gzip 110,608 110,687 +79 (+0.1%) 🔴
octane-tsrx bindings_fw_brotli 96,727 96,728 +1 (+0.0%) 🔴
octane-tsrx shell_js_raw 306,817 305,381 −1,436 (−0.5%) 🟢
octane-tsrx shell_js_gzip 99,916 99,521 −395 (−0.4%) 🟢
octane-tsrx shell_js_brotli 86,934 86,693 −241 (−0.3%) 🟢
octane-tsrx shell_app_gzip 1,153 1,152 −1 (−0.1%) 🟢
octane-tsrx shell_app_brotli 1,032 1,006 −26 (−2.5%) 🟢
octane-tsrx shell_fw_raw 304,918 303,482 −1,436 (−0.5%) 🟢
octane-tsrx shell_fw_gzip 98,763 98,369 −394 (−0.4%) 🟢
octane-tsrx shell_fw_brotli 85,902 85,687 −215 (−0.3%) 🟢
octane-tsrx shell_client_js_raw 251,887 249,202 −2,685 (−1.1%) 🟢
octane-tsrx shell_client_js_gzip 81,711 80,959 −752 (−0.9%) 🟢
octane-tsrx shell_client_js_brotli 71,851 71,082 −769 (−1.1%) 🟢
octane-tsrx shell_client_app_gzip 1,158 1,155 −3 (−0.3%) 🟢
octane-tsrx shell_client_app_brotli 1,014 1,012 −2 (−0.2%) 🟢
octane-tsrx shell_client_fw_raw 249,980 247,295 −2,685 (−1.1%) 🟢
octane-tsrx shell_client_fw_gzip 80,553 79,804 −749 (−0.9%) 🟢
octane-tsrx shell_client_fw_brotli 70,837 70,070 −767 (−1.1%) 🟢
octane-tsrx wayfinder_js_raw 372,660 371,377 −1,283 (−0.3%) 🟢
octane-tsrx wayfinder_js_gzip 122,357 122,052 −305 (−0.2%) 🟢
octane-tsrx wayfinder_js_brotli 106,081 105,715 −366 (−0.3%) 🟢
octane-tsrx threadline_oxc_js_raw 152,320 148,906 −3,414 (−2.2%) 🟢
octane-tsrx threadline_oxc_js_gzip 50,625 49,638 −987 (−1.9%) 🟢
octane-tsrx threadline_oxc_js_brotli 44,669 43,794 −875 (−2.0%) 🟢
octane-tsrx threadline_esbuild_js_raw 178,066 174,735 −3,331 (−1.9%) 🟢
octane-tsrx threadline_esbuild_js_gzip 60,001 59,042 −959 (−1.6%) 🟢
octane-tsrx threadline_esbuild_js_brotli 52,872 51,999 −873 (−1.7%) 🟢
octane-tsrx pagecraft_oxc_js_raw 548,074 547,161 −913 (−0.2%) 🟢
octane-tsrx pagecraft_oxc_js_gzip 172,470 172,278 −192 (−0.1%) 🟢
octane-tsrx pagecraft_oxc_js_brotli 146,454 146,419 −35 (−0.0%) 🟢
octane-tsrx pagecraft_esbuild_js_raw 581,444 581,325 −119 (−0.0%) 🟢
octane-tsrx pagecraft_esbuild_js_gzip 188,340 188,361 +21 (+0.0%) 🔴
octane-tsrx pagecraft_esbuild_js_brotli 160,259 160,125 −134 (−0.1%) 🟢
octane-tsrx full_fw_raw 535,226 535,612 +386 (+0.1%) 🔴
octane-tsrx full_fw_gzip 167,637 167,815 +178 (+0.1%) 🔴
octane-tsrx full_fw_brotli 142,604 142,726 +122 (+0.1%) 🔴
octane-jsx js_raw 163,219 162,270 −949 (−0.6%) 🟢
octane-jsx js_gzip 53,342 53,132 −210 (−0.4%) 🟢
octane-jsx js_brotli 47,186 46,934 −252 (−0.5%) 🟢
octane-jsx app_gzip 3,513 3,512 −1 (−0.0%) 🟢
octane-jsx app_brotli 2,889 2,878 −11 (−0.4%) 🟢
octane-jsx fw_raw 152,419 151,470 −949 (−0.6%) 🟢
octane-jsx fw_gzip 49,829 49,620 −209 (−0.4%) 🟢
octane-jsx fw_brotli 44,297 44,056 −241 (−0.5%) 🟢
octane-jsx shell_js_raw 337,869 337,657 −212 (−0.1%) 🟢
octane-jsx shell_js_gzip 110,109 110,078 −31 (−0.0%) 🟢
octane-jsx shell_js_brotli 95,657 95,690 +33 (+0.0%) 🔴
octane-jsx shell_app_gzip 760 761 +1 (+0.1%) 🔴
octane-jsx shell_app_brotli 652 653 +1 (+0.2%) 🔴
octane-jsx shell_fw_raw 336,780 336,568 −212 (−0.1%) 🟢
octane-jsx shell_fw_gzip 109,349 109,317 −32 (−0.0%) 🟢
octane-jsx shell_fw_brotli 95,005 95,037 +32 (+0.0%) 🔴
octane-jsx shell_client_js_raw 282,615 282,403 −212 (−0.1%) 🟢
octane-jsx shell_client_js_gzip 91,465 91,444 −21 (−0.0%) 🟢
octane-jsx shell_client_js_brotli 80,082 80,077 −5 (−0.0%) 🟢
octane-jsx shell_client_app_gzip 759 766 +7 (+0.9%) 🔴
octane-jsx shell_client_app_brotli 648 660 +12 (+1.9%) 🔴
octane-jsx shell_client_fw_raw 281,518 281,306 −212 (−0.1%) 🟢
octane-jsx shell_client_fw_gzip 90,706 90,678 −28 (−0.0%) 🟢
octane-jsx shell_client_fw_brotli 79,434 79,417 −17 (−0.0%) 🟢
octane-jsx full_fw_raw 535,226 535,612 +386 (+0.1%) 🔴
octane-jsx full_fw_gzip 167,637 167,815 +178 (+0.1%) 🔴
octane-jsx full_fw_brotli 142,604 142,726 +122 (+0.1%) 🔴

13 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 79,135 77,957 −1,178 (−1.5%) 🟢
cli-spa-starter gzip 27,454 27,083 −371 (−1.4%) 🟢
cli-spa-starter brotli 24,655 24,333 −322 (−1.3%) 🟢
root-static-specialized raw 51,907 50,743 −1,164 (−2.2%) 🟢
root-static-specialized gzip 17,791 17,459 −332 (−1.9%) 🟢
root-static-specialized brotli 16,195 15,880 −315 (−1.9%) 🟢
root-chained-jsx raw 54,038 52,874 −1,164 (−2.2%) 🟢
root-chained-jsx gzip 18,509 18,158 −351 (−1.9%) 🟢
root-chained-jsx brotli 16,843 16,520 −323 (−1.9%) 🟢
root-static raw 108,373 105,327 −3,046 (−2.8%) 🟢
root-static gzip 35,513 34,642 −871 (−2.5%) 🟢
root-static brotli 31,892 31,177 −715 (−2.2%) 🟢
root-static-local raw 51,806 50,642 −1,164 (−2.2%) 🟢
root-static-local gzip 17,735 17,409 −326 (−1.8%) 🟢
root-static-local brotli 16,134 15,839 −295 (−1.8%) 🟢
root-callback-local raw 54,456 53,293 −1,163 (−2.1%) 🟢
root-callback-local gzip 18,605 18,263 −342 (−1.8%) 🟢
root-callback-local brotli 16,933 16,609 −324 (−1.9%) 🟢
hooks-state raw 62,805 61,641 −1,164 (−1.9%) 🟢
hooks-state gzip 21,420 21,101 −319 (−1.5%) 🟢
hooks-state brotli 19,537 19,163 −374 (−1.9%) 🟢
signal-counter raw 111,884 110,904 −980 (−0.9%) 🟢
signal-counter gzip 36,905 36,615 −290 (−0.8%) 🟢
signal-counter brotli 33,345 33,081 −264 (−0.8%) 🟢
signal-instance-derived raw 127,961 126,983 −978 (−0.8%) 🟢
signal-instance-derived gzip 41,472 41,185 −287 (−0.7%) 🟢
signal-instance-derived brotli 37,455 37,155 −300 (−0.8%) 🟢
prop-attributes raw 60,089 58,925 −1,164 (−1.9%) 🟢
prop-attributes gzip 20,601 20,290 −311 (−1.5%) 🟢
prop-attributes brotli 18,823 18,454 −369 (−2.0%) 🟢
context raw 70,682 69,742 −940 (−1.3%) 🟢
context gzip 23,808 23,533 −275 (−1.2%) 🟢
context brotli 21,533 21,353 −180 (−0.8%) 🟢
memo-context raw – 149,817 – 🆕
memo-context gzip – 49,106 – 🆕
memo-context brotli – 43,703 – 🆕
controlled-input raw – 62,490 – 🆕
controlled-input gzip – 21,266 – 🆕
controlled-input brotli – 19,255 – 🆕
hydrate-root raw 104,284 103,615 −669 (−0.6%) 🟢
hydrate-root gzip 34,951 34,756 −195 (−0.6%) 🟢
hydrate-root brotli 31,286 31,104 −182 (−0.6%) 🟢
deferred-hydration raw 189,288 186,892 −2,396 (−1.3%) 🟢
deferred-hydration gzip 61,777 61,050 −727 (−1.2%) 🟢
deferred-hydration brotli 53,983 53,393 −590 (−1.1%) 🟢
hydrate-frame raw 346,070 344,068 −2,002 (−0.6%) 🟢
hydrate-frame gzip 111,266 110,694 −572 (−0.5%) 🟢
hydrate-frame brotli 96,805 96,225 −580 (−0.6%) 🟢
suspense-transition raw 117,492 115,554 −1,938 (−1.6%) 🟢
suspense-transition gzip 38,449 37,879 −570 (−1.5%) 🟢
suspense-transition brotli 34,188 33,705 −483 (−1.4%) 🟢
component-owned-effects raw 55,990 54,826 −1,164 (−2.1%) 🟢
component-owned-effects gzip 19,143 18,794 −349 (−1.8%) 🟢
component-owned-effects brotli 17,451 17,117 −334 (−1.9%) 🟢
descriptor-children raw 160,473 157,439 −3,034 (−1.9%) 🟢
descriptor-children gzip 52,199 51,375 −824 (−1.6%) 🟢
descriptor-children brotli 46,403 45,758 −645 (−1.4%) 🟢
binding-hooks raw 65,206 64,042 −1,164 (−1.8%) 🟢
binding-hooks gzip 22,406 22,074 −332 (−1.5%) 🟢
binding-hooks brotli 20,350 20,026 −324 (−1.6%) 🟢
split-shell raw 396,960 395,511 −1,449 (−0.4%) 🟢
split-shell gzip 129,402 128,969 −433 (−0.3%) 🟢
split-shell brotli 112,673 112,475 −198 (−0.2%) 🟢
split-shell-runtime raw 324,430 322,981 −1,449 (−0.4%) 🟢
split-shell-runtime gzip 104,455 104,026 −429 (−0.4%) 🟢
split-shell-runtime brotli 90,178 89,977 −201 (−0.2%) 🟢
binding-base-ui-vite raw 171,129 170,180 −949 (−0.6%) 🟢
binding-base-ui-vite gzip 55,857 55,674 −183 (−0.3%) 🟢
binding-base-ui-vite brotli 49,630 49,361 −269 (−0.5%) 🟢
binding-base-ui-esbuild raw 199,477 199,355 −122 (−0.1%) 🟢
binding-base-ui-esbuild gzip 67,092 67,114 +22 (+0.0%) 🔴
binding-base-ui-esbuild brotli 59,458 59,408 −50 (−0.1%) 🟢
binding-aria-esbuild brotli 2,648 2,646 −2 (−0.1%) 🟢
binding-radix-vite raw 170,461 167,427 −3,034 (−1.8%) 🟢
binding-radix-vite gzip 55,471 54,634 −837 (−1.5%) 🟢
binding-radix-vite brotli 49,243 48,509 −734 (−1.5%) 🟢
binding-radix-esbuild raw 198,860 196,881 −1,979 (−1.0%) 🟢
binding-radix-esbuild gzip 66,790 66,206 −584 (−0.9%) 🟢
binding-radix-esbuild brotli 59,040 58,538 −502 (−0.9%) 🟢
binding-mantine-hooks-vite raw 64,155 62,992 −1,163 (−1.8%) 🟢
binding-mantine-hooks-vite gzip 22,045 21,702 −343 (−1.6%) 🟢
binding-mantine-hooks-vite brotli 20,009 19,679 −330 (−1.6%) 🟢
binding-mantine-hooks-esbuild raw 79,654 79,353 −301 (−0.4%) 🟢
binding-mantine-hooks-esbuild gzip 28,278 28,168 −110 (−0.4%) 🟢
binding-mantine-hooks-esbuild brotli 25,518 25,386 −132 (−0.5%) 🟢
binding-apollo-client-vite raw 317,671 316,554 −1,117 (−0.4%) 🟢
binding-apollo-client-vite gzip 99,360 99,061 −299 (−0.3%) 🟢
binding-apollo-client-vite brotli 87,898 87,691 −207 (−0.2%) 🟢
binding-apollo-client-esbuild raw 353,518 353,422 −96 (−0.0%) 🟢
binding-apollo-client-esbuild gzip 114,794 114,755 −39 (−0.0%) 🟢
binding-apollo-client-esbuild brotli 101,260 101,224 −36 (−0.0%) 🟢
binding-usehooks-ts-vite raw 64,937 63,773 −1,164 (−1.8%) 🟢
binding-usehooks-ts-vite gzip 22,285 21,941 −344 (−1.5%) 🟢
binding-usehooks-ts-vite brotli 20,271 19,900 −371 (−1.8%) 🟢
binding-usehooks-ts-esbuild raw 80,428 80,127 −301 (−0.4%) 🟢
binding-usehooks-ts-esbuild gzip 28,509 28,398 −111 (−0.4%) 🟢
binding-usehooks-ts-esbuild brotli 25,721 25,653 −68 (−0.3%) 🟢

38 other measured values are unchanged.

The render-write check classifies DOM writers by their declaring function. As
a const-bound function expression, placeMarker's insertBefore resolved to
the module top level and failed the check. Restore the declaration: the
function is reached from every bundle that places hydration or descriptor
markers, and its saving was a few dozen bytes in one example.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website-mcp bedcfea Commit Preview URL

Branch Preview URL
Oct 26 2026, 09:42 PM

@blacksmith-sh

This comment has been minimized.

@domgan-oai
domgan-oai merged commit 331811c into main Oct 27, 2026
58 of 62 checks passed
@domgan-oai
domgan-oai deleted the perf/creator-installed-capabilities branch October 27, 2026 12:42
@github-actions github-actions Bot mentioned this pull request Oct 27, 2026
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 perf PR: performance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants