Skip to content

ci(bench): raise the hydrating byte budgets for the React 19 hydration fallback - #1806

Merged
trueadm merged 1 commit into
mainfrom
ci/hydration-react-fallback-budget
Oct 6, 2026
Merged

trueadm merged 1 commit into
mainfrom
ci/hydration-react-fallback-budget

Conversation

@trueadm

@trueadm trueadm commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Budget-only raise for #1784, the React 19 hydration fallback. It changes only benchmarks/bundle-size/minimal-budgets.json, and only the two scenarios that call hydrateRoot:

Scenario raw gzip brotli
hydrate-root 171,048 → 172,384 (+1,336) 54,277 → 55,222 (+945) 47,517 → 48,284 (+767)
deferred-hydration 234,724 → 237,538 (+2,814) 74,278 → 75,730 (+1,452) 64,222 → 65,479 (+1,257)

Why

#1784 makes hydration mismatches behave as in React 19 and keeps every hydration-only declaration out of clients that only call createRoot. It uses a Svelte 5-style hydrating flag, plus code that only hydration installs, and the hydration-free gate pins the result.

The size benches minify with esbuild, which does not fold the flag, so hydrating bundles pay for the split:

  • each guarded site costs a few bytes;
  • the installed hydration driver;
  • the root fallback adopts independent <Hydrate> islands and discards seeds.

In return, #1784 lowers 102 other budgets: every createRoot scenario and app, by about 2.4–3.1 kB raw each. With Vite's default minifier, a createRoot probe drops by 18.6 kB raw.

Measured on #1784 merged with main 8aeb6c0e5a, as measured + headroom (32 raw and gzip, 256 brotli).

Changes

  • benchmarks/bundle-size/minimal-budgets.json: hydrate-root and deferred-hydration raised as above.

Validation

Risk / follow-ups

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


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


Note

Low Risk
Only updates CI bundle-size thresholds in JSON; no application or framework code changes.

Overview
Raises minimal bundle size budgets in minimal-budgets.json for the two scenarios that use hydrateRoot: hydrate-root and deferred-hydration, across raw, gzip, and brotli (roughly +1.3–2.8 kB raw depending on scenario).

This is a budget-only change so CI stays green after the upcoming React 19 hydration fallback work (#1784), which adds hydration-specific code that shows up in hydrating bundles under the esbuild-minified size bench. No runtime or library code is modified here.

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

…n fallback

#1784 makes hydration handle mismatches like React 19 and keeps all
hydration code out of clients that only call createRoot. Under the size
benches' esbuild minifier the hydrating scenarios pay for that split:
the flag guards esbuild does not fold, the installed hydration driver, and
the boundary fallback's island adoption and seed discard.

hydrate-root:       raw +1,336, gzip +945, brotli +767
deferred-hydration: raw +2,814, gzip +1,452, brotli +1,257

Measured on #1784 merged with main 8aeb6c0, as measured + headroom.
#1784 itself lowers 102 other budgets (every createRoot scenario and app).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
octane-website Skipped Skipped Oct 6, 2026 2:13am UTC
octane-website-mcp Skipped Skipped Oct 6, 2026 2:13am UTC

Request Review

@trueadm
trueadm marked this pull request as ready for review October 6, 2026 02:13
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline labels Oct 6, 2026
@trueadm
trueadm merged commit 03fb25a into main Oct 6, 2026
23 of 25 checks passed
@trueadm
trueadm deleted the ci/hydration-react-fallback-budget branch October 6, 2026 02:14

This branch was previously deployed

2 inactive deployments
Preview – octane-website — 64806630 Deployed Oct 6, 2026 by vercel[bot]
Preview – octane-website-mcp — 64806630 Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant