nolanlawson / emoji-picker-element

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

chore: switch from jest to vitest #404

Closed nolanlawson closed 7 months ago

nolanlawson commented 7 months ago

Seems to run a bit faster, and I like that I can remove a lot of CJS cruft we don't need anymore.

github-actions[bot] commented 7 months ago

📊 Tachometer Benchmark Results

Summary

benchmark-total

  • emoji-picker-element-change-tab: unsure 🔍 -3% - +0% (-1.10ms - +0.11ms)
    this-change vs tip-of-tree
  • emoji-picker-element-database-interactions: unsure 🔍 -2% - +3% (-1.50ms - +2.93ms)
    this-change vs tip-of-tree
  • emoji-picker-element-first-load: unsure 🔍 -5% - +4% (-2.86ms - +2.05ms)
    this-change vs tip-of-tree
  • emoji-picker-element-second-load: unsure 🔍 -6% - +5% (-2.16ms - +1.82ms)
    this-change vs tip-of-tree

Results

emoji-picker-element-change-tab
  • Browser: chrome-headless 122.0.6261.94
  • Sample size: 50
  • Built by: Benchmarks #384
  • Commit: d136e25
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
33.27ms - 33.54ms-unsure 🔍
-3% - +0%
-1.10ms - +0.11ms
tip-of-tree
tip-of-tree
33.31ms - 34.49msunsure 🔍
-0% - +3%
-0.11ms - +1.10ms
-
emoji-picker-element-database-interactions
  • Browser: chrome-headless 122.0.6261.94
  • Sample size: 50
  • Built by: Benchmarks #384
  • Commit: d136e25
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
94.82ms - 98.24ms-unsure 🔍
-2% - +3%
-1.50ms - +2.93ms
tip-of-tree
tip-of-tree
94.41ms - 97.23msunsure 🔍
-3% - +2%
-2.93ms - +1.50ms
-
emoji-picker-element-first-load
  • Browser: chrome-headless 122.0.6261.94
  • Sample size: 50
  • Built by: Benchmarks #384
  • Commit: d136e25
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
53.07ms - 56.42ms-unsure 🔍
-5% - +4%
-2.86ms - +2.05ms
tip-of-tree
tip-of-tree
53.35ms - 56.95msunsure 🔍
-4% - +5%
-2.05ms - +2.86ms
-
emoji-picker-element-second-load
  • Browser: chrome-headless 122.0.6261.94
  • Sample size: 50
  • Built by: Benchmarks #384
  • Commit: d136e25
VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
this-change
37.53ms - 40.30ms-unsure 🔍
-6% - +5%
-2.16ms - +1.82ms
tip-of-tree
tip-of-tree
37.66ms - 40.51msunsure 🔍
-5% - +6%
-1.82ms - +2.16ms
-

tachometer-reporter-action v2 for Benchmarks

github-actions[bot] commented 7 months ago

Size Change: +4 B (0%)

Total Size: 36.6 kB

Filename Size Change
./bundle.js 36.6 kB +4 B (0%)

compressed-size-action

nolanlawson commented 7 months ago

Ran into an issue in Vitest, but it's pretty easy to work around by converting the ArrayBuffer to a Node Buffer. https://github.com/vitest-dev/vitest/issues/5365