Skip to content

Conversation

@rschristian
Copy link
Member

@rschristian rschristian commented Mar 8, 2025

This always feels hideously dirty but most of these cases are an obvious & safe byte improvement

Makes sense that there'd be some slowdown, will go through the cases to try to find the culprit(s)

@github-actions
Copy link

github-actions bot commented Mar 8, 2025

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -0% - +0% (-3.50ms - +4.57ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -2% - +3% (-0.35ms - +0.49ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -1% - +1% (-0.85ms - +1.20ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +1% (-0.14ms - +0.16ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +0% (-0.84ms - +0.22ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -5% - +4% (-0.10ms - +0.09ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -0% - +2% (-0.17ms - +0.53ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -5% - +1% (-1.50ms - +0.22ms)
    preact-local vs preact-main

usedJSHeapSize

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

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local926.30ms - 932.50ms-unsure 🔍
-0% - +0%
-3.50ms - +4.57ms
preact-main926.28ms - 931.44msunsure 🔍
-0% - +0%
-4.57ms - +3.50ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local19.18ms - 19.18ms-unsure 🔍
-0% - -0%
-0.00ms - -0.00ms
preact-main19.18ms - 19.19msunsure 🔍
+0% - +0%
+0.00ms - +0.00ms
-
filter-list

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.46ms - 17.14ms-unsure 🔍
-2% - +3%
-0.35ms - +0.49ms
preact-main16.47ms - 16.98msunsure 🔍
-3% - +2%
-0.49ms - +0.35ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.53ms - 1.56ms-unsure 🔍
-2% - +1%
-0.03ms - +0.01ms
preact-main1.54ms - 1.57msunsure 🔍
-1% - +2%
-0.01ms - +0.03ms
-
hydrate1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local80.03ms - 81.34ms-unsure 🔍
-1% - +1%
-0.85ms - +1.20ms
preact-main79.72ms - 81.30msunsure 🔍
-1% - +1%
-1.20ms - +0.85ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local9.43ms - 10.02ms-unsure 🔍
-5% - +4%
-0.47ms - +0.43ms
preact-main9.41ms - 10.08msunsure 🔍
-4% - +5%
-0.43ms - +0.47ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.39ms - 16.60ms-unsure 🔍
-1% - +1%
-0.14ms - +0.16ms
preact-main16.37ms - 16.59msunsure 🔍
-1% - +1%
-0.16ms - +0.14ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.77ms - 3.80ms-unsure 🔍
-0% - +1%
-0.02ms - +0.02ms
preact-main3.76ms - 3.79msunsure 🔍
-1% - +0%
-0.02ms - +0.02ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #4608
  • Commit: 7ed5aeb

duration

VersionAvg timevs preact-localvs preact-main
preact-local64.90ms - 65.58ms-unsure 🔍
-1% - +0%
-0.84ms - +0.22ms
preact-main65.14ms - 65.96msunsure 🔍
-0% - +1%
-0.22ms - +0.84ms
-

usedJSHeapSize

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

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local29.50ms - 30.23ms-unsure 🔍
-1% - +2%
-0.35ms - +0.57ms
preact-main29.48ms - 30.03msunsure 🔍
-2% - +1%
-0.57ms - +0.35ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local33.96ms - 35.05ms-unsure 🔍
-3% - +2%
-1.03ms - +0.61ms
preact-main34.10ms - 35.33msunsure 🔍
-2% - +3%
-0.61ms - +1.03ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local25.35ms - 25.64ms-unsure 🔍
-1% - +1%
-0.30ms - +0.14ms
preact-main25.41ms - 25.74msunsure 🔍
-1% - +1%
-0.14ms - +0.30ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local26.72ms - 27.40ms-unsure 🔍
-2% - +1%
-0.55ms - +0.31ms
preact-main26.92ms - 27.45msunsure 🔍
-1% - +2%
-0.31ms - +0.55ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local27.47ms - 28.02ms-unsure 🔍
-1% - +2%
-0.24ms - +0.53ms
preact-main27.34ms - 27.87msunsure 🔍
-2% - +1%
-0.53ms - +0.24ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local19.81ms - 20.17ms-unsure 🔍
-2% - +0%
-0.48ms - +0.09ms
preact-main19.96ms - 20.41msunsure 🔍
-0% - +2%
-0.09ms - +0.48ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 110
  • Built by: CI #4608
  • Commit: 7ed5aeb

duration

VersionAvg timevs preact-localvs preact-main
preact-local2.00ms - 2.13ms-unsure 🔍
-5% - +4%
-0.10ms - +0.09ms
preact-main2.00ms - 2.14msunsure 🔍
-4% - +5%
-0.09ms - +0.10ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local34.21ms - 34.60ms-unsure 🔍
-0% - +2%
-0.17ms - +0.53ms
preact-main33.93ms - 34.51msunsure 🔍
-2% - +0%
-0.53ms - +0.17ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.23ms - 1.24ms-faster ✔
1% - 4%
0.01ms - 0.05ms
preact-main1.25ms - 1.29msslower ❌
1% - 4%
0.01ms - 0.05ms
-
update10th1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #4608
  • Commit: 7ed5aeb

duration

VersionAvg timevs preact-localvs preact-main
preact-local30.47ms - 31.61ms-unsure 🔍
-5% - +1%
-1.50ms - +0.22ms
preact-main31.04ms - 32.33msunsure 🔍
-1% - +5%
-0.22ms - +1.50ms
-

usedJSHeapSize

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

tachometer-reporter-action v2 for CI

@github-actions
Copy link

github-actions bot commented Mar 8, 2025

Size Change: -59 B (-0.08%)

Total Size: 78.5 kB

Filename Size Change
dist/preact.js 4.75 kB -13 B (-0.27%)
dist/preact.min.js 4.77 kB -3 B (-0.06%)
dist/preact.min.module.js 4.77 kB -16 B (-0.33%)
dist/preact.min.umd.js 4.79 kB -4 B (-0.08%)
dist/preact.mjs 4.76 kB -10 B (-0.21%)
dist/preact.module.js 4.76 kB -10 B (-0.21%)
dist/preact.umd.js 4.79 kB -3 B (-0.06%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 4.12 kB
compat/dist/compat.mjs 4.05 kB
compat/dist/compat.module.js 4.05 kB
compat/dist/compat.umd.js 4.19 kB
debug/dist/debug.js 3.82 kB
debug/dist/debug.mjs 3.82 kB
debug/dist/debug.module.js 3.82 kB
debug/dist/debug.umd.js 3.9 kB
devtools/dist/devtools.js 260 B
devtools/dist/devtools.mjs 274 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.mjs 1.57 kB
hooks/dist/hooks.module.js 1.57 kB
hooks/dist/hooks.umd.js 1.61 kB
jsx-runtime/dist/jsxRuntime.js 978 B
jsx-runtime/dist/jsxRuntime.mjs 952 B
jsx-runtime/dist/jsxRuntime.module.js 952 B
jsx-runtime/dist/jsxRuntime.umd.js 1.05 kB
test-utils/dist/testUtils.js 473 B
test-utils/dist/testUtils.mjs 477 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 Mar 8, 2025

Coverage Status

coverage: 99.61%. remained the same
when pulling 7ed5aeb on refactor/golf-strict-eq
into ccd1e71 on main.

@rschristian rschristian force-pushed the refactor/golf-strict-eq branch 4 times, most recently from 640589f to 7ed5aeb Compare March 8, 2025 12:15
@rschristian rschristian marked this pull request as ready for review March 8, 2025 12:28
Copy link
Member

@JoviDeCroock JoviDeCroock left a comment

Choose a reason for hiding this comment

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

Nice find!

@rschristian rschristian merged commit a69aada into main Mar 9, 2025
49 checks passed
@rschristian rschristian deleted the refactor/golf-strict-eq branch March 9, 2025 01:24
@JoviDeCroock JoviDeCroock mentioned this pull request Mar 20, 2025
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.

5 participants