preact icon indicating copy to clipboard operation
preact copied to clipboard

Golf render.js

Open fzzle opened this issue 4 years ago • 2 comments

  • Use falsy value for replaceNode when calling render.
  • Use createVNode instead of createElement.

fzzle avatar Jun 09 '21 21:06 fzzle

📊 Tachometer Benchmark Results

Summary

duration

  • 02_replace1k: unsure 🔍 -2% - +1% (-2.41ms - +1.27ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -5% - +5% (-1.33ms - +1.45ms)
    preact-local vs preact-master
  • 07_create10k: unsure 🔍 -7% - +4% (-171.97ms - +89.70ms)
    preact-local vs preact-master
  • filter_list: unsure 🔍 -4% - +0% (-1.00ms - +0.11ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -0% - +7% (-0.37ms - +9.20ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -5% - +1% (-1.38ms - +0.37ms)
    preact-local vs preact-master
  • text_update: unsure 🔍 -1% - +1% (-0.03ms - +0.04ms)
    preact-local vs preact-master

usedJSHeapSize

  • 02_replace1k: unsure 🔍 -0% - +0% (-0.02ms - +0.00ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -0% - +0% (-0.01ms - +0.01ms)
    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% - +1% (-0.08ms - +0.05ms)
    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

Results

02_replace1k
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 80
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master152.53ms - 155.14ms-unsure 🔍
-1% - +2%
-1.27ms - +2.41ms
preact-local151.97ms - 154.56msunsure 🔍
-2% - +1%
-2.41ms - +1.27ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master3.52ms - 3.54ms-unsure 🔍
-0% - +0%
-0.00ms - +0.02ms
preact-local3.52ms - 3.53msunsure 🔍
-0% - +0%
-0.02ms - +0.00ms
-

run-warmup-0

VersionAvg timevs preact-mastervs preact-local
preact-master58.77ms - 59.95ms-unsure 🔍
-1% - +2%
-0.31ms - +1.18ms
preact-local58.48ms - 59.38msunsure 🔍
-2% - +1%
-1.18ms - +0.31ms
-

run-warmup-1

VersionAvg timevs preact-mastervs preact-local
preact-master101.29ms - 102.41ms-unsure 🔍
-0% - +1%
-0.06ms - +1.39ms
preact-local100.72ms - 101.64msunsure 🔍
-1% - +0%
-1.39ms - +0.06ms
-

run-warmup-2

VersionAvg timevs preact-mastervs preact-local
preact-master90.18ms - 99.89ms-unsure 🔍
-12% - +2%
-12.03ms - +1.88ms
preact-local95.13ms - 105.09msunsure 🔍
-2% - +13%
-1.88ms - +12.03ms
-

run-warmup-3

VersionAvg timevs preact-mastervs preact-local
preact-master67.56ms - 75.11ms-unsure 🔍
-2% - +14%
-0.91ms - +9.30ms
preact-local63.71ms - 70.58msunsure 🔍
-13% - +1%
-9.30ms - +0.91ms
-

run-warmup-4

VersionAvg timevs preact-mastervs preact-local
preact-master97.78ms - 100.75ms-unsure 🔍
-1% - +4%
-0.57ms - +3.42ms
preact-local96.51ms - 99.16msunsure 🔍
-3% - +1%
-3.42ms - +0.57ms
-

run-final

VersionAvg timevs preact-mastervs preact-local
preact-master58.28ms - 60.73ms-unsure 🔍
-2% - +4%
-1.14ms - +2.29ms
preact-local57.74ms - 60.13msunsure 🔍
-4% - +2%
-2.29ms - +1.14ms
-
03_update10th1k_x16
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 120
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master28.34ms - 30.46ms-unsure 🔍
-5% - +4%
-1.45ms - +1.33ms
preact-local28.57ms - 30.36msunsure 🔍
-5% - +5%
-1.33ms - +1.45ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master3.59ms - 3.60ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-local3.59ms - 3.60msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-
07_create10k
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 60
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master2256.19ms - 2434.07ms-unsure 🔍
-4% - +8%
-89.70ms - +171.97ms
preact-local2208.04ms - 2399.95msunsure 🔍
-7% - +4%
-171.97ms - +89.70ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master25.37ms - 25.37ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-local25.37ms - 25.37msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
filter_list
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 50
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master27.49ms - 28.41ms-unsure 🔍
-0% - +4%
-0.11ms - +1.00ms
preact-local27.19ms - 27.81msunsure 🔍
-4% - +0%
-1.00ms - +0.11ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master1.59ms - 1.59ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-local1.59ms - 1.59msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
hydrate1k
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 70
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master134.35ms - 141.07ms-unsure 🔍
-6% - +0%
-9.20ms - +0.37ms
preact-local138.72ms - 145.52msunsure 🔍
-0% - +7%
-0.37ms - +9.20ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master6.20ms - 6.29ms-unsure 🔍
-1% - +1%
-0.05ms - +0.08ms
preact-local6.19ms - 6.27msunsure 🔍
-1% - +1%
-0.08ms - +0.05ms
-
many_updates
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 80
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master25.91ms - 27.10ms-unsure 🔍
-1% - +5%
-0.37ms - +1.38ms
preact-local25.36ms - 26.64msunsure 🔍
-5% - +1%
-1.38ms - +0.37ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master4.65ms - 4.65ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-local4.65ms - 4.65msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
text_update
  • Browser: chrome-headless 91.0.4472.77
  • Sample size: 50
  • Built by: Benchmarks #337
  • Commit: 241d874

duration

VersionAvg timevs preact-mastervs preact-local
preact-master2.90ms - 2.95ms-unsure 🔍
-1% - +1%
-0.04ms - +0.03ms
preact-local2.91ms - 2.95msunsure 🔍
-1% - +1%
-0.03ms - +0.04ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master0.83ms - 0.83ms-unsure 🔍
-0% - -0%
-0.00ms - -0.00ms
preact-local0.83ms - 0.83msunsure 🔍
+0% - +0%
+0.00ms - +0.00ms
-

tachometer-reporter-action v2 for Benchmarks

github-actions[bot] avatar Jun 09 '21 21:06 github-actions[bot]

Coverage Status

Coverage remained the same at 99.622% when pulling 241d87471f2f5d562f3940ad8d4cc7551d841beb on fzzle:render-golf into 014750e10d14dced960640c464a1768d48f6e196 on preactjs:master.

coveralls avatar Jun 09 '21 21:06 coveralls