Benchmark Vite builds use build.minify: 'esbuild'. Untimed diagnostic builds
that inspect function names or generated code keep minification disabled. The
byte suites bundle-size and bundle-reachability instead build with Vite 8's
default 'oxc' minifier, because they measure what a Vite application ships.
A set of self-contained benchmark suites, each a pnpm workspace of fixture apps
(octane + reference frameworks) plus a Playwright/Node harness. Every suite can
be run on its own; benchmarks/bench.mjs is the unified runner that boots the
servers, drives every harness, collects machine-readable results, and enforces
regressions — it is what makes the numbers load-bearing.
Each suite has its own README.md describing what it measures and which octane
subsystem a bad number points at. This file documents the runner and the
result contract.
The comparative suites include native Inferno 9, Preact, and Svelte 5 fixtures
alongside the existing React, Solid, Ripple, and Vue Vapor references. Inferno
fixtures use inferno, inferno-server, inferno-hydrate, and
babel-plugin-inferno directly rather than a React compatibility layer. Preact fixtures use
preact/preact/hooks directly, including native scheduler timing, with
preact/compat only for React-shaped APIs that core does not expose, such as
portals, Suspense, memo, and useSyncExternalStore; Svelte fixtures use runes,
keyed #each, modern event attributes, and the public imperative APIs. Framework-specific
capability gaps stay explicit: Svelte's public server renderer is buffered, so
streaming-ssr reports no Svelte target rather than wrapping buffered HTML in a
fake stream. codegen-size, dbmon-deopt, and js-framework-deopt remain
Octane-only by design.
Inferno is included in every framework-comparative benchmark whose contract can be implemented through Inferno's public browser or Node APIs:
- browser workloads: js-framework (including reorder), TodoMVC, weather and Lighthouse, chat-stream, SVG dashboard, UIbench, dbmon, recursive context, SPA navigation, signal-favoring, effectful-list, portal-swarm, async waterfall, and async composition;
- the shared news fixture: SSR/hydration, hydration interactivity and stress, lifecycle memory, controlled forms, external-store fan-out and integrations, selector fan-out, scheduler responsiveness, suspense recovery, event delegation, application composition, and scaling curves;
- server and build workloads: SSR throughput, streaming SSR, HTTP streaming, streaming backpressure, compiler throughput, and bundle size; and
- the real Tauri desktop shell.
Capability exclusions stay explicit. memo-wall records Inferno as N/A because
Inferno 9 only exposes legacy context, whose consumers cannot observe an update
through an ancestor that returns false from shouldComponentUpdate.
activity requires React/Octane Activity semantics, and ssr-workerd requires a
Web Streams/Worker renderer while Inferno exposes a Node stream. React-hosted,
binding-specific, metaframework, Three, Lynx, universal-driver, compiler-deopt,
and Octane-internal suites are not general framework matrices, so they do not
gain an artificial Inferno row.
Every primary React benchmark uses the production React Compiler 1.0 through
Vite's official React Compiler preset. The shared
react-compiler.mjs integration also compiles server,
Worker, and .tsrx fixtures, so SSR comparisons receive the same treatment as
browser-rendered React. The memo-wall suite additionally keeps an explicitly
labeled uncompiled React control to isolate the compiler's effect without
changing the primary compiled React comparison.
node benchmarks/bench.mjs # every suite, normal iterations
node benchmarks/bench.mjs js-framework memo-wall # only these suites
node benchmarks/bench.mjs --quick js-framework # reduced-iteration smoke pass
pnpm bench:stable js-framework # median of five full harness runs
node benchmarks/bench.mjs --repeat=3 dbmon # choose a fixed repetition count
node benchmarks/bench.mjs --list # list suite names
pnpm bench:all -- --quick # same via the root scriptFor server-backed browser suites, the runner first production-builds each fixture
app (pnpm --filter <pkg> build), starts its preview server
(pnpm --filter <pkg> preview), waits for the strict port, runs the harness with
BENCH_JSON pointed at a temp file, then stops its preview process groups.
Occupied ports are rejected rather than cleared. Suites run sequentially;
a per-user host lock prevents another unified runner, including one in another
worktree, from running alongside it. A fixture is built at most once per runner invocation, even if multiple
suites reuse it. Collected results land in benchmarks/results/<suite>.json
(gitignored), one file per suite.
Some suites need no preview servers: news, hydration-interactivity, and the three runtime-stress suites vite-build and time each target themselves (the runner loops their per-target invocations and merges them), ssr-throughput, streaming-ssr, conversation-streaming, lynx-list, universal-leaf-update, universal-for-row-memo, universal-template-programs, universal-object-teardown, universal-template-events, universal-native-hover, universal-owner-drafts, universal-hook-slot, universal-draft-lookup, scoped-descriptor-shapes, memo-wrapper-shapes, universal-external-store, lynx-render, lynx-bundle-size, tsrx-renderer-validation-ranges, and tsrx-local-component-name-catalog are Node-only, ssr-http and tanstack-start boot (and kill) their own production HTTP servers per sample — that spawn/listen/first-byte cycle IS the measurement — and codegen-size / bundle-size / bundle-reachability / three-bundle-size / lynx-bundle-size are deterministic build/byte checks.
Use pnpm bench:stable <suite...> for local performance work. It runs each
suite five times in fresh harness processes, sequentially, and reports the
median of the five run scores. --repeat=N chooses a fixed count. This
reduces the influence of an unusually slow or fast process lifetime without
discarding inconvenient runs or retrying until a threshold passes. It costs
roughly N times the measurement time. Single-run defaults and --quick stay
available for smoke checks; --quick --repeat=N repeats the smoke protocol.
Preview builds and servers are reused across repetitions. Harnesses that build
their own fixtures still perform their normal build each time. Each harness's
sampling protocol is unchanged by --repeat. The local js-framework harness
also batches reversible short operations to avoid
timer-resolution noise, using the same calibration as its paired PR harness.
Timing results
can still move with CPU contention, power state, temperature and browser or
toolchain updates; no local wall-clock protocol can make them identical.
The summary table includes the range and coefficient of variation (sample
standard deviation / mean) of run scores, so persistent noise remains visible.
Original merged suite summaries and target metadata are saved in runs and in
<suite>.run-N.json alongside <suite>.json. Aggregated operations use
scoreKind: "run-median"; timing score and legacy median are the median run score,
and min is the median of the per-run minima for the existing comparison rule.
betweenRuns holds the individual scores, range and cvPercent. These are
not pooled timing distributions: within-run percentiles, errors and sample
counts remain attached to their original runs. Byte/count operations keep their median-only fields and
their original units and expose any between-run disagreement too.
Missing/changed targets or operations and non-finite measurements fail
aggregation. Any harness failure stops repetition, remains a failed run, and
cannot overwrite a baseline. Completed repetitions are saved before aggregation
so an incomplete run is inspectable. --compare requires the same repetition
count as the baseline; re-record existing single-run baselines before comparing
repeated results. Keep the same iterations, target selection, machine and
toolchain when recording and comparing.
The lock covers unified-runner invocations only: avoid standalone harnesses, builds, tests or other CPU-heavy work alongside measurements. The lock is released on normal exit and handled termination signals. After an unhandled crash or forced kill, the error prints the lock path, PID and checkout; verify that no benchmark is running before manually removing the stale lock.
The js-framework (including reorder), chat-stream, dbmon, effectful-list, list-clear, memo-wall, portal-swarm, recursive-context, signal-favoring, spa-navigation, svg-dashboard, and TodoMVC harnesses finish pending style and layout for the current document immediately before starting each sample timer. This follows sample setup and garbage collection, so freshly reset rows and rows that already received a browser frame start from the same layout state. Adaptive memo-wall batches use the same preparation during calibration.
The geometry read prepares the existing DOM; operations, repeated commits and their awaited scheduler flushes remain inside the timer. The harnesses do not add a post-operation layout or paint wait. Any geometry read already performed by a workload retains its original timing boundary.
Absolute browser timing records made before this preparation was added are
different measurements. Re-record affected suites on the same machine with
--record before using --compare. Keep paired ratio guards until new matched
measurements justify a change; an increased duration can reflect corrected
initial layout state rather than slower framework code.
The real Chromium regression checks initial layout, measured geometry work, sync/async commit boundaries and keyed survivor identity:
node --test benchmarks/js-framework/timing.test.mjs| flag | what it does | fails the run? |
|---|---|---|
--record |
write current numbers to baselines/local/<suite>.json |
no |
--compare |
diff current numbers vs baselines/local/<suite>.json |
on any regression |
--ratios |
check baselines/ratios.json guards |
on any breach |
--quick |
reduced iterations / seconds per suite | — |
--repeat=N |
median of N sequential fresh-process runs, retaining every result | on any harness failure or incompatible results |
--baseline-dir=<dir> |
override the absolute-baseline dir | — |
--results-dir=<dir> |
override where per-suite JSON is written | — |
What fails CI vs what is local-only:
- CI enforces
--ratiosonly. Ratio guards compare two targets measured on the same machine in the same run. That cancels shared variation; byte/count ratios are deterministic for a fixed toolchain, while timing guards retain explicit noise headroom..github/workflows/bench.ymlrunsnode benchmarks/bench.mjs --quick --ratioson manual dispatch + a weekly cron, uploadsbenchmarks/results/as an artifact, and fails on a breach. Set the manualfullinput totrueto use normal sample counts for a website snapshot. The artifact includesenvironment.jsonwith the source revision, runner hardware, and toolchain versions. Framework comparisons must use targets measured together; absolute timings from different machines are not release-to-release performance evidence. --record/--compareare local-only. Absolute timing baselines are specific to the recording machine; deterministic byte/count records are portable only across the same fixture and toolchain. Neither is a CI gate. Seebaselines/README.md.
Pull request report: .github/workflows/pr-bench.yml runs bundle-size, bundle-reachability, and a paired js-framework comparison (Octane targets only) on every ready pull request. The base is the merge commit's first parent, the main commit the pull request would land on, so every delta is the pull request's own; the report says separately how far main has moved past the pull request's recorded base. Byte suites run once per tree. js-framework/pair.mjs, from the merge commit, builds and serves both trees' fixtures and drives them itself. It counts each operation's production-bundle calls (Chromium precise coverage in a --jitless browser) and DOM mutations (a MutationObserver), which are exact for a fixed build. It then times base and head in one browser, alternating per sample across 30 pairs and looping repeatable operations to about 20ms per sample, and reports the median head/base ratio with a 95% bootstrap interval. pr-report.mjs diffs the two result sets and .github/workflows/pr-bench-comment.yml posts the Markdown as one sticky comment. The job fails when any js-framework work counter increases or when a suite fails on the merge commit; byte changes are reported only. Wall time is a report only: an operation is called slower or faster when its whole interval lies beyond ±3%. Reproduce it locally from one checkout with another as the base: node benchmarks/js-framework/pair.mjs --base-tree=<checkout> --base-json=<dir>/base/js-framework.json --head-json=<dir>/head/js-framework.json, the byte suites with --results-dir in each checkout, then node benchmarks/pr-report.mjs --base=<dir>/base --head=<dir>/head.
Post-merge size review: .github/workflows/size-review.yml builds bundle-size and bundle-reachability on the commit before each push to main and on the pushed commit. When a bundle grew by at least 32 gzip bytes (override with the SIZE_REVIEW_MIN_GZIP_BYTES repository variable), Claude reviews the landed diff with read-only tools: where the bytes went, whether the growth is earned or slop, and how it could have been written smaller. size-review.mjs records each review as a comment on one rolling "Bundle size review" issue, opening a new issue only when none is open. Runs only ever add comments, so concurrent pushes cannot overwrite each other's entries, and a duplicate issue two of them opened is folded into the oldest and closed. Claude runs only when the ANTHROPIC_API_KEY repository secret is set; without it the issue records the measured growth alone. Run the workflow by hand with a base and head to review an earlier range.
The compare rule is noise-aware: an op is a regression only if
score > 1.15× baseline and min > 1.10× baseline; for sub-1ms ops it must
also exceed the baseline score by an absolute >0.1ms. Existing median-only
baselines fall back to median, so old records remain readable.
Refreshing ratio guards: node benchmarks/bench.mjs --record --ratios <suites>
writes baselines/ratios.suggested.json (observed ratio × 1.5) without
overwriting ratios.json. Review and hand-copy — never auto-ratchet the gate.
Every harness, when process.env.BENCH_JSON is set, writes that path (overwrite)
after printing its normal tables:
{
"suite": "js-framework",
"iterations": 8,
"targets": [
{ "name": "octane-tsrx",
"ops": {
"run": {
"score": 1.58,
"median": 1.6,
"min": 1.5,
"mean": 1.62,
"p95": 1.8,
"sd": 0.1,
"rme": 4.2,
"warmupRatio": 1.08,
"samples": 8
}
},
"meta": { "…": "correctness counters / bytes go here" } }
]
}- Timing operations are milliseconds.
scoreis the headline value for comparisons: the mean of the latest stable sample window (ormedianwhen a quick run has too few samples to infer a window). This mirrors Benchmark.js's preference for mean period + uncertainty over median-only reporting, while keeping sample order visible enough to catch residual JIT warmup.median,min,p95,sd,rmeandwarmupRatioare diagnostics; ops/sec suites addopsPerSec. Independent cold samples whose order does not represent warmup use the full sample mean viasummarizeSamples(samples, { scoreMode: 'mean' }). Non-timing extras (payload bytes, render counters, gate status) go under a per-targetmetaobject. - On a correctness-gate failure the harness still writes the JSON but adds a
top-level
"failed": "<reason>"and exits non-zero. The runner surfaces this (harnessExit) and treats it as fatal unless the suite has an active, expiry-dated waiver inHARNESS_FAILURE_ALLOWLIST. - Every harness also accepts an iterations argv (
node run.mjs [iter], or after the target name for news) so the runner can drive reduced smoke passes. ssr-throughput is time-budgeted: its knob is a per-config seconds value and--quickpasses the harness's own--quick.
Some DOM-heavy browser suites, including TodoMVC, chat-stream, and portal-swarm,
use lib/dom-nodes.mjs to publish a deterministic census alongside timings.
TodoMVC and chat-stream expose nodes_*, elements_*, text_*, comments_*,
empty_text_*, and whitespace_text_* as zero-variance operations suitable for
ratio guards; detailed comment-payload and parent-element histograms live under
meta.dom. Count the fixture root (#main, with #app fallback) unless the
behavior intentionally escapes it: portal-swarm records both #main and the
whole body so target-side portal ranges stay visible. Keep visible elements/text
as independent guards—a lower total obtained by dropping user-visible content
is a correctness failure, not an optimization. The js-framework suites report
timings without a DOM census.
Compiler-sensitive work counts use a separate production work.mjs invocation
with jitless Chromium precise call coverage. This avoids source probes changing
purity or memoization. Such invocations emit unique *-work target names, omit
iterations so they cannot overwrite the timing run's sample count, and fail on
missing production-asset coverage or semantic-write mismatches. Established
optimization guards also fail on increases above exhaustive scaffolding
ceilings; a new baseline suite reports work without guessing a cost ceiling
before its pinned-toolchain run. Specialized component-slot variants use
aggregate ceilings so a cheaper lowering may replace a generic slot without
turning an optimization into a gate failure.
The shared collector's optional after hooks verify the result after taking the
coverage snapshot, keeping event-based semantic probes out of the measured work.
Unhandled page errors and console errors fail the work sample even when its
semantic hooks complete.
When a dialect timing ratio is important, suites may emit
octane-{tsrx,jsx}-dialect-pair aliases. Those aliases combine fully-warmed raw
samples from a TSRX→TSX→TSX→TSRX sequence with an independent-run mean; the
original one-pass rows remain unchanged for cross-framework comparisons.
The runner keys everything (result files, baselines, ratio guards) by the
manifest suite name, not the JSON's internal suite field — so the deopt
variants (dbmon-deopt, js-framework-deopt), which reuse a base harness via a
TARGETS pairing and therefore write suite: "dbmon" / "js-framework"
internally, get their own baseline and guard namespace.
| manifest name | dir | servers | notes |
|---|---|---|---|
js-framework |
js-framework | Octane + reference frameworks | krausest ops incl. add |
js-framework-reorder |
js-framework | same fixtures | keyed reorder matrix (LIS vs lastPlacedIndex) |
todomvc |
todomvc | Octane + reference frameworks | Speedometer-style TodoMVC interactions |
weather-app |
weather-app | octane-tsrx, react, preact, solid, svelte, vue, inferno | upstream weather UI: cold ready, keyed forecast churn, async search/error/recovery |
weather-app-lighthouse |
weather-app | octane-tsrx, react, preact, solid, svelte, vue, inferno | desktop Lighthouse categories plus FCP/LCP/Speed Index/TBT/CLS |
chat-stream |
chat-stream | Octane + reference frameworks | deterministic token streaming + conversation switches |
chat-switching |
chat-stream/switching | none (headless Chromium) | trusted presses during streaming across retained and evicted Activity panes in React and native Octane, using the same Signals graph and separate subscription work counts |
streamdown-hosted |
streamdown-hosted | React Streamdown + React-hosted Octane binding | React-hosted compatibility boundary: static mount/replace, fine/coarse Markdown streaming, semantic DOM parity, lifecycle diagnostic, and production bytes |
svg-dashboard |
svg-dashboard | octane-tsrx, react, solid, svelte, inferno | hand-rolled SVG observability dashboard: path-d/transform churn, keyed reconcile inside <svg>, foreignObject labels, portal tooltip overlay, createElement icon de-opt; byte-exact Node-replay + cross-flavor DOM-parity gates |
uibench |
uibench | octane-tsrx, react, preact, solid, ripple, vue-vapor, inferno | fresh implementation of UIbench's 96-case desktop matrix: table/sparse-style updates, flat and nested keyed tree transforms, historical worst cases, large no-change diffs, and semantic/identity gates |
dbmon |
dbmon | Octane + reference frameworks | per-cell update churn |
recursive-context |
recursive-context | Octane + reference frameworks | context fan-out |
spa-navigation |
spa-navigation | octane-tsrx, octane-jsx, react, solid, vue-vapor, inferno | full-page routed-subtree teardown/mount with shell/layout identity and production-work gates |
signal-favoring |
signal-favoring | Octane + reference frameworks | cascade vs targeted |
scoped-signals |
scoped-signals | none (Node-only) | same-version Alien 3.2.0/scoped-engine graphs, intermediate notification/value gates, and continuous partial disposal with unrelated live owners; optional separate heap diagnostics |
news |
news | none (builds) | SSR + hydration, per-target |
hydration-interactivity |
hydration-interactivity | none (builds) | real pre-hydration typing, controlled inputs, native event replay, and 1×/6× Chromium CPU throttling across Octane, React, Preact, Solid 2, Svelte, Vue Vapor, and Inferno |
hydration-stress |
hydration-stress | none (builds) | withheld-chunk hydration, keyboard and pointer Send delivery, DOM adoption, and explicit replay/drop diagnostics at 6× CPU throttling |
lifecycle-memory |
lifecycle-memory | none (builds) | 1,000+ effectful mount/update/unmount cycles, real listener/subscription/timer cleanup, post-teardown event probes, and explicitly collected Chromium heap across all seven frameworks |
controlled-form |
controlled-form | none (builds) | 512 controlled fields, real typing, DOM identity, focus and caret, validation cancellation, complete submit/reset, and native select/checkbox/radio correctness |
dev-form-diagnostics |
dev-form-diagnostics | none (Node/jsdom) | development-only controlled-form diagnostic commit scaling at 4,000 and 32,000 hosts |
scheduler-depth |
scheduler-depth | none (Node/jsdom) | production client scheduler ordering across 500 and 2,000 deeply nested queued components |
hydration-range-compaction |
hydration-range-compaction | none (Node/jsdom) | production SSR hydration range compaction across 64 and 512 coextensive wrappers, with adoption, interaction, marker-depth, and unmount gates |
deferred-hydration-boundaries |
deferred-hydration-boundaries | none (Node/jsdom) | production deferred hydration at 1 and 2,048 server-preserved boundaries, with a deterministic per-boundary setup-allocation guard and plain-mount control |
external-store-fanout |
external-store-fanout | none (builds) | 512 subscribers, narrow and broad writes, rapid-write tearing checks, deterministic 100-notification work guards, and balanced subscription removal |
external-store-integrations |
external-store-integrations | none (builds) | real Zustand stores, Jotai atoms, and TanStack Query caches with selector fan-out, query invalidation, and seven-framework cleanup gates |
store-selector-fanout |
store-selector-fanout | none (builds) | 512 subscribers reading one store through a with-selector-shaped selector, 20 unrelated parent re-renders with the store untouched, and deterministic selector-invocation counts beside render and snapshot counts |
hook-store-composition |
hook-store-composition | none (builds) | matched direct/nested callbacks and actual Octane Zustand traditional/MobX bindings; separate production timings, named-work counts, and observable identity/update/cleanup controls |
layout-churn |
layout-churn | none (headless Chromium) | Chromium layout passes and layout time when 100 and 400 rows size a bar from a measured label: interleaved layout effects, a writing useLayoutSnapshot measurement, and an interleaved handler loop, against batched controls with equal final geometry |
scheduler-responsiveness |
scheduler-responsiveness | none (builds) | real controlled typing during eight 512-subscriber store updates at 6× CPU throttling, with focus, caret, frame, and notification gates |
suspense-recovery |
suspense-recovery | none (builds) | seven-framework visible async pending, rejection, retry, cancellation, and stale-response correctness |
event-delegation |
event-delegation | none (builds) | 128 real native input events, 512 event-bearing hosts, capture/bubble accounting, and every controlled output |
app-frame-hydration |
app-frame-hydration | none (headless Chromium) | production SSR + cold hydration of a ~1,650-Block signal-enabled app frame (small wrapper components, @if arms, @for rows, forwarded style) at 4× CPU throttling, with jitless render-entry, call, and heap counters and an optional paired --base=<checkout> comparison |
behavior-root-events |
behavior-root-events | none (headless Chromium) | queued events across 1,000 and 8,000 distinct async behavior adoptions, with FIFO/exactly-once gates |
application-composition |
application-composition | none (builds) | lifecycle resources, large forms, store fan-out, async recovery, form submission, and navigation teardown in one app |
scaling-curves |
scaling-curves | none (builds) | independently correctness-gated controlled updates at 8, 32, 96, 256, and 512 components |
radix-collection-order |
radix-collection-order | none (Node-only) | production Radix collection ordering versus the prior comparator at 16, 64, 256, and 4,096 items, with missing-ref and stable-order controls |
router-dispatch |
router-dispatch | none (Node-only) | app-core static, wrong-method, and indexed dynamic matching across 1,000-route tables, plus a linear dynamic-scan control |
visx-categorical-scale |
visx-categorical-scale | none (Node-only) | production Visx categorical lookup versus repeated linear scans at 16, 64, and 4,096 domain keys |
style-unitless |
style-unitless | none (Node-only) | production numeric style serialization versus repeated unitless-name normalization on a mixed-repeat key bag |
rspack-css-graph |
rspack-css-graph | none (Node-only) | CSS-module proof collection and verification across zero, one, and sixteen requests, with deterministic module-graph traversal and connection-visit guards |
floating-tree-navigation |
floating-tree-navigation | none (Node-only) | Floating UI deepest-open-node lookup on deep chains, equal-depth forks, and a root-only control, with exact previous-behavior and deterministic node-read gates |
ink-cursor-update |
ink-cursor-update | none (Node-only) | Ink standard/incremental cursor-only updates over equal 20,000-line frames, with exact previous branches, byte/split gates, stable-frame stress scaling, and initial/changed-render controls |
manifest-cache-invalidation |
manifest-cache-invalidation | none (Node-only) | shared-compiler source invalidation across 129 and 5,001 cached nearest-manifest decisions, plus a required manifest-scan control |
vite-client-assets |
vite-client-assets | none (Node-only) | route asset mapping across 100 and 1,000 entries sharing a 500-chunk manifest graph, plus a shallow control |
effectful-list |
effectful-list | Octane + reference frameworks | effect/ref cleanup churn |
activity |
activity | none (builds) | same-source Octane/React Activity lifecycle, hidden/nested work, retained state/effects/DOM, cold-vs-used ordinary-ref controls, and optional-runtime bundle reachability |
list-clear |
list-clear | Octane-only | keyed-list bulk clear by parent shape — the only coverage of the shared-parent path |
memo-wall |
memo-wall | Octane + reference frameworks | memo bail + context walk |
portal-swarm |
portal-swarm | Octane + reference frameworks | portal render/dispatch |
ssr-throughput |
ssr-throughput | none (Node-only) | comparative news SSR including Inferno + Octane-only stress fixtures |
streaming-ssr |
streaming-ssr | none (Node-only) | streaming targets incl. Inferno and Preact; Svelte N/A |
conversation-streaming |
conversation-streaming | none (production app, Node runner; optional WebKit runner) | public shell, shared auth, independent conversation/history SSR and composer activation |
ssr-replay-streaming |
ssr-replay-streaming | none (Node-only) | populated replay collection copies and streaming promise subscriptions, with clean output and unchanged/one-wave controls |
ssr-final-metadata |
ssr-final-metadata | none (Node-only) | final SSR guards, identity strings, metadata and prop/children work with semantic counterexamples and retained alternatives |
ssr-final-replay |
ssr-final-replay | none (Node-only) | boundary collection copies, retry snapshots, thenable probes and full passes under clean output and abort/error controls |
audit-981-coverage |
audit-981-coverage | none (ephemeral local HTTP and headless Chromium) | real naive JSX/TSRX app style/render work plus a compiled keyed Suspense list, with consumer state and cleanup controls |
view-transitions |
view-transitions | none (builds and headless Chromium) | optional transition driver bundle reachability, production bytes, and native capture reads with retained input and completed-animation controls |
ssr-http |
ssr-http | none (boots its own node:http hosts) | raw streaming API over real HTTP: fresh-process import cost, cold spawn→listen→first-byte, warm shell/total/throughput across the streaming-ssr fixtures |
streaming-backpressure |
streaming-backpressure | none (builds) | real one-byte Node Writable pressure, delayed drains, three concurrent destinations, and public-stream abort across supported renderers |
ssr-workerd |
ssr-workerd | none (boots workerd via miniflare) | streaming SSR inside the real Cloudflare Workers runtime: cold isolate→first-byte, warm shell/total, worker-script bytes (octane vs Fizz edge, plus the vite-plugin + adapter-cloudflare deployment shape) |
tanstack-start |
tanstack-start | none (boots its own production servers) | the real Start app pair, correctness-gated: cold TTFB + warm per-route TTFB/stream/throughput across react, octane-minimal, octane-nitro |
dbmon-deopt |
dbmon | octane-tsrx + octane-deopt | tuned vs plain-.ts cliff |
js-framework-deopt |
js-framework | octane-tsrx + naive triplet | tuned vs naive-authoring cliff |
async-waterfall |
async-waterfall | octane-tsrx, react, preact, solid, svelte, ripple, inferno | 10-level nested async: use() waterfall vs parallel-by-model signals (init + transition update) |
router-data |
router-data | octane-floor, octane-remix-router, octane-tanstack-router, react-router, tanstack-router, sveltekit | data-router journeys (nested loaders, sibling, search-only, intent preload, mutation, cached back): request/wave counts, latency, and router CPU at 4x throttle; layout-identity and held-screen gates |
async-composition |
async-composition | octane-tsrx, react, inferno | dashboard composition: adjacent async panels, nested children, imported custom hook, and one true dependency |
lynx-list |
lynx-list | none (Node-only) | deterministic 1,000-row native-list physical allocation, reuse, and teardown through a fake Element PAPI |
universal-leaf-update |
universal-leaf-update | none (Node-only) | universal update locality beside 0–4,000 unrelated component siblings through the compiler and native object driver: plain leaf setState, keyed @for item state, a leaf under an idle @try, a structural (insert/remove) update, and compact-row list selection |
universal-for-row-memo |
universal-for-row-memo | none (Node-only) | 1,000 compiled keyed @for rows beside a counter in the same component: counter tick, one changed row, rotate, and replace-all, with exact row-body render counts, a called-row control that re-renders every row, and an optional paired base checkout |
universal-template-programs |
universal-template-programs | none (Node-only) | 1,000 compiled keyed @for rows with a click handler on the row element through a program-capable object driver: mount time and serialized mount payload, one changed row, and replace-all, with and without a style object; checks the prepared-program mount and update-only batches, with an optional paired base checkout |
universal-object-teardown |
universal-object-teardown | none (Node-only) | transactional object-driver unmount scaling at 2, 4,096, and 16,384 flat siblings, with exact remove/destroy and empty-driver controls |
universal-template-events |
universal-template-events | none (Node-only) | shape-stable handler updates across 128 and 1,024 retained native event sites through ordinary hosts and the fallback collapsed-template host capability, with host identity, stable listener IDs, latest-handler dispatch, and redundant-command controls |
universal-native-hover |
universal-native-hover | none (Node-only) | compiled production native universal selection in 20 and 80 keyed rows, each with four component/view layers; 2,000 real hover updates per sample, host and prop identity checks, teardown, a same-run scaling ratio, and optional local V8 cumulative allocation profile |
universal-owner-drafts |
universal-owner-drafts | none (Node-only) | retained object-driver roots with 0, 1, 128, and 1,024 changed-prop child owners; output, render, host identity, and structural-command controls |
universal-hook-slot |
universal-hook-slot | none (Node-only) | production universal hook-slot array-creation events across direct and nested hook calls, with state/ref/memo/effect identity and output controls; deterministic zero-array guard |
universal-draft-lookup |
universal-draft-lookup | none (Node-only) | root-owned ref lookups from 0, 1, 128, and 1,024 changing child owners, with own-ref and plain-object controls and host, state, and structural-command checks |
scoped-descriptor-shapes |
scoped-descriptor-shapes | none (Node-only) | production client/server scoped element and value descriptor creation, reads, enumeration, cloning, Children.map and SSR, with plain-element controls and deferred-child/key/order checks |
memo-wrapper-shapes |
memo-wrapper-shapes | none (Node-only) | production client/server creation and metadata reads across 128 and 1,024 distinct memo wrappers, with plain-function/data-only controls, live defaults, static-hoisting checks, and untimed V8 shape diagnostics |
universal-external-store |
universal-external-store | none (Node-only) | 128 native universal store subscribers, getter/subscribe identity controls, notification bursts, and deterministic subscription-lifetime and state-projection guards |
lynx-render |
lynx-render | none (Node-only) | dual-thread Lynx render CPU: empty startup, create 1,000 and 10,000 keyed rows through the real background root, transport, and main receiver over a cheap fake Element PAPI, plus a gate that a native tap reaches its background handler via the engine publishEvent receiver |
lynx-table |
lynx-table | none (Node-only; separate Chromium harness) | deterministic per-operation wire cost of the cross-framework krausest table (command counts and serialized commit bytes vs a changed-rows floor) through the real dual-thread path and real tap tokens |
lynx-table-web |
lynx-table | none (headless Chromium) | Lynx-for-Web wall clock: the same table app for Octane and the vendored ReactLynx / Vue Lynx reference bundles under one byte-identical page driver; host-bound medians, no ratio guards |
lynx-bundle-size |
lynx-bundle-size | none (builds) | semantic-checksummed production Rspeedy artifact bytes for background preview and dual-thread IFR modes; source/build evidence only |
codegen-size |
codegen-size | none (Node-only) | compiled-output bytes: fixed corpus through octane/compiler, raw/min/gzip, compiled vs source |
root-transactions |
root-transactions | none | retirement undo closures, keyed input journal slots, and live text reads under rollback, identity, and cleanup controls; see the suite audit for retained cases |
client-hot-paths |
client-hot-paths | none (Node and headless Chromium) | branch hydration lookups and descriptor-key work under output, identity, input/focus, events/effects, coercion, and hydration controls; compiled slot call gates and separate function-tier diagnostics |
compiler-output |
compiler-output | none | branch capture arrays, lifted native-event handlers, and SSR wrapper work under rendering/identity/evaluation controls; see the suite audit for retained cases |
hook-memo |
hook-memo | none (Node-only) | production hook-memo compiler on/off, clean semantic controls, deterministic function/array creation events, and compiled/bundled bytes |
transition-hooks |
transition-hooks | none (Node-only) | production transition/hook hot paths: useTransition start → pending → settle cycles with replacement and functional updaters, a suspended hold + release, urgent functional dispatch and same-value bailout, delegated click dispatch, and an urgent update beside a queued transition; render counts, deterministic function/array/object/constructor creation events, bytes, and secondary µs timings |
template-call-memo |
template-call-memo | none (Node-only) | production Strong/compatibility receiver-call counts, immutable keyed rows, real dependency changes, current event captures, and survivor identity |
compiler-throughput |
compiler-throughput | none (Node-only) | seven real production compiler pipelines, cold/warm/incremental transformations, 10/100/1,000 components, and heap diagnostics |
tsrx-component-graph |
tsrx-component-graph | none (Node-only) | 2,400-component live-import propagation with dependent-first vs dependency-first declarations |
tsrx-void-memo-aliases |
tsrx-void-memo-aliases | none (Node-only) | production void-export classification for 250/1,000 exact local memo aliases in both declaration orders |
tsrx-hydrate-module-slicing |
tsrx-hydrate-module-slicing | none (Node-only) | hydrate module-slicing selection at 150/2,400 sibling boundaries, with queried-child/server checks and retained-declaration controls |
tsrx-stable-hookful-propagation |
tsrx-stable-hookful-propagation | none (Node-only) | stable-hookful capture and private-setter propagation through 40/1,000-component chains in both declaration orders |
tsrx-renderer-validation-ranges |
tsrx-renderer-validation-ranges | none (Node-only) | authored renderer-validation range membership at 32/3,200 ranges plus matched 100/1,600-component whole-pipeline compiles with and without validation |
tsrx-local-component-name-catalog |
tsrx-local-component-name-catalog | none (Node-only) | renderer-boundary preparation with 1,000 sibling regions and 1,000/10,000 unrelated local components, guarding against rebuilding the same component-name catalog per boundary |
tsrx-jsx-return-branches |
tsrx-jsx-return-branches | none (Node-only) | client/server compile and bundler classification for 120/480 conditional-return components, with lowering/export controls and a same-sized ineligible parse/print control |
tsrx-nesting-diagnostics |
tsrx-nesting-diagnostics | none (Node-only) | development TSRX compilation at 500 and 2,000 invalid HTML sites, with parsed diagnostic count/order controls and a per-diagnostic scaling guard |
tsrx-renderer-selection |
tsrx-renderer-selection | none (Node-only) | ordered filename-to-renderer classification with semantic checksums, comparing retained normalized config against equivalent raw revalidation |
tsrx-native-change-analysis |
tsrx-native-change-analysis | none (Node-only) | native-onChange analysis plus client/server compilation for 500/4,000 hostless JSX sites, paired with an AST-identical marker control that conservatively forces the scan |
tsrx-vite-preflight-parsing |
tsrx-vite-preflight-parsing | none (Node-only) | real production client/server Vite transforms with output/map/meta/dependency/classification checksums, exact-root adapter/authoritative parse counts for production, development, CSS, and shared-plugin multi-environment paths, host-owned TypeScript first/second client environment timings, plus shared-AST/reparsed classification controls |
bundle-size |
bundle-size | none (builds) | shipped JS bytes: production builds of js-framework, TodoMVC, chat-stream, weather-app, and the Octane-only bindings app, Vite's default Oxc minifier for every framework, raw/gzip/brotli |
bundle-reachability |
bundle-size | none (builds and executes in jsdom) | isolated public feature imports, exact production-bundle behavior, forbidden-module reachability, and reported raw/gzip/brotli bytes |
three-renderer |
three | Octane Three, R3F, plain Three | 1,000-object lifecycle, reconstruction/disposal, frame subscribers, and raycast events |
three-bundle-size |
three | none (builds, then checks in Chromium) | minimal/full-catalogue shipped JS bytes for Octane Three, R3F, and plain Three |
The size suites measure bytes, not milliseconds (deterministic —
median === min, and ratio guards on them are exact, hardware-independent
numbers). They are the regression gates for
docs/compiled-output-optimization-plan.md: codegen-size is the seconds-fast
per-commit signal (its corpus is FIXED — editing the corpus list invalidates the
baseline, re-record when you change it), bundle-size is the cross-framework
comparison (all targets built with Vite 8's default minify: 'oxc'; Vite's
'esbuild' mode turns off Rolldown's minifier and the dead-code elimination
that comes with it).
The separate codegen-size CSS targets also build the real Rspack/CssExtract
adapter with named exports and authenticated immutable default maps. They compare
identical source with the option off/on, keep framework imports external for byte
measurement, and verify equal emitted CSS and full-runtime SSR output. Their
same-run ratios catch an adapter that silently stops supplying compiler proofs.
The rspack-void-* targets build the same adapter's imported void-root proofs
with the runtime bundled, because the saving is the generic root renderer the
minifier drops. Each control's post loader routes the root import through a
re-export the adapter leaves unproven; every other module stays byte-identical,
and both variants must render the same DOM in jsdom. The hydrate pair is the
#1839 shape, and the tree pair is createRoot over four imported
void components with an update.
lynx-bundle-size instead uses the pinned Rspeedy native encoder unchanged and
bounds the incremental decoded/encoded cost of IFR against the equivalent
background-rendered preview graph; its semantic checks remain source/build
evidence rather than native execution.
bundle-size classifies each comparative build's emitted JavaScript into an
app bucket (modules under the app's own src/) and a framework bucket (node_modules + the
Octane workspace runtime + virtual helpers) and reports both, plus totals:
app_* / fw_* / js_* ×
raw/gzip/brotli. The harness models each emitted JavaScript file as an
independently compressed response and sums those modeled transfer sizes; it
does not inspect a server's content encoding. A bundler's default single chunk
can be slightly smaller through cross-module compression. The app_* ops are
the primary scaling ratchet as applications grow; fw_* tracks the one-time
runtime cost separately. App-shaped
sets use todo_*, chat_*, and weather_* operation prefixes; weather's shared
service and formatting modules count as app code in both framework builds.
The Octane-only wayfinder_js_* rows measure all production client JavaScript
with Wayfinder's normal chunking and no app/framework split. The build runs in
place, so a local benchmark run overwrites examples/wayfinder/dist. Hidden
source maps gate the absence of unused form-action and Fragment-ref descriptor
capabilities from this application's generated hydration entry; bytes remain
report-only.
The threadline_{oxc,esbuild}_js_* and pagecraft_{oxc,esbuild}_js_* rows also
use the real applications' normal Vite configs and chunking. Each sums every
emitted client JS asset, including deferred chunks, with raw/gzip/brotli reported
separately for both minifiers. Outputs remain under bundle-size/dist; there is
no app/framework split or committed byte budget. Threadline additionally gates
the absence of generic component and return rendering from every client chunk's
source map under both minifiers, with a retained void-component control. Its
private static icons must retain paired START/END shared-renderer provenance in
the actual App transform, without fixing their call-site counts. Runtime and
hydration behavior stay in the owning tests.
Compare the same operation names in base/head results. When an older base lacks
these rows, its size is unknown, not zero; an initial change needs a matched
local comparison, including a restored-baseline control.
The bindings_* set is an Octane-only application,
bundle-size/apps/bindings, that
renders components and hooks from @octanejs/radix, @octanejs/base-ui,
@octanejs/aria, @octanejs/mantine-hooks, @octanejs/usehooks-ts,
@octanejs/floating-ui, and @octanejs/motion. Bindings ship their source, so
the build compiles them with the production Octane compiler and they count as
app bytes. It is the only row whose bytes move with compiler output for plain
.ts binding hooks.
The shell_* set, bundle-size/apps/app-shell, is the smallest app that combines the features a production Octane app uses together: hydrateRoot, a lazy page under Suspense, ViewTransition, startTransition, and a useSignal$ counter. It has under 1 kB of app code, so its bytes are almost all runtime. Its react twin is the same component on React 19.3 with alien-signals. It pins React 19.3 exactly, the first stable release with <ViewTransition>, because the default catalog is still on 19.2. The set has no ceiling build, so its signal and alien-signals imports do not widen the rows ceilings.
The companion shell_client_* row builds that same app and lazy page through a
createRoot entry for both frameworks. shell_js_gzip - shell_client_js_gzip
is the additional complete client JS shipped when this app hydrates;
shell_fw_gzip - shell_client_fw_gzip attributes the framework share under the
same forced chunk split. Raw and Brotli, and each app share, are reported too.
All emitted JS counts, including the lazy page. Both rows use the same
production Oxc settings as every comparative app. The byte deltas are reported
in pull request benchmarks and have no pass/fail budget.
bundle-reachability builds thirty independent public-entry feature fixtures
across thirty-nine production builds with the production Octane compiler,
disabled HMR/profiling, and each bundler's default production minifier: Vite's
'oxc' and esbuild's minify: true. The seven package
side-effect fixtures and the behavior-only fixture each run through both Vite
and esbuild. Each measured IIFE
executes unchanged in an isolated jsdom realm; its visible DOM, interaction,
hydration, Suspense, server rendering, store, and cleanup behavior must match its
feature oracle. Client graphs reject server modules, while server graphs reject
the client runtime; all reject React, profiling, devtools, package-metadata, and
RPC-serialization reachability. Early
hydration-event capture and the vanilla Zustand entry must also exclude the
client runtime, while the hook binding must retain the real vanilla store.
The isolated server-hook entry also rejects unrelated DOM namespace tables, and
the component-owned-effects entry verifies that unused sibling styles, delegated
events, and ViewTransition initialization disappear while retained styles and
click handlers remain live. The plain createElement descriptor fixture
renders and reorders a keyed list through the generic child slot while dropping
its portal, signal-handle and Context regimes, which only their creators
install. The octane/behavior fixture adopts existing DOM,
registers an externally owned range, handles a native click, and disposes its
owners and handlers while preserving the original nodes. Both production builds
reject renderer, compiler, and server modules.
The split-shell fixture ships the way a production Rolldown and oxc application
does: ESM chunks whose codeSplitting groups put Octane's signal engine and the
rest of the octane package in chunks of their own. Its client hydrates a
server-rendered shell through a dynamic import after activating a renderer-free
behavior island, with native signal reads, a <Hydrate when={visible()}>
boundary, a lazy route behind useTransition, @try over use(), a portal, and
a keyed list. It reports the whole application and each group's chunk, rejects
Octane modules in application chunks, and checks through the source map that
the runtime chunk drops the unused ViewTransition and Activity drivers. Its
chunks run in jsdom linked into one script, unminified and untreeshaken.
The generated SPA scenario loads the actual CLI entry and complete landing-page
templates without maintaining duplicate fixture sources; its compiled bundle
must render the public page while excluding the reusable-root runtime. The three
static-root fixtures deliberately measure different public contracts.
root-static-specialized matches an application's disposable top-level
createRoot(container).render(ImportedComponent) entry, allowing the production
compiler to specialize the root. root-static retains an escaped, reusable
Root through an exported factory, renders both a returned scalar and a compiled
component, and verifies unmount; its broader reachable runtime is
real and must not be disguised as the specialized entry. root-static-local
keeps the original same-file compiled render/unmount control and its existing
static-root ceiling, so losing that specialization fails independently of the
escaped generic contract. root-callback-local keeps a private root inside a
controller whose retained replace and dispose callbacks are its only later
uses, so render and unmount calls that outlive the creating function stay
specialized. prop-attributes binds opaque props to named
attributes and text in a module with no signals import. Those opaque values are
potential signal bindings, so the fixture pins that they keep the narrow scalar
writers and never retain the generic attribute route with its form-control
writers and DOM routing tables.
hydrate-frame is the shape of a server-rendered application frame. A
production server build of the same modules renders its markup with
renderToString, and the measured client bundle hydrates it: native signal
reads, a keyed @for, a @try/@pending/@catch boundary over settled data,
forwarded style objects, a portal opened after hydration, and an
octane/behavior island beside the root. Its oracle requires the server nodes
to be adopted, not rebuilt. It never starts a transition or renders an
<Activity>, so its ceiling also holds those graphs out of a hydrating
Suspense application.
Every scenario publishes deterministic raw, gzip, and brotli bytes. They are reported, never gated: the pull request benchmark comment lists each change. An unknown or empty scenario name fails instead of skipping the builds.
node benchmarks/bundle-size/run-minimal.mjs [scenario...]
node benchmarks/bundle-size/run.mjs [target...]Positional arguments narrow either command to some scenarios or targets while you iterate. Both fail only on a reachability or root-specialization violation.
Append an entry to the SUITES manifest in benchmarks/bench.mjs:
{
name: 'my-suite', // baseline + ratio-guard namespace key
cwd: 'my-suite', // dir under benchmarks/ whose node_modules resolves the harness
servers: [{ filter: 'my-suite-octane-bench', port: 53xx }], // [] for build/Node-only suites
iter: { normal: 20, quick: 3 },
runs: [{ script: 'run.mjs', args: (n) => [String(n)] }], // env: () => ({ TARGETS: … }) for pairings
}Each server-backed fixture package must provide build and preview scripts;
the preview script must bind the manifest port with --strictPort. The harness
must implement the BENCH_JSON contract above. For a suite that runs one harness
per target (like news), give runs multiple entries — their targets arrays
are concatenated into one result. Add ratio guards for the new suite to
baselines/ratios.json and (optionally) --record local baselines.