Skip to content

Conversation

@ali-garajian
Copy link
Contributor

@ali-garajian ali-garajian commented Nov 7, 2025

props and context are already being set in BaseComponent when creating either a class component or an FC

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -1% - +1% (-14.12ms - +7.86ms)
    preact-local vs preact-main
  • filter-list: slower ❌ 0% - 1% (0.01ms - 0.12ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -1% - +2% (-0.48ms - +1.45ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -2% - +2% (-0.26ms - +0.39ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -2% - +1% (-0.98ms - +0.79ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -5% - +3% (-0.10ms - +0.07ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -2% - +1% (-0.49ms - +0.41ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -4% - +2% (-1.32ms - +0.76ms)
    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 🔍 -1% - +12% (-0.02ms - +0.74ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -0% - +0% (-0.00ms - +0.01ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -0% - +0% (-0.00ms - +0.01ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -1% - +3% (-0.01ms - +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.00ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local978.02ms - 991.15ms-unsure 🔍
-1% - +1%
-14.12ms - +7.86ms
preact-main978.90ms - 996.53msunsure 🔍
-1% - +1%
-7.86ms - +14.12ms
-

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.53ms - 16.64ms-slower ❌
0% - 1%
0.01ms - 0.12ms
preact-main16.50ms - 16.54msfaster ✔
0% - 1%
0.01ms - 0.12ms
-

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-local65.96ms - 67.43ms-unsure 🔍
-1% - +2%
-0.48ms - +1.45ms
preact-main65.59ms - 66.83msunsure 🔍
-2% - +1%
-1.45ms - +0.48ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local6.34ms - 6.91ms-unsure 🔍
-1% - +12%
-0.02ms - +0.74ms
preact-main6.01ms - 6.52msunsure 🔍
-11% - +0%
-0.74ms - +0.02ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local15.96ms - 16.50ms-unsure 🔍
-2% - +2%
-0.26ms - +0.39ms
preact-main15.98ms - 16.35msunsure 🔍
-2% - +2%
-0.39ms - +0.26ms
-

usedJSHeapSize

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

duration

VersionAvg timevs preact-localvs preact-main
preact-local57.29ms - 58.53ms-unsure 🔍
-2% - +1%
-0.98ms - +0.79ms
preact-main57.37ms - 58.63msunsure 🔍
-1% - +2%
-0.79ms - +0.98ms
-

usedJSHeapSize

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

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local24.52ms - 25.30ms-unsure 🔍
-1% - +3%
-0.28ms - +0.79ms
preact-main24.29ms - 25.02msunsure 🔍
-3% - +1%
-0.79ms - +0.28ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local30.31ms - 31.27ms-unsure 🔍
-2% - +2%
-0.58ms - +0.75ms
preact-main30.25ms - 31.17msunsure 🔍
-2% - +2%
-0.75ms - +0.58ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local30.77ms - 31.47ms-unsure 🔍
-2% - +1%
-0.58ms - +0.45ms
preact-main30.81ms - 31.56msunsure 🔍
-1% - +2%
-0.45ms - +0.58ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local24.05ms - 24.34ms-unsure 🔍
-1% - +2%
-0.15ms - +0.41ms
preact-main23.82ms - 24.31msunsure 🔍
-2% - +1%
-0.41ms - +0.15ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local23.74ms - 25.16ms-unsure 🔍
-4% - +4%
-1.04ms - +0.94ms
preact-main23.80ms - 25.19msunsure 🔍
-4% - +4%
-0.94ms - +1.04ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local19.61ms - 20.16ms-unsure 🔍
-1% - +2%
-0.28ms - +0.44ms
preact-main19.57ms - 20.04msunsure 🔍
-2% - +1%
-0.44ms - +0.28ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 150
  • Built by: CI #5204
  • Commit: 4c9d5cc

duration

VersionAvg timevs preact-localvs preact-main
preact-local2.00ms - 2.10ms-unsure 🔍
-5% - +3%
-0.10ms - +0.07ms
preact-main2.00ms - 2.13msunsure 🔍
-3% - +5%
-0.07ms - +0.10ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local0.99ms - 1.02ms-unsure 🔍
-1% - +3%
-0.01ms - +0.03ms
preact-main0.98ms - 1.01msunsure 🔍
-3% - +1%
-0.03ms - +0.01ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local31.62ms - 32.39ms-unsure 🔍
-2% - +1%
-0.49ms - +0.41ms
preact-main31.82ms - 32.28msunsure 🔍
-1% - +2%
-0.41ms - +0.49ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.26ms - 1.26ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-main1.26ms - 1.26msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local34.23ms - 35.75ms-unsure 🔍
-4% - +2%
-1.32ms - +0.76ms
preact-main34.57ms - 35.98msunsure 🔍
-2% - +4%
-0.76ms - +1.32ms
-

usedJSHeapSize

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

tachometer-reporter-action v2 for CI

@coveralls
Copy link

Coverage Status

coverage: 99.442%. remained the same
when pulling 4c9d5cc on ali-garajian:main
into 84c10e4 on preactjs:main.

Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Nice spot!


Size Change: -15 B (-0.03%)

Total Size: 47.5 kB

Filename Size Change
dist/preact.js 4.71 kB -5 B (-0.11%)
dist/preact.mjs 4.73 kB -5 B (-0.11%)
dist/preact.umd.js 4.78 kB -5 B (-0.1%)
ℹ️ View Unchanged
Filename Size
compat/dist/compat.js 3.91 kB
compat/dist/compat.mjs 3.84 kB
compat/dist/compat.umd.js 3.96 kB
debug/dist/debug.js 3.9 kB
debug/dist/debug.mjs 3.9 kB
debug/dist/debug.umd.js 3.98 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.53 kB
hooks/dist/hooks.mjs 1.56 kB
hooks/dist/hooks.umd.js 1.6 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

@rschristian rschristian merged commit 4788838 into preactjs:main Nov 7, 2025
13 checks passed
JoviDeCroock pushed a commit that referenced this pull request Nov 29, 2025
…onent (#4954)

* refactor(children): remove redundant assignment to childVNode

* refactor(children): use key instead of childVNode.key

* refactor(diff): no need to reset props and context when creating component

---------

Co-authored-by: Ali Garajian <ali.garajian@snapppay.ir>
JoviDeCroock added a commit that referenced this pull request Nov 29, 2025
* refactor(children): remove redundant assignment to childVNode (#4951)

* refactor(children): remove redundant assignment to childVNode

* refactor(children): use key instead of childVNode.key

---------

Co-authored-by: Ali Garajian <ali.garajian@snapppay.ir>

* refactor(diff): no need to reset props and context when creating component (#4954)

* refactor(children): remove redundant assignment to childVNode

* refactor(children): use key instead of childVNode.key

* refactor(diff): no need to reset props and context when creating component

---------

Co-authored-by: Ali Garajian <ali.garajian@snapppay.ir>

* refactor(children): remove redundant assignment to oldVNode (#4956)

Co-authored-by: Ali Garajian <ali.garajian@snapppay.ir>

* refactor(diff): set oldProps default value on declaration (#4959)

---------

Co-authored-by: Ali Garajian <50337133+ali-garajian@users.noreply.github.com>
Co-authored-by: Ali Garajian <ali.garajian@snapppay.ir>
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