preact icon indicating copy to clipboard operation
preact copied to clipboard

[WIP] Use shift to empty queues

Open andrewiggins opened this issue 3 years ago • 4 comments

PR to check out the perf impact of using shift for our queues. Since these code paths aren't as hot as the core diff I'm not expecting much change.

Feel free to push to this branch if you want to experiment with other implementations

Thanks to @developit for the suggestion :)

andrewiggins avatar Apr 18 '21 19:04 andrewiggins

📊 Tachometer Benchmark Results

Summary

duration

  • 02_replace1k: unsure 🔍 -2% - +2% (-2.91ms - +2.60ms)
    preact-local vs preact-master
  • 02_replace1k: unsure 🔍 -15% - +25% (-16.84ms - +27.33ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -4% - +4% (-1.63ms - +1.57ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -4% - +4% (-1.81ms - +1.77ms)
    preact-local vs preact-master
  • 07_create10k: unsure 🔍 -0% - +0% (-4.24ms - +5.42ms)
    preact-local vs preact-master
  • 07_create10k: unsure 🔍 -1% - +0% (-8.37ms - +5.48ms)
    preact-local vs preact-master
  • filter_list: unsure 🔍 -2% - +4% (-0.77ms - +1.15ms)
    preact-local vs preact-master
  • filter_list: unsure 🔍 -1% - +1% (-0.26ms - +0.20ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -7% - +3% (-17.14ms - +8.12ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -0% - +3% (-0.06ms - +3.54ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -3% - +5% (-0.91ms - +1.61ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -4% - +4% (-1.74ms - +1.62ms)
    preact-local vs preact-master
  • text_update: unsure 🔍 -3% - +5% (-0.10ms - +0.17ms)
    preact-local vs preact-master
  • text_update: unsure 🔍 -1% - +1% (-0.03ms - +0.04ms)
    preact-local vs preact-master
  • todo: unsure 🔍 -2% - +3% (-1.12ms - +1.42ms)
    preact-local vs preact-master

usedJSHeapSize

  • 02_replace1k: unsure 🔍 -0% - +0% (-0.01ms - +0.01ms)
    preact-local vs preact-master
  • 02_replace1k: unsure 🔍 -15% - +3% (-0.87ms - +0.17ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -0% - +0% (-0.01ms - +0.00ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -0% - +0% (-0.01ms - +0.00ms)
    preact-local vs preact-master
  • 07_create10k: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    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
  • filter_list: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -1% - +1% (-0.03ms - +0.06ms)
    preact-local vs preact-master
  • hydrate1k: unsure 🔍 -4% - +2% (-0.55ms - +0.33ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -0% - -0% (-0.00ms - -0.00ms)
    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
  • text_update: unsure 🔍 -0% - -0% (-0.00ms - -0.00ms)
    preact-local vs preact-master
  • todo: unsure 🔍 -0% - +0% (-0.00ms - +0.00ms)
    preact-local vs preact-master

Results

02_replace1k
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 80
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master146.09ms - 150.15ms-unsure 🔍
-2% - +2%
-2.60ms - +2.91ms
preact-local146.10ms - 149.82msunsure 🔍
-2% - +2%
-2.91ms - +2.60ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master3.47ms - 3.48ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-local3.47ms - 3.49msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-

run-warmup-0

VersionAvg timevs preact-mastervs preact-local
preact-master55.49ms - 56.94ms-unsure 🔍
-2% - +2%
-0.96ms - +0.95ms
preact-local55.60ms - 56.84msunsure 🔍
-2% - +2%
-0.95ms - +0.96ms
-

run-warmup-1

VersionAvg timevs preact-mastervs preact-local
preact-master84.12ms - 86.13ms-unsure 🔍
-2% - +1%
-1.47ms - +1.21ms
preact-local84.37ms - 86.14msunsure 🔍
-1% - +2%
-1.21ms - +1.47ms
-

run-warmup-2

VersionAvg timevs preact-mastervs preact-local
preact-master73.05ms - 81.70ms-unsure 🔍
-7% - +8%
-5.61ms - +6.12ms
preact-local73.15ms - 81.08msunsure 🔍
-8% - +7%
-6.12ms - +5.61ms
-

run-warmup-3

VersionAvg timevs preact-mastervs preact-local
preact-master55.68ms - 63.44ms-unsure 🔍
-13% - +6%
-7.93ms - +3.77ms
preact-local57.26ms - 66.02msunsure 🔍
-6% - +13%
-3.77ms - +7.93ms
-

run-warmup-4

VersionAvg timevs preact-mastervs preact-local
preact-master81.24ms - 84.42ms-unsure 🔍
-2% - +4%
-1.66ms - +3.19ms
preact-local80.23ms - 83.89msunsure 🔍
-4% - +2%
-3.19ms - +1.66ms
-

run-final

VersionAvg timevs preact-mastervs preact-local
preact-master48.26ms - 51.50ms-unsure 🔍
-4% - +5%
-1.95ms - +2.54ms
preact-local48.03ms - 51.13msunsure 🔍
-5% - +4%
-2.54ms - +1.95ms
-
02_replace1k
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 70
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master97.90ms - 129.06ms-unsure 🔍
-23% - +14%
-27.33ms - +16.84ms
unsure 🔍
-17% - +23%
-18.64ms - +24.81ms
preact-local103.07ms - 134.37msunsure 🔍
-15% - +25%
-16.84ms - +27.33ms
-unsure 🔍
-13% - +28%
-13.44ms - +30.10ms
preact-hooks95.25ms - 125.53msunsure 🔍
-22% - +16%
-24.81ms - +18.64ms
unsure 🔍
-25% - +11%
-30.10ms - +13.44ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master5.11ms - 5.96ms-unsure 🔍
-4% - +17%
-0.17ms - +0.87ms
unsure 🔍
-8% - +11%
-0.44ms - +0.61ms
preact-local4.89ms - 5.48msunsure 🔍
-15% - +3%
-0.87ms - +0.17ms
-unsure 🔍
-13% - +3%
-0.70ms - +0.16ms
preact-hooks5.14ms - 5.76msunsure 🔍
-11% - +8%
-0.61ms - +0.44ms
unsure 🔍
-3% - +14%
-0.16ms - +0.70ms
-

run-warmup-0

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.25ms - 1.37ms-unsure 🔍
-15% - +7%
-0.21ms - +0.10ms
unsure 🔍
-3% - +10%
-0.04ms - +0.13ms
preact-local1.22ms - 1.51msunsure 🔍
-8% - +16%
-0.10ms - +0.21ms
-unsure 🔍
-5% - +20%
-0.06ms - +0.25ms
preact-hooks1.20ms - 1.32msunsure 🔍
-10% - +3%
-0.13ms - +0.04ms
unsure 🔍
-18% - +4%
-0.25ms - +0.06ms
-

run-warmup-1

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.96ms - 1.56ms-unsure 🔍
-23% - +39%
-0.26ms - +0.45ms
unsure 🔍
-8% - +58%
-0.07ms - +0.57ms
preact-local0.98ms - 1.35msunsure 🔍
-34% - +19%
-0.45ms - +0.26ms
-unsure 🔍
-7% - +38%
-0.06ms - +0.37ms
preact-hooks0.89ms - 1.12msunsure 🔍
-41% - +1%
-0.57ms - +0.07ms
unsure 🔍
-30% - +3%
-0.37ms - +0.06ms
-

run-warmup-2

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.51ms - 0.66ms-unsure 🔍
-21% - +18%
-0.13ms - +0.11ms
unsure 🔍
-21% - +24%
-0.12ms - +0.14ms
preact-local0.51ms - 0.68msunsure 🔍
-18% - +22%
-0.11ms - +0.13ms
-unsure 🔍
-21% - +27%
-0.12ms - +0.15ms
preact-hooks0.48ms - 0.68msunsure 🔍
-23% - +21%
-0.14ms - +0.12ms
unsure 🔍
-25% - +19%
-0.15ms - +0.12ms
-

run-warmup-3

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.43ms - 1.01ms-unsure 🔍
-61% - +32%
-0.54ms - +0.30ms
unsure 🔍
-69% - +9%
-0.80ms - +0.18ms
preact-local0.54ms - 1.15msunsure 🔍
-46% - +80%
-0.30ms - +0.54ms
-unsure 🔍
-61% - +25%
-0.69ms - +0.31ms
preact-hooks0.63ms - 1.43msunsure 🔍
-37% - +123%
-0.18ms - +0.80ms
unsure 🔍
-42% - +87%
-0.31ms - +0.69ms
-

run-warmup-4

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.34ms - 0.44ms-unsure 🔍
-18% - +23%
-0.07ms - +0.09ms
unsure 🔍
-8% - +35%
-0.02ms - +0.12ms
preact-local0.33ms - 0.43msunsure 🔍
-22% - +17%
-0.09ms - +0.07ms
-unsure 🔍
-11% - +31%
-0.03ms - +0.11ms
preact-hooks0.30ms - 0.39msunsure 🔍
-28% - +5%
-0.12ms - +0.02ms
unsure 🔍
-27% - +8%
-0.11ms - +0.03ms
-

run-final

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.33ms - 0.38ms-unsure 🔍
-12% - +11%
-0.04ms - +0.04ms
unsure 🔍
-22% - +1%
-0.09ms - +0.01ms
preact-local0.32ms - 0.39msunsure 🔍
-11% - +13%
-0.04ms - +0.04ms
-unsure 🔍
-23% - +4%
-0.09ms - +0.02ms
preact-hooks0.35ms - 0.43msunsure 🔍
-3% - +26%
-0.01ms - +0.09ms
unsure 🔍
-5% - +26%
-0.02ms - +0.09ms
-
03_update10th1k_x16
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 90
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master37.11ms - 39.34ms-unsure 🔍
-4% - +4%
-1.57ms - +1.63ms
preact-local37.05ms - 39.35msunsure 🔍
-4% - +4%
-1.63ms - +1.57ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master3.40ms - 3.41ms-unsure 🔍
-0% - +0%
-0.00ms - +0.01ms
preact-local3.40ms - 3.40msunsure 🔍
-0% - +0%
-0.01ms - +0.00ms
-
03_update10th1k_x16
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 60
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master47.86ms - 50.37ms-unsure 🔍
-4% - +4%
-1.77ms - +1.81ms
unsure 🔍
-5% - +3%
-2.29ms - +1.58ms
preact-local47.83ms - 50.36msunsure 🔍
-4% - +4%
-1.81ms - +1.77ms
-unsure 🔍
-5% - +3%
-2.32ms - +1.56ms
preact-hooks48.00ms - 50.94msunsure 🔍
-3% - +5%
-1.58ms - +2.29ms
unsure 🔍
-3% - +5%
-1.56ms - +2.32ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master3.46ms - 3.47ms-unsure 🔍
-0% - +0%
-0.00ms - +0.01ms
faster ✔
0% - 1%
0.01ms - 0.02ms
preact-local3.46ms - 3.47msunsure 🔍
-0% - +0%
-0.01ms - +0.00ms
-faster ✔
0% - 1%
0.01ms - 0.02ms
preact-hooks3.48ms - 3.49msslower ❌
0% - 1%
0.01ms - 0.02ms
slower ❌
0% - 1%
0.01ms - 0.02ms
-
07_create10k
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 50
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master1214.97ms - 1222.63ms-unsure 🔍
-0% - +0%
-5.42ms - +4.24ms
preact-local1216.44ms - 1222.33msunsure 🔍
-0% - +0%
-4.24ms - +5.42ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master25.32ms - 25.32ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-local25.32ms - 25.33msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
07_create10k
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 50
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1344.94ms - 1356.76ms-unsure 🔍
-0% - +1%
-5.48ms - +8.37ms
unsure 🔍
-1% - +0%
-13.33ms - +0.26ms
preact-local1345.80ms - 1353.02msunsure 🔍
-1% - +0%
-8.37ms - +5.48ms
-faster ✔
0% - 1%
3.06ms - 12.91ms
preact-hooks1354.04ms - 1360.74msunsure 🔍
-0% - +1%
-0.26ms - +13.33ms
slower ❌
0% - 1%
3.06ms - 12.91ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master25.52ms - 25.52ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
unsure 🔍
-0% - -0%
-0.02ms - -0.02ms
preact-local25.52ms - 25.52msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-unsure 🔍
-0% - -0%
-0.02ms - -0.02ms
preact-hooks25.54ms - 25.54msunsure 🔍
+0% - +0%
+0.02ms - +0.02ms
unsure 🔍
+0% - +0%
+0.02ms - +0.02ms
-
filter_list
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 50
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master30.42ms - 31.51ms-unsure 🔍
-4% - +2%
-1.15ms - +0.77ms
preact-local30.37ms - 31.95msunsure 🔍
-2% - +4%
-0.77ms - +1.15ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master1.54ms - 1.55ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
preact-local1.54ms - 1.55msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-
filter_list
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 50
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master23.04ms - 23.39ms-unsure 🔍
-1% - +1%
-0.20ms - +0.26ms
unsure 🔍
-2% - +1%
-0.39ms - +0.13ms
preact-local23.04ms - 23.33msunsure 🔍
-1% - +1%
-0.26ms - +0.20ms
-unsure 🔍
-2% - +0%
-0.40ms - +0.09ms
preact-hooks23.15ms - 23.53msunsure 🔍
-1% - +2%
-0.13ms - +0.39ms
unsure 🔍
-0% - +2%
-0.09ms - +0.40ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.61ms - 1.61ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
faster ✔
1% - 1%
0.02ms - 0.02ms
preact-local1.61ms - 1.61msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-faster ✔
1% - 1%
0.02ms - 0.02ms
preact-hooks1.63ms - 1.64msslower ❌
1% - 2%
0.02ms - 0.02ms
slower ❌
1% - 2%
0.02ms - 0.02ms
-
hydrate1k
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 70
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master223.69ms - 239.74ms-unsure 🔍
-4% - +8%
-8.12ms - +17.14ms
preact-local217.45ms - 236.95msunsure 🔍
-7% - +3%
-17.14ms - +8.12ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master6.15ms - 6.22ms-unsure 🔍
-1% - +1%
-0.06ms - +0.03ms
preact-local6.17ms - 6.23msunsure 🔍
-1% - +1%
-0.03ms - +0.06ms
-
hydrate1k
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 60
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master119.73ms - 122.07ms-unsure 🔍
-3% - +0%
-3.54ms - +0.06ms
unsure 🔍
-3% - +0%
-3.26ms - +0.56ms
preact-local121.27ms - 124.01msunsure 🔍
-0% - +3%
-0.06ms - +3.54ms
-unsure 🔍
-1% - +2%
-1.66ms - +2.43ms
preact-hooks120.74ms - 123.77msunsure 🔍
-0% - +3%
-0.56ms - +3.26ms
unsure 🔍
-2% - +1%
-2.43ms - +1.66ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master13.84ms - 14.47ms-unsure 🔍
-2% - +4%
-0.33ms - +0.55ms
unsure 🔍
-3% - +3%
-0.39ms - +0.47ms
preact-local13.74ms - 14.35msunsure 🔍
-4% - +2%
-0.55ms - +0.33ms
-unsure 🔍
-3% - +2%
-0.49ms - +0.35ms
preact-hooks13.83ms - 14.41msunsure 🔍
-3% - +3%
-0.47ms - +0.39ms
unsure 🔍
-2% - +4%
-0.35ms - +0.49ms
-
many_updates
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 70
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master31.75ms - 33.39ms-unsure 🔍
-5% - +3%
-1.61ms - +0.91ms
preact-local31.97ms - 33.87msunsure 🔍
-3% - +5%
-0.91ms - +1.61ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master4.61ms - 4.61ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-local4.61ms - 4.61msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
many_updates
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 70
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master39.61ms - 42.10ms-unsure 🔍
-4% - +4%
-1.62ms - +1.74ms
unsure 🔍
-5% - +2%
-2.18ms - +1.00ms
preact-local39.67ms - 41.93msunsure 🔍
-4% - +4%
-1.74ms - +1.62ms
-unsure 🔍
-5% - +2%
-2.15ms - +0.86ms
preact-hooks40.45ms - 42.44msunsure 🔍
-2% - +5%
-1.00ms - +2.18ms
unsure 🔍
-2% - +5%
-0.86ms - +2.15ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master4.65ms - 4.65ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
unsure 🔍
-0% - -0%
-0.02ms - -0.02ms
preact-local4.65ms - 4.65msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-unsure 🔍
-0% - -0%
-0.02ms - -0.02ms
preact-hooks4.67ms - 4.67msunsure 🔍
+0% - +0%
+0.02ms - +0.02ms
unsure 🔍
+0% - +0%
+0.02ms - +0.02ms
-
text_update
  • Browser: chrome-headless 96.0.4664.110
  • Sample size: 70
  • Built by: Benchmarks #596
  • Commit: 719fdf5

duration

VersionAvg timevs preact-mastervs preact-local
preact-master3.34ms - 3.48ms-unsure 🔍
-5% - +3%
-0.17ms - +0.10ms
preact-local3.33ms - 3.56msunsure 🔍
-3% - +5%
-0.10ms - +0.17ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master0.78ms - 0.78ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
preact-local0.78ms - 0.78msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-
text_update
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 210
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master2.90ms - 2.95ms-unsure 🔍
-1% - +1%
-0.04ms - +0.03ms
faster ✔
4% - 6%
0.14ms - 0.20ms
preact-local2.91ms - 2.95msunsure 🔍
-1% - +1%
-0.03ms - +0.04ms
-faster ✔
4% - 6%
0.13ms - 0.20ms
preact-hooks3.07ms - 3.12msslower ❌
5% - 7%
0.14ms - 0.20ms
slower ❌
4% - 7%
0.13ms - 0.20ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master0.83ms - 0.83ms-unsure 🔍
+0% - +0%
+0.00ms - +0.00ms
faster ✔
2% - 2%
0.01ms - 0.01ms
preact-local0.83ms - 0.83msunsure 🔍
-0% - -0%
-0.00ms - -0.00ms
-faster ✔
2% - 2%
0.01ms - 0.01ms
preact-hooks0.84ms - 0.84msslower ❌
2% - 2%
0.01ms - 0.01ms
slower ❌
2% - 2%
0.01ms - 0.01ms
-
todo
  • Browser: chrome-headless 108.0.5359.94
  • Sample size: 50
  • Built by: Benchmarks #951
  • Commit: 11a602d

duration

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master54.38ms - 56.18ms-unsure 🔍
-3% - +2%
-1.42ms - +1.12ms
faster ✔
0% - 5%
0.07ms - 2.61ms
preact-local54.53ms - 56.33msunsure 🔍
-2% - +3%
-1.12ms - +1.42ms
-unsure 🔍
-4% - +0%
-2.46ms - +0.08ms
preact-hooks55.73ms - 57.51msslower ❌
0% - 5%
0.07ms - 2.61ms
unsure 🔍
-0% - +4%
-0.08ms - +2.46ms
-

usedJSHeapSize

VersionAvg timevs preact-mastervs preact-localvs preact-hooks
preact-master1.12ms - 1.12ms-unsure 🔍
-0% - +0%
-0.00ms - +0.00ms
faster ✔
2% - 3%
0.03ms - 0.03ms
preact-local1.12ms - 1.12msunsure 🔍
-0% - +0%
-0.00ms - +0.00ms
-faster ✔
2% - 3%
0.02ms - 0.03ms
preact-hooks1.14ms - 1.15msslower ❌
2% - 3%
0.03ms - 0.03ms
slower ❌
2% - 3%
0.02ms - 0.03ms
-

tachometer-reporter-action v2 for Benchmarks

github-actions[bot] avatar Apr 18 '21 19:04 github-actions[bot]

Size Change: +72 B (0%)

Total Size: 53 kB

Filename Size Change
dist/preact.js 4.07 kB +11 B (0%)
dist/preact.min.js 4.09 kB +9 B (0%)
dist/preact.min.module.js 4.09 kB +13 B (0%)
dist/preact.min.umd.js 4.11 kB +9 B (0%)
dist/preact.module.js 4.08 kB +16 B (0%)
dist/preact.umd.js 4.13 kB +14 B (0%)
ℹ️ View Unchanged
Filename Size Change
compat/dist/compat.js 3.81 kB 0 B
compat/dist/compat.module.js 3.75 kB 0 B
compat/dist/compat.umd.js 3.87 kB 0 B
debug/dist/debug.js 3 kB 0 B
debug/dist/debug.module.js 3.01 kB 0 B
debug/dist/debug.umd.js 3.08 kB 0 B
devtools/dist/devtools.js 231 B 0 B
devtools/dist/devtools.module.js 240 B 0 B
devtools/dist/devtools.umd.js 315 B 0 B
hooks/dist/hooks.js 1.49 kB 0 B
hooks/dist/hooks.module.js 1.52 kB 0 B
hooks/dist/hooks.umd.js 1.57 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

github-actions[bot] avatar Apr 18 '21 19:04 github-actions[bot]

Coverage Status

Coverage increased (+0.0007%) to 99.532% when pulling 11a602d4cf9081a3a905c8bb0888678fbb390e07 on use-shift into 226d77d46fc252b4f2664680ce10a7907ded4c8c on master.

coveralls avatar Apr 18 '21 23:04 coveralls

I think the size might be better now if we drop the last 1 or 2 .some() loops. I can try and merge into this PR

developit avatar Apr 20 '21 01:04 developit