nolanlawson / emoji-picker-element

A lightweight emoji picker for the modern web
https://nolanlawson.github.io/emoji-picker-element/
Apache License 2.0
1.43k stars 82 forks source link

perf: hoist global check #358

Closed nolanlawson closed 1 year ago

nolanlawson commented 1 year ago

Small optimization on top of #357

github-actions[bot] commented 1 year ago

📊 Tachometer Benchmark Results

Summary

benchmark-total

  • emoji-picker-element-database-interactions: unsure 🔍 -2% - +4% (-4.13ms - +6.86ms)
    this-change vs tip-of-tree
  • emoji-picker-element-first-load: unsure 🔍 -1% - +9% (-0.51ms - +7.73ms)
    this-change vs tip-of-tree
  • emoji-picker-element-second-load: unsure 🔍 -2% - +9% (-1.10ms - +7.27ms)
    this-change vs tip-of-tree

Results

emoji-picker-element-database-interactions
  • Browser: chrome-headless 114.0.5735.133
  • Sample size: 50
  • Built by: Benchmarks #258
  • Commit: f47f900
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
176.82ms - 183.80ms-unsure 🔍
-2% - +4%
-4.13ms - +6.86ms
tip-of-tree
tip-of-tree
174.70ms - 183.18msunsure 🔍
-4% - +2%
-6.86ms - +4.13ms
-
emoji-picker-element-first-load
  • Browser: chrome-headless 114.0.5735.133
  • Sample size: 170
  • Built by: Benchmarks #258
  • Commit: f47f900
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
83.25ms - 89.22ms-unsure 🔍
-1% - +9%
-0.51ms - +7.73ms
tip-of-tree
tip-of-tree
79.79ms - 85.46msunsure 🔍
-9% - +0%
-7.73ms - +0.51ms
-
emoji-picker-element-second-load
  • Browser: chrome-headless 114.0.5735.133
  • Sample size: 170
  • Built by: Benchmarks #258
  • Commit: f47f900
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
79.02ms - 84.92ms-unsure 🔍
-2% - +9%
-1.10ms - +7.27ms
tip-of-tree
tip-of-tree
75.91ms - 81.86msunsure 🔍
-9% - +1%
-7.27ms - +1.10ms
-

tachometer-reporter-action v2 for Benchmarks

github-actions[bot] commented 1 year ago

Size Change: +12 B (0%)

Total Size: 42.6 kB

Filename Size Change
./bundle.js 42.6 kB +12 B (0%)

compressed-size-action