Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(major) - Tracking PR for v11 #4549

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

(major) - Tracking PR for v11 #4549

wants to merge 12 commits into from

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Nov 10, 2024

Breaking changes

Under consideration

TODO

  • Investigate hydrate benchmark regression

Copy link

github-actions bot commented Nov 10, 2024

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -0% - +1% (-4.67ms - +6.62ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -1% - +1% (-0.09ms - +0.10ms)
    preact-local vs preact-main
  • hydrate1k: slower ❌ 4% - 7% (3.10ms - 5.10ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -0% - +1% (-0.03ms - +0.23ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +0% (-0.82ms - +0.30ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -5% - +4% (-0.09ms - +0.08ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -0% - +1% (-0.00ms - +0.33ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -2% - +4% (-0.77ms - +1.52ms)
    preact-local vs preact-main

usedJSHeapSize

  • create10k: unsure 🔍 -0% - -0% (-0.01ms - -0.00ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -2% - +1% (-0.02ms - +0.01ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -4% - +4% (-0.39ms - +0.34ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +0% (-0.03ms - +0.02ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +0% (-0.02ms - +0.01ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -1% - +0% (-0.02ms - +0.00ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -2% - +1% (-0.03ms - +0.02ms)
    preact-local vs preact-main
  • update10th1k: faster ✔ 0% - 1% (0.00ms - 0.03ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local945.61ms - 954.83ms-unsure 🔍
-0% - +1%
-4.67ms - +6.62ms
preact-main945.99ms - 952.50msunsure 🔍
-1% - +0%
-6.62ms - +4.67ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local19.20ms - 19.20ms-unsure 🔍
-0% - -0%
-0.01ms - -0.00ms
preact-main19.20ms - 19.20msunsure 🔍
+0% - +0%
+0.00ms - +0.01ms
-
filter-list

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.51ms - 16.68ms-unsure 🔍
-1% - +1%
-0.09ms - +0.10ms
preact-main16.55ms - 16.64msunsure 🔍
-1% - +1%
-0.10ms - +0.09ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.51ms - 1.54ms-unsure 🔍
-2% - +1%
-0.02ms - +0.01ms
preact-main1.52ms - 1.54msunsure 🔍
-1% - +2%
-0.01ms - +0.02ms
-
hydrate1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local76.36ms - 77.89ms-slower ❌
4% - 7%
3.10ms - 5.10ms
preact-main72.39ms - 73.67msfaster ✔
4% - 7%
3.10ms - 5.10ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local9.39ms - 9.92ms-unsure 🔍
-4% - +4%
-0.39ms - +0.34ms
preact-main9.43ms - 9.93msunsure 🔍
-4% - +4%
-0.34ms - +0.39ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.54ms - 16.59ms-unsure 🔍
-0% - +1%
-0.03ms - +0.23ms
preact-main16.34ms - 16.60msunsure 🔍
-1% - +0%
-0.23ms - +0.03ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.75ms - 3.78ms-unsure 🔍
-1% - +0%
-0.03ms - +0.02ms
preact-main3.76ms - 3.79msunsure 🔍
-0% - +1%
-0.02ms - +0.03ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #4338
  • Commit: 1fc8b65

duration

VersionAvg timevs preact-localvs preact-main
preact-local64.09ms - 64.85ms-unsure 🔍
-1% - +0%
-0.82ms - +0.30ms
preact-main64.32ms - 65.14msunsure 🔍
-0% - +1%
-0.30ms - +0.82ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.96ms - 2.98ms-unsure 🔍
-1% - +0%
-0.02ms - +0.01ms
preact-main2.97ms - 2.99msunsure 🔍
-0% - +1%
-0.01ms - +0.02ms
-

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local29.40ms - 30.13ms-unsure 🔍
-2% - +1%
-0.57ms - +0.39ms
preact-main29.55ms - 30.16msunsure 🔍
-1% - +2%
-0.39ms - +0.57ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local33.09ms - 33.99ms-faster ✔
2% - 6%
0.75ms - 2.03ms
preact-main34.48ms - 35.39msslower ❌
2% - 6%
0.75ms - 2.03ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local25.43ms - 25.75ms-faster ✔
1% - 3%
0.14ms - 0.67ms
preact-main25.78ms - 26.20msslower ❌
1% - 3%
0.14ms - 0.67ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local25.19ms - 26.45ms-unsure 🔍
-4% - +3%
-1.08ms - +0.72ms
preact-main25.35ms - 26.65msunsure 🔍
-3% - +4%
-0.72ms - +1.08ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local23.78ms - 25.08ms-unsure 🔍
-4% - +3%
-1.09ms - +0.80ms
preact-main23.89ms - 25.26msunsure 🔍
-3% - +4%
-0.80ms - +1.09ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local20.25ms - 20.63ms-unsure 🔍
-2% - +0%
-0.49ms - +0.05ms
preact-main20.47ms - 20.86msunsure 🔍
-0% - +2%
-0.05ms - +0.49ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 120
  • Built by: CI #4338
  • Commit: 1fc8b65

duration

VersionAvg timevs preact-localvs preact-main
preact-local1.98ms - 2.11ms-unsure 🔍
-5% - +4%
-0.09ms - +0.08ms
preact-main1.99ms - 2.11msunsure 🔍
-4% - +5%
-0.08ms - +0.09ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.11ms - 1.11ms-unsure 🔍
-1% - +0%
-0.02ms - +0.00ms
preact-main1.11ms - 1.12msunsure 🔍
-0% - +1%
-0.00ms - +0.02ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local34.07ms - 34.35ms-unsure 🔍
-0% - +1%
-0.00ms - +0.33ms
preact-main33.96ms - 34.13msunsure 🔍
-1% - +0%
-0.33ms - +0.00ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.22ms - 1.25ms-unsure 🔍
-2% - +1%
-0.03ms - +0.02ms
preact-main1.23ms - 1.26msunsure 🔍
-1% - +2%
-0.02ms - +0.03ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local33.98ms - 35.62ms-unsure 🔍
-2% - +4%
-0.77ms - +1.52ms
preact-main33.63ms - 35.23msunsure 🔍
-4% - +2%
-1.52ms - +0.77ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.91ms - 2.93ms-faster ✔
0% - 1%
0.00ms - 0.03ms
preact-main2.92ms - 2.94msslower ❌
0% - 1%
0.00ms - 0.03ms
-

tachometer-reporter-action v2 for CI

Copy link

github-actions bot commented Nov 10, 2024

Size Change: -1.41 kB (-2.26%)

Total Size: 61 kB

Filename Size Change
compat/dist/compat.js 3.73 kB -390 B (-9.47%)
compat/dist/compat.module.js 3.66 kB -389 B (-9.61%) 👏
compat/dist/compat.umd.js 3.79 kB -397 B (-9.48%)
debug/dist/debug.js 3.87 kB +35 B (+0.91%)
debug/dist/debug.module.js 3.87 kB +39 B (+1.02%)
debug/dist/debug.umd.js 3.95 kB +40 B (+1.02%)
dist/preact.js 4.63 kB -75 B (-1.59%)
dist/preact.min.js 4.67 kB -59 B (-1.25%)
dist/preact.min.module.js 4.67 kB -69 B (-1.46%)
dist/preact.min.umd.js 4.7 kB -56 B (-1.18%)
dist/preact.module.js 4.66 kB -61 B (-1.29%)
dist/preact.umd.js 4.73 kB -44 B (-0.92%)
jsx-runtime/dist/jsxRuntime.js 983 B +5 B (+0.51%)
jsx-runtime/dist/jsxRuntime.module.js 958 B +6 B (+0.63%)
jsx-runtime/dist/jsxRuntime.umd.js 1.06 kB +5 B (+0.48%)
ℹ️ View Unchanged
Filename Size
devtools/dist/devtools.js 260 B
devtools/dist/devtools.module.js 274 B
devtools/dist/devtools.umd.js 346 B
hooks/dist/hooks.js 1.54 kB
hooks/dist/hooks.module.js 1.57 kB
hooks/dist/hooks.umd.js 1.61 kB
test-utils/dist/testUtils.js 473 B
test-utils/dist/testUtils.module.js 477 B
test-utils/dist/testUtils.umd.js 555 B

compressed-size-action

@coveralls
Copy link

coveralls commented Nov 10, 2024

Coverage Status

coverage: 99.599% (-0.02%) from 99.615%
when pulling 39339b2 on v11-2
into 3618771 on main.

@JoviDeCroock JoviDeCroock force-pushed the v11-2 branch 4 times, most recently from af99557 to 067be2b Compare November 10, 2024 13:13
@rschristian
Copy link
Member

#4406 would be another easy thing to fit in, swapping out our (pretty much unused & problematic) package.json##browser condition for package.json##module

@JoviDeCroock JoviDeCroock changed the title V11 2 (major) - Tracking PR for v11 Feb 11, 2025
src/util.js Outdated Show resolved Hide resolved
src/diff/index.js Outdated Show resolved Hide resolved
src/diff/index.js Outdated Show resolved Hide resolved
src/diff/index.js Outdated Show resolved Hide resolved
src/render.js Outdated Show resolved Hide resolved
* Revert assign and avoid repeating indexed access

* Check parentNode instead

* Use flag

* Remove type

* Remove todo file
* is smaller than including a dedicated polyfill.
* @param {import('./index').ContainerNode} node The node to remove
*/
export function removeNode(node) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@developit the perf regression still stands after undoing the assign change so I am thinking this might be related to removeNode

* Forward ref by default

* Optimizations
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.

4 participants