Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use colorjs.io sub-exports for perf #78

Merged
merged 2 commits into from
Jul 28, 2024
Merged

Conversation

bartveneman
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jul 28, 2024

Bundle Report

Changes will decrease total bundle size by 53.3kB ⬇️

Bundle name Size Change
formatCss-colorSorter-esm 54.16kB 32.74kB ⬇️
formatCss-colorSorter-esm-colorSorter-umd 36.91kB 20.56kB ⬇️

Copy link

codspeed-hq bot commented Jul 28, 2024

CodSpeed Performance Report

Merging #78 will degrade performances by 52.65%

Comparing colorjs-tree-shake (ad49774) with master (50ecb33)

Summary

⚡ 15 improvements
❌ 1 (👁 1) regressions

🆕 4 new benchmarks

Benchmarks breakdown

Benchmark master colorjs-tree-shake Change
🆕 convert color() N/A 141.9 µs N/A
convert hex 191.8 µs 102.4 µs +87.35%
🆕 convert hex with alpha N/A 102.8 µs N/A
convert hsl() 176.7 µs 94.9 µs +86.12%
👁 convert hsl() (modern syntax) 176.5 µs 372.7 µs -52.65%
convert hsla() 194.8 µs 103.6 µs +88.05%
convert hsla() (modern syntax) 185.1 µs 98.2 µs +88.4%
convert invalid color 174 µs 109.6 µs +58.78%
🆕 convert lch() N/A 166.2 µs N/A
convert named color 172.8 µs 79.3 µs ×2.2
convert oklch() 232.6 µs 154.8 µs +50.2%
🆕 convert relative color() N/A 136.7 µs N/A
convert rgb() 203.6 µs 120.8 µs +68.59%
convert rgb() (modern syntax) 204.4 µs 118.6 µs +72.36%
convert rgba() 208.7 µs 122.5 µs +70.39%
convert rgba() (modern syntax) 210.7 µs 124.5 µs +69.23%
convert system color 171 µs 111.5 µs +53.35%
convert transparent 169 µs 77.8 µs ×2.2
real world sort example #1 31.9 ms 9.5 ms ×3.4
real world sort example #2 (nerdy.dev) 56.2 ms 21.8 ms ×2.6

@bartveneman bartveneman merged commit 2d78475 into master Jul 28, 2024
4 checks passed
@bartveneman bartveneman deleted the colorjs-tree-shake branch July 28, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants