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

Revert "Improve performance and reduce memory allocation" #4611

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

JoviDeCroock
Copy link
Member

This reverts commit 79303ec.

In an application we noticed a regression relating to #4521 - trying to triangulate what's wrong but as this is a byte-size win I'll revert for the time being.

Copy link

github-actions bot commented Dec 18, 2024

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -1% - +0% (-9.10ms - +2.24ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +0% (-0.03ms - +0.07ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -1% - +2% (-0.83ms - +1.20ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -2% - +1% (-0.32ms - +0.17ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +2% (-0.40ms - +1.06ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -5% - +3% (-0.10ms - +0.06ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -2% - +1% (-0.70ms - +0.23ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -5% - +2% (-1.63ms - +0.81ms)
    preact-local vs preact-main

usedJSHeapSize

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

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local949.33ms - 953.31ms-unsure 🔍
-1% - +0%
-9.10ms - +2.24ms
preact-main949.44ms - 960.06msunsure 🔍
-0% - +1%
-2.24ms - +9.10ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.57ms - 16.64ms-unsure 🔍
-0% - +0%
-0.03ms - +0.07ms
preact-main16.55ms - 16.62msunsure 🔍
-0% - +0%
-0.07ms - +0.03ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local72.23ms - 73.76ms-unsure 🔍
-1% - +2%
-0.83ms - +1.20ms
preact-main72.15ms - 73.48msunsure 🔍
-2% - +1%
-1.20ms - +0.83ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local11.49ms - 11.95ms-unsure 🔍
-3% - +3%
-0.32ms - +0.31ms
preact-main11.51ms - 11.93msunsure 🔍
-3% - +3%
-0.31ms - +0.32ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.76ms - 17.10ms-unsure 🔍
-2% - +1%
-0.32ms - +0.17ms
preact-main16.82ms - 17.18msunsure 🔍
-1% - +2%
-0.17ms - +0.32ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.76ms - 3.78ms-unsure 🔍
-0% - +1%
-0.01ms - +0.02ms
preact-main3.76ms - 3.77msunsure 🔍
-1% - +0%
-0.02ms - +0.01ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #4216
  • Commit: 9c0d7e1

duration

VersionAvg timevs preact-localvs preact-main
preact-local67.40ms - 68.66ms-unsure 🔍
-1% - +2%
-0.40ms - +1.06ms
preact-main67.34ms - 68.06msunsure 🔍
-2% - +1%
-1.06ms - +0.40ms
-

usedJSHeapSize

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

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local30.07ms - 30.62ms-unsure 🔍
-1% - +2%
-0.20ms - +0.53ms
preact-main29.94ms - 30.42msunsure 🔍
-2% - +1%
-0.53ms - +0.20ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local34.83ms - 36.05ms-unsure 🔍
-1% - +4%
-0.35ms - +1.37ms
preact-main34.32ms - 35.54msunsure 🔍
-4% - +1%
-1.37ms - +0.35ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local25.91ms - 26.36ms-unsure 🔍
-1% - +1%
-0.23ms - +0.30ms
preact-main25.96ms - 26.24msunsure 🔍
-1% - +1%
-0.30ms - +0.23ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local26.58ms - 27.84ms-unsure 🔍
-3% - +3%
-0.93ms - +0.85ms
preact-main26.62ms - 27.88msunsure 🔍
-3% - +3%
-0.85ms - +0.93ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local24.81ms - 26.04ms-unsure 🔍
-2% - +5%
-0.41ms - +1.30ms
preact-main24.39ms - 25.58msunsure 🔍
-5% - +2%
-1.30ms - +0.41ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local22.01ms - 22.41ms-unsure 🔍
-1% - +1%
-0.23ms - +0.33ms
preact-main21.96ms - 22.36msunsure 🔍
-1% - +1%
-0.33ms - +0.23ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 120
  • Built by: CI #4216
  • Commit: 9c0d7e1

duration

VersionAvg timevs preact-localvs preact-main
preact-local2.01ms - 2.13ms-unsure 🔍
-5% - +3%
-0.10ms - +0.06ms
preact-main2.03ms - 2.14msunsure 🔍
-3% - +5%
-0.06ms - +0.10ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local33.88ms - 34.06ms-unsure 🔍
-2% - +1%
-0.70ms - +0.23ms
preact-main33.75ms - 34.66msunsure 🔍
-1% - +2%
-0.23ms - +0.70ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.24ms - 1.27ms-unsure 🔍
-2% - +2%
-0.02ms - +0.03ms
preact-main1.23ms - 1.27msunsure 🔍
-2% - +2%
-0.03ms - +0.02ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local34.49ms - 35.95ms-unsure 🔍
-5% - +2%
-1.63ms - +0.81ms
preact-main34.65ms - 36.61msunsure 🔍
-2% - +5%
-0.81ms - +1.63ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.91ms - 2.93ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-main2.91ms - 2.92msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-

tachometer-reporter-action v2 for CI

Copy link

Size Change: -26 B (-0.04%)

Total Size: 62.3 kB

Filename Size Change
compat/dist/compat.js 4.12 kB -14 B (-0.34%)
compat/dist/compat.module.js 4.05 kB -15 B (-0.37%)
compat/dist/compat.umd.js 4.19 kB -11 B (-0.26%)
jsx-runtime/dist/jsxRuntime.js 978 B +5 B (+0.51%)
jsx-runtime/dist/jsxRuntime.module.js 952 B +5 B (+0.53%)
jsx-runtime/dist/jsxRuntime.umd.js 1.05 kB +4 B (+0.38%)
ℹ️ View Unchanged
Filename Size
debug/dist/debug.js 3.83 kB
debug/dist/debug.module.js 3.83 kB
debug/dist/debug.umd.js 3.91 kB
devtools/dist/devtools.js 260 B
devtools/dist/devtools.module.js 274 B
devtools/dist/devtools.umd.js 346 B
dist/preact.js 4.7 kB
dist/preact.min.js 4.72 kB
dist/preact.min.module.js 4.72 kB
dist/preact.min.umd.js 4.74 kB
dist/preact.module.js 4.72 kB
dist/preact.umd.js 4.76 kB
hooks/dist/hooks.js 1.52 kB
hooks/dist/hooks.module.js 1.56 kB
hooks/dist/hooks.umd.js 1.6 kB
test-utils/dist/testUtils.js 451 B
test-utils/dist/testUtils.module.js 456 B
test-utils/dist/testUtils.umd.js 536 B

compressed-size-action

@coveralls
Copy link

Coverage Status

coverage: 99.615%. remained the same
when pulling 9c0d7e1 on revert-memory-stuff
into bb68456 on main.

@JoviDeCroock JoviDeCroock merged commit 0023670 into main Dec 18, 2024
15 checks passed
@JoviDeCroock JoviDeCroock deleted the revert-memory-stuff branch December 18, 2024 17:45
@JoviDeCroock JoviDeCroock mentioned this pull request Dec 18, 2024
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.

3 participants