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

Bugfix: don't remove nested DOM elements in unmount #3741

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

developit
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 21, 2022

📊 Tachometer Benchmark Results

Summary

duration

  • 02_replace1k: unsure 🔍 -5% - +2% (-7.28ms - +2.35ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: slower ❌ 0% - 7% (0.09ms - 2.23ms)
    preact-local vs preact-master
  • 07_create10k: unsure 🔍 -1% - +0% (-17.34ms - +6.86ms)
    preact-local vs preact-master
  • filter_list: unsure 🔍 -5% - +0% (-1.43ms - +0.14ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -3% - +2% (-3.29ms - +2.41ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -2% - +5% (-0.96ms - +2.04ms)
    preact-local vs preact-master
  • text_update: unsure 🔍 -4% - +1% (-0.14ms - +0.05ms)
    preact-local vs preact-master
  • todo: unsure 🔍 -2% - +0% (-0.93ms - +0.25ms)
    preact-local vs preact-master

usedJSHeapSize

  • 02_replace1k: unsure 🔍 -1% - +5% (-0.03ms - +0.17ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -0% - +1% (-0.00ms - +0.03ms)
    preact-local vs preact-master
  • 07_create10k: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-master
  • filter_list: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -1% - +2% (-0.08ms - +0.15ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-master
  • text_update: unsure 🔍 +0% - +0% (+0.00ms - +0.00ms)
    preact-local vs preact-master
  • todo: unsure 🔍 -1% - +1% (-0.01ms - +0.01ms)
    preact-local vs preact-master

Results

02_replace1k

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master152.93ms - 155.71ms-unsure 🔍
-2% - +5%
-2.35ms - +7.28ms
unsure 🔍
-3% - +4%
-4.01ms - +5.49ms
preact-local147.24ms - 156.47msunsure 🔍
-5% - +2%
-7.28ms - +2.35ms
-unsure 🔍
-5% - +3%
-8.20ms - +4.74ms
preact-hooks149.04ms - 158.12msunsure 🔍
-4% - +3%
-5.49ms - +4.01ms
unsure 🔍
-3% - +5%
-4.74ms - +8.20ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master3.71ms - 3.72ms-unsure 🔍
-4% - +1%
-0.17ms - +0.03ms
faster ✔
9% - 12%
0.35ms - 0.50ms
preact-local3.69ms - 3.88msunsure 🔍
-1% - +5%
-0.03ms - +0.17ms
-faster ✔
6% - 12%
0.24ms - 0.48ms
preact-hooks4.07ms - 4.22msslower ❌
9% - 14%
0.35ms - 0.50ms
slower ❌
6% - 13%
0.24ms - 0.48ms
-

run-warmup-0

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.29ms - 1.36ms-unsure 🔍
-3% - +4%
-0.04ms - +0.05ms
unsure 🔍
-9% - +2%
-0.12ms - +0.03ms
preact-local1.29ms - 1.35msunsure 🔍
-4% - +3%
-0.05ms - +0.04ms
-unsure 🔍
-9% - +1%
-0.13ms - +0.02ms
preact-hooks1.31ms - 1.45msunsure 🔍
-2% - +9%
-0.03ms - +0.12ms
unsure 🔍
-1% - +10%
-0.02ms - +0.13ms
-

run-warmup-1

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.73ms - 1.07ms-unsure 🔍
-38% - +11%
-0.41ms - +0.13ms
unsure 🔍
-12% - +46%
-0.08ms - +0.34ms
preact-local0.83ms - 1.25msunsure 🔍
-17% - +48%
-0.13ms - +0.41ms
-slower ❌
0% - 70%
0.03ms - 0.51ms
preact-hooks0.65ms - 0.89msunsure 🔍
-35% - +7%
-0.34ms - +0.08ms
faster ✔
7% - 45%
0.03ms - 0.51ms
-

run-warmup-2

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.17ms - 1.61ms-unsure 🔍
-8% - +44%
-0.07ms - +0.50ms
slower ❌
32% - 98%
0.31ms - 0.79ms
preact-local1.00ms - 1.36msunsure 🔍
-34% - +3%
-0.50ms - +0.07ms
-slower ❌
13% - 67%
0.13ms - 0.54ms
preact-hooks0.74ms - 0.95msfaster ✔
27% - 51%
0.31ms - 0.79ms
faster ✔
15% - 42%
0.13ms - 0.54ms
-

run-warmup-3

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.45ms - 0.51ms-unsure 🔍
-18% - +7%
-0.09ms - +0.04ms
faster ✔
4% - 19%
0.02ms - 0.10ms
preact-local0.45ms - 0.56msunsure 🔍
-8% - +19%
-0.04ms - +0.09ms
-unsure 🔍
-18% - +5%
-0.10ms - +0.03ms
preact-hooks0.52ms - 0.57msslower ❌
3% - 22%
0.02ms - 0.10ms
unsure 🔍
-6% - +19%
-0.03ms - +0.10ms
-

run-warmup-4

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master3.62ms - 6.64ms-unsure 🔍
-39% - +51%
-1.84ms - +2.42ms
slower ❌
247% - 804%
2.77ms - 5.84ms
preact-local3.33ms - 6.34msunsure 🔍
-46% - +35%
-2.42ms - +1.84ms
-slower ❌
220% - 759%
2.49ms - 5.55ms
preact-hooks0.55ms - 1.09msfaster ✔
77% - 91%
2.77ms - 5.84ms
faster ✔
75% - 91%
2.49ms - 5.55ms
-

run-final

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.29ms - 0.37ms-unsure 🔍
-15% - +23%
-0.05ms - +0.07ms
unsure 🔍
-22% - +16%
-0.07ms - +0.05ms
preact-local0.27ms - 0.36msunsure 🔍
-22% - +14%
-0.07ms - +0.05ms
-unsure 🔍
-26% - +13%
-0.09ms - +0.05ms
preact-hooks0.29ms - 0.39msunsure 🔍
-17% - +23%
-0.05ms - +0.07ms
unsure 🔍
-15% - +30%
-0.05ms - +0.09ms
-
03_update10th1k_x16

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master31.34ms - 32.74ms-faster ✔
0% - 7%
0.09ms - 2.23ms
unsure 🔍
-5% - +2%
-1.62ms - +0.54ms
preact-local32.40ms - 34.01msslower ❌
0% - 7%
0.09ms - 2.23ms
-unsure 🔍
-2% - +5%
-0.53ms - +1.78ms
preact-hooks31.76ms - 33.41msunsure 🔍
-2% - +5%
-0.54ms - +1.62ms
unsure 🔍
-5% - +2%
-1.78ms - +0.53ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master3.73ms - 3.75ms-unsure 🔍
-1% - +0%
-0.03ms - +0.00ms
faster ✔
7% - 8%
0.30ms - 0.33ms
preact-local3.75ms - 3.76msunsure 🔍
-0% - +1%
-0.00ms - +0.03ms
-faster ✔
7% - 8%
0.29ms - 0.32ms
preact-hooks4.05ms - 4.07msslower ❌
8% - 9%
0.30ms - 0.33ms
slower ❌
8% - 8%
0.29ms - 0.32ms
-
07_create10k

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1794.49ms - 1811.81ms-unsure 🔍
-0% - +1%
-6.86ms - +17.34ms
faster ✔
2% - 3%
36.03ms - 63.76ms
preact-local1789.46ms - 1806.36msunsure 🔍
-1% - +0%
-17.34ms - +6.86ms
-faster ✔
2% - 4%
41.40ms - 68.87ms
preact-hooks1842.21ms - 1863.87msslower ❌
2% - 4%
36.03ms - 63.76ms
slower ❌
2% - 4%
41.40ms - 68.87ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master25.52ms - 25.52ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
faster ✔
9% - 9%
2.55ms - 2.55ms
preact-local25.52ms - 25.52msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-faster ✔
9% - 9%
2.55ms - 2.55ms
preact-hooks28.07ms - 28.07msslower ❌
10% - 10%
2.55ms - 2.55ms
slower ❌
10% - 10%
2.55ms - 2.55ms
-
filter_list

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master30.44ms - 31.74ms-unsure 🔍
-0% - +5%
-0.14ms - +1.43ms
unsure 🔍
-1% - +5%
-0.35ms - +1.42ms
preact-local30.01ms - 30.89msunsure 🔍
-5% - +0%
-1.43ms - +0.14ms
-unsure 🔍
-3% - +2%
-0.85ms - +0.63ms
preact-hooks29.96ms - 31.16msunsure 🔍
-5% - +1%
-1.42ms - +0.35ms
unsure 🔍
-2% - +3%
-0.63ms - +0.85ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.75ms - 1.75ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
faster ✔
13% - 15%
0.26ms - 0.30ms
preact-local1.75ms - 1.75msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-faster ✔
13% - 15%
0.26ms - 0.30ms
preact-hooks2.01ms - 2.05msslower ❌
15% - 17%
0.26ms - 0.30ms
slower ❌
15% - 17%
0.26ms - 0.30ms
-
hydrate1k

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master108.19ms - 112.09ms-unsure 🔍
-2% - +3%
-2.41ms - +3.29ms
unsure 🔍
-5% - +1%
-5.17ms - +0.96ms
preact-local107.63ms - 111.78msunsure 🔍
-3% - +2%
-3.29ms - +2.41ms
-unsure 🔍
-5% - +1%
-5.69ms - +0.61ms
preact-hooks109.88ms - 114.62msunsure 🔍
-1% - +5%
-0.96ms - +5.17ms
unsure 🔍
-1% - +5%
-0.61ms - +5.69ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master6.28ms - 6.41ms-unsure 🔍
-2% - +1%
-0.15ms - +0.08ms
faster ✔
13% - 19%
0.91ms - 1.49ms
preact-local6.29ms - 6.48msunsure 🔍
-1% - +2%
-0.08ms - +0.15ms
-faster ✔
12% - 19%
0.87ms - 1.46ms
preact-hooks7.27ms - 7.83msslower ❌
14% - 24%
0.91ms - 1.49ms
slower ❌
14% - 23%
0.87ms - 1.46ms
-
many_updates

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master41.95ms - 44.04ms-unsure 🔍
-5% - +2%
-2.04ms - +0.96ms
faster ✔
10% - 16%
5.02ms - 8.18ms
preact-local42.46ms - 44.61msunsure 🔍
-2% - +5%
-0.96ms - +2.04ms
-faster ✔
9% - 15%
4.47ms - 7.66ms
preact-hooks48.41ms - 50.78msslower ❌
11% - 19%
5.02ms - 8.18ms
slower ❌
10% - 18%
4.47ms - 7.66ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master4.81ms - 4.82ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
faster ✔
8% - 8%
0.45ms - 0.45ms
preact-local4.81ms - 4.82msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-faster ✔
8% - 9%
0.45ms - 0.45ms
preact-hooks5.26ms - 5.26msslower ❌
9% - 9%
0.45ms - 0.45ms
slower ❌
9% - 9%
0.45ms - 0.45ms
-
text_update

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master3.30ms - 3.48ms-unsure 🔍
-1% - +4%
-0.05ms - +0.14ms
faster ✔
5% - 11%
0.19ms - 0.41ms
preact-local3.30ms - 3.39msunsure 🔍
-4% - +1%
-0.14ms - +0.05ms
-faster ✔
7% - 11%
0.27ms - 0.42ms
preact-hooks3.62ms - 3.76msslower ❌
5% - 12%
0.19ms - 0.41ms
slower ❌
8% - 13%
0.27ms - 0.42ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.98ms - 0.98ms-unsure 🔍
-0% - -0%
-0.00ms - -0.00ms
faster ✔
2% - 2%
0.01ms - 0.01ms
preact-local0.98ms - 0.98msunsure 🔍
+0% - +0%
+0.00ms - +0.00ms
-faster ✔
1% - 1%
0.01ms - 0.01ms
preact-hooks1.00ms - 1.00msslower ❌
2% - 2%
0.01ms - 0.01ms
slower ❌
2% - 2%
0.01ms - 0.01ms
-
todo

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master52.42ms - 53.58ms-unsure 🔍
-0% - +2%
-0.25ms - +0.93ms
faster ✔
3% - 5%
1.43ms - 2.63ms
preact-local52.53ms - 52.79msunsure 🔍
-2% - +0%
-0.93ms - +0.25ms
-faster ✔
4% - 5%
2.17ms - 2.58ms
preact-hooks54.88ms - 55.19msslower ❌
3% - 5%
1.43ms - 2.63ms
slower ❌
4% - 5%
2.17ms - 2.58ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.38ms - 1.39ms-unsure 🔍
-1% - +1%
-0.01ms - +0.01ms
slower ❌
4% - 6%
0.05ms - 0.08ms
preact-local1.38ms - 1.40msunsure 🔍
-1% - +1%
-0.01ms - +0.01ms
-slower ❌
4% - 6%
0.05ms - 0.08ms
preact-hooks1.30ms - 1.33msfaster ✔
4% - 6%
0.05ms - 0.08ms
faster ✔
4% - 6%
0.05ms - 0.08ms
-

tachometer-reporter-action v2 for Benchmarks

@github-actions
Copy link

github-actions bot commented Sep 21, 2022

Size Change: +15 B (0%)

Total Size: 52.9 kB

Filename Size Change
dist/preact.js 4.03 kB +3 B (0%)
dist/preact.min.js 4.05 kB +3 B (0%)
dist/preact.min.module.js 4.05 kB +2 B (0%)
dist/preact.min.umd.js 4.08 kB +3 B (0%)
dist/preact.module.js 4.04 kB +3 B (0%)
dist/preact.umd.js 4.09 kB +1 B
ℹ️ View Unchanged
Filename Size Change
compat/dist/compat.js 3.78 kB 0 B
compat/dist/compat.module.js 3.72 kB 0 B
compat/dist/compat.umd.js 3.85 kB 0 B
debug/dist/debug.js 3.01 kB 0 B
debug/dist/debug.module.js 3.01 kB 0 B
debug/dist/debug.umd.js 3.09 kB 0 B
devtools/dist/devtools.js 231 B 0 B
devtools/dist/devtools.module.js 239 B 0 B
devtools/dist/devtools.umd.js 314 B 0 B
hooks/dist/hooks.js 1.56 kB 0 B
hooks/dist/hooks.module.js 1.59 kB 0 B
hooks/dist/hooks.umd.js 1.64 kB 0 B
jsx-runtime/dist/jsxRuntime.js 358 B 0 B
jsx-runtime/dist/jsxRuntime.module.js 324 B 0 B
jsx-runtime/dist/jsxRuntime.umd.js 439 B 0 B
test-utils/dist/testUtils.js 442 B 0 B
test-utils/dist/testUtils.module.js 444 B 0 B
test-utils/dist/testUtils.umd.js 526 B 0 B

compressed-size-action

@coveralls
Copy link

coveralls commented Sep 21, 2022

Coverage Status

Coverage remained the same at 99.527% when pulling 6b70436 on bugfix-nested-unmount into a868b02 on master.

@developit developit marked this pull request as ready for review September 22, 2022 16:21
@marvinhagemeister marvinhagemeister merged commit 32163d0 into master Sep 27, 2022
@marvinhagemeister marvinhagemeister deleted the bugfix-nested-unmount branch September 27, 2022 01:25
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