Skip to content

Implement streamed hydration rfc#5035

Open
JoviDeCroock wants to merge 2 commits intomainfrom
streamed-hydration
Open

Implement streamed hydration rfc#5035
JoviDeCroock wants to merge 2 commits intomainfrom
streamed-hydration

Conversation

@JoviDeCroock
Copy link
Member

Resolves #5034

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -0% - +0% (-3.25ms - +3.57ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 +0% - +0% (+0.01ms - +0.08ms)
    preact-local vs preact-main
  • hydrate1k: faster ✔ 1% - 4% (0.72ms - 2.52ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -2% - +1% (-0.33ms - +0.11ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -2% - +1% (-1.29ms - +0.41ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -2% - +5% (-0.04ms - +0.09ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -2% - +1% (-0.49ms - +0.44ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -2% - +5% (-0.62ms - +1.38ms)
    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 🔍 -11% - +2% (-0.79ms - +0.12ms)
    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 🔍 -2% - +3% (-0.02ms - +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.00ms - +0.01ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local869.40ms - 874.88ms-unsure 🔍
-0% - +0%
-3.25ms - +3.57ms
preact-main869.95ms - 874.00msunsure 🔍
-0% - +0%
-3.57ms - +3.25ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.50ms - 16.55ms-unsure 🔍
+0% - +0%
+0.01ms - +0.08ms
preact-main16.45ms - 16.51msunsure 🔍
-0% - -0%
-0.08ms - -0.01ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local59.46ms - 60.81ms-faster ✔
1% - 4%
0.72ms - 2.52ms
preact-main61.16ms - 62.35msslower ❌
1% - 4%
0.72ms - 2.52ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local6.26ms - 6.92ms-unsure 🔍
-11% - +2%
-0.79ms - +0.12ms
preact-main6.61ms - 7.24msunsure 🔍
-2% - +12%
-0.12ms - +0.79ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.33ms - 16.57ms-unsure 🔍
-2% - +1%
-0.33ms - +0.11ms
preact-main16.38ms - 16.75msunsure 🔍
-1% - +2%
-0.11ms - +0.33ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.72ms - 3.73ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-main3.72ms - 3.73msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #5404
  • Commit: 41e813e

duration

VersionAvg timevs preact-localvs preact-main
preact-local57.82ms - 59.05ms-unsure 🔍
-2% - +1%
-1.29ms - +0.41ms
preact-main58.28ms - 59.47msunsure 🔍
-1% - +2%
-0.41ms - +1.29ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.99ms - 2.99ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-main2.99ms - 2.99msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local25.40ms - 26.12ms-unsure 🔍
-1% - +3%
-0.35ms - +0.72ms
preact-main25.18ms - 25.97msunsure 🔍
-3% - +1%
-0.72ms - +0.35ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local32.16ms - 33.24ms-unsure 🔍
-2% - +2%
-0.76ms - +0.67ms
preact-main32.28ms - 33.22msunsure 🔍
-2% - +2%
-0.67ms - +0.76ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local33.07ms - 34.05ms-unsure 🔍
-2% - +1%
-0.79ms - +0.45ms
preact-main33.35ms - 34.11msunsure 🔍
-1% - +2%
-0.45ms - +0.79ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local26.40ms - 26.82ms-unsure 🔍
-0% - +2%
-0.04ms - +0.52ms
preact-main26.19ms - 26.56msunsure 🔍
-2% - +0%
-0.52ms - +0.04ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local25.22ms - 26.56ms-unsure 🔍
-3% - +4%
-0.81ms - +1.07ms
preact-main25.11ms - 26.42msunsure 🔍
-4% - +3%
-1.07ms - +0.81ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local21.53ms - 22.00ms-unsure 🔍
-3% - +0%
-0.70ms - +0.05ms
preact-main21.80ms - 22.39msunsure 🔍
-0% - +3%
-0.05ms - +0.70ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 220
  • Built by: CI #5404
  • Commit: 41e813e

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.89ms - 1.99ms-unsure 🔍
-2% - +5%
-0.04ms - +0.09ms
preact-main1.86ms - 1.96msunsure 🔍
-5% - +2%
-0.09ms - +0.04ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local0.99ms - 1.03ms-unsure 🔍
-2% - +3%
-0.02ms - +0.03ms
preact-main0.99ms - 1.02msunsure 🔍
-3% - +2%
-0.03ms - +0.02ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local31.80ms - 32.37ms-unsure 🔍
-2% - +1%
-0.49ms - +0.44ms
preact-main31.74ms - 32.47msunsure 🔍
-1% - +2%
-0.44ms - +0.49ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.25ms - 1.25ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-main1.24ms - 1.25msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local29.47ms - 31.01ms-unsure 🔍
-2% - +5%
-0.62ms - +1.38ms
preact-main29.23ms - 30.50msunsure 🔍
-5% - +2%
-1.38ms - +0.62ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.95ms - 2.96ms-unsure 🔍
-0% - +0%
-0.00ms - +0.01ms
preact-main2.94ms - 2.95msunsure 🔍
-0% - +0%
-0.01ms - +0.00ms
-

tachometer-reporter-action v2 for CI

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

Size Change: +212 B (+0.45%)

Total Size: 47.6 kB

Filename Size Change
dist/preact.js 4.73 kB +68 B (+1.46%)
dist/preact.mjs 4.75 kB +72 B (+1.54%)
dist/preact.umd.js 4.8 kB +72 B (+1.52%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 3.92 kB
compat/dist/compat.mjs 3.85 kB
compat/dist/compat.umd.js 3.98 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.59 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
Copy link

coveralls commented Feb 23, 2026

Coverage Status

coverage: 99.537%. remained the same
when pulling 41e813e on streamed-hydration
into 4885f1d on main.

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