Skip to content

Implement streamed hydration rfc - #5035

Merged
JoviDeCroock merged 3 commits into
mainfrom
streamed-hydration
Jun 25, 2026
Merged

Implement streamed hydration rfc#5035
JoviDeCroock merged 3 commits into
mainfrom
streamed-hydration

Conversation

@JoviDeCroock

Copy link
Copy Markdown
Member

Resolves #5034

@github-actions

github-actions Bot commented Feb 23, 2026

Copy link
Copy Markdown

📊 Tachometer Benchmark Results

Summary

⏳ Benchmarks are currently running. Results below are out of date.

duration

  • create10k: unsure 🔍 -1% - +0% (-9.22ms - +4.12ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +0% (-0.06ms - +0.01ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -3% - +2% (-1.45ms - +0.98ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -4% - +3% (-0.64ms - +0.52ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +2% (-0.85ms - +1.07ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -4% - +3% (-0.09ms - +0.06ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -1% - +1% (-0.23ms - +0.36ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -3% - +4% (-1.17ms - +1.45ms)
    preact-local vs preact-main

usedJSHeapSize

  • create10k: unsure 🔍 +0% - +0% (+0.00ms - +0.00ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 +0% - +0% (+0.00ms - +0.00ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -3% - +4% (-0.16ms - +0.19ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -0% - +0% (-0.01ms - +0.01ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 +0% - +0% (+0.00ms - +0.00ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -1% - +3% (-0.01ms - +0.03ms)
    preact-local vs preact-main
  • todo: unsure 🔍 +0% - +0% (+0.00ms - +0.00ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -0% - +0% (-0.01ms - +0.01ms)
    preact-local vs preact-main

Results

⏳ Benchmarks are currently running. Results below are out of date.
create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local861.71ms - 870.53ms-unsure 🔍
-1% - +0%
-9.22ms - +4.12ms
preact-main863.67ms - 873.67msunsure 🔍
-0% - +1%
-4.12ms - +9.22ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local19.05ms - 19.05ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-main19.05ms - 19.05msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
filter-list

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.52ms - 16.56ms-unsure 🔍
-0% - +0%
-0.06ms - +0.01ms
preact-main16.54ms - 16.59msunsure 🔍
-0% - +0%
-0.01ms - +0.06ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.55ms - 1.55ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-main1.55ms - 1.55msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
hydrate1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local56.68ms - 58.74ms-unsure 🔍
-3% - +2%
-1.45ms - +0.98ms
preact-main57.30ms - 58.59msunsure 🔍
-2% - +3%
-0.98ms - +1.45ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local5.16ms - 5.41ms-unsure 🔍
-3% - +4%
-0.16ms - +0.19ms
preact-main5.14ms - 5.40msunsure 🔍
-4% - +3%
-0.19ms - +0.16ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.64ms - 17.22ms-unsure 🔍
-4% - +3%
-0.64ms - +0.52ms
preact-main16.49ms - 17.48msunsure 🔍
-3% - +4%
-0.52ms - +0.64ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.74ms - 3.75ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-main3.73ms - 3.75msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #5523
  • Commit: 21e9790

duration

VersionAvg timevs preact-localvs preact-main
preact-local61.14ms - 62.38ms-unsure 🔍
-1% - +2%
-0.85ms - +1.07ms
preact-main60.91ms - 62.39msunsure 🔍
-2% - +1%
-1.07ms - +0.85ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.00ms - 3.00ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-main3.00ms - 3.00msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local26.88ms - 27.63ms-unsure 🔍
-2% - +2%
-0.60ms - +0.54ms
preact-main26.86ms - 27.71msunsure 🔍
-2% - +2%
-0.54ms - +0.60ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local31.97ms - 32.98ms-slower ❌
0% - 4%
0.07ms - 1.39ms
preact-main31.33ms - 32.17msfaster ✔
0% - 4%
0.07ms - 1.39ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local32.09ms - 33.17ms-unsure 🔍
-1% - +3%
-0.48ms - +0.86ms
preact-main32.03ms - 32.84msunsure 🔍
-3% - +1%
-0.86ms - +0.48ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local26.78ms - 27.44ms-unsure 🔍
-1% - +3%
-0.36ms - +0.71ms
preact-main26.52ms - 27.35msunsure 🔍
-3% - +1%
-0.71ms - +0.36ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local26.70ms - 28.50ms-unsure 🔍
-5% - +5%
-1.30ms - +1.25ms
preact-main26.72ms - 28.52msunsure 🔍
-5% - +5%
-1.25ms - +1.30ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local21.31ms - 21.67ms-unsure 🔍
-2% - +1%
-0.49ms - +0.12ms
preact-main21.43ms - 21.92msunsure 🔍
-1% - +2%
-0.12ms - +0.49ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 130
  • Built by: CI #5523
  • Commit: 21e9790

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.84ms - 1.95ms-unsure 🔍
-4% - +3%
-0.09ms - +0.06ms
preact-main1.86ms - 1.96msunsure 🔍
-3% - +5%
-0.06ms - +0.09ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local0.99ms - 1.02ms-unsure 🔍
-1% - +3%
-0.01ms - +0.03ms
preact-main0.99ms - 1.01msunsure 🔍
-3% - +1%
-0.03ms - +0.01ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local29.97ms - 30.46ms-unsure 🔍
-1% - +1%
-0.23ms - +0.36ms
preact-main29.99ms - 30.30msunsure 🔍
-1% - +1%
-0.36ms - +0.23ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.26ms - 1.26ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-main1.26ms - 1.26msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local34.81ms - 36.58ms-unsure 🔍
-3% - +4%
-1.17ms - +1.45ms
preact-main34.59ms - 36.53msunsure 🔍
-4% - +3%
-1.45ms - +1.17ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.96ms - 2.98ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-main2.96ms - 2.97msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-

tachometer-reporter-action v2 for CI

@github-actions

github-actions Bot commented Feb 23, 2026

Copy link
Copy Markdown

Size Change: +211 B (+0.44%)

Total Size: 47.9 kB

📦 View Changed
Filename Size Change
dist/preact.js 4.82 kB +68 B (+1.43%)
dist/preact.mjs 4.84 kB +71 B (+1.49%)
dist/preact.umd.js 4.89 kB +72 B (+1.49%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 3.93 kB
compat/dist/compat.mjs 3.87 kB
compat/dist/compat.umd.js 4 kB
debug/dist/debug.js 3.91 kB
debug/dist/debug.mjs 3.91 kB
debug/dist/debug.umd.js 3.99 kB
devtools/dist/devtools.js 263 B
devtools/dist/devtools.mjs 273 B
devtools/dist/devtools.umd.js 348 B
hooks/dist/hooks.js 1.52 kB
hooks/dist/hooks.mjs 1.55 kB
hooks/dist/hooks.umd.js 1.58 kB
jsx-runtime/dist/jsxRuntime.js 892 B
jsx-runtime/dist/jsxRuntime.mjs 861 B
jsx-runtime/dist/jsxRuntime.umd.js 966 B
test-utils/dist/testUtils.js 473 B
test-utils/dist/testUtils.mjs 473 B
test-utils/dist/testUtils.umd.js 555 B

compressed-size-action

@coveralls

coveralls commented Feb 23, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 98.528%. remained the same — streamed-hydration into main

@JoviDeCroock
JoviDeCroock merged commit bb52524 into main Jun 25, 2026
4 checks passed
@JoviDeCroock
JoviDeCroock deleted the streamed-hydration branch June 25, 2026 05:55
@JoviDeCroock JoviDeCroock mentioned this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Streaming SSR Hydration Coordination for Preact Core

3 participants