oxc-project / oxc-browserslist

Rust port of browserslist
https://docs.rs/oxc-browserslist
MIT License
23 stars 1 forks source link

perf: improve sort method #28

Closed Boshen closed 4 months ago

codspeed-hq[bot] commented 4 months ago

CodSpeed Performance Report

Merging #28 will improve performances by 8.54%

Comparing perf-sort (8c84c79) with main (ff082bf)

Summary

⚡ 6 improvements

Benchmarks breakdown

Benchmark main perf-sort Change
resolve '> 0.5%' 40.1 µs 36.9 µs +8.54%
resolve 'cover 99%' 372.3 µs 121.9 µs ×3.1
resolve 'defaults, not dead' 172.9 µs 140.3 µs +23.23%
resolve 'electron >= 10' 11.5 µs 10.5 µs +10.02%
resolve 'node >= 8' 246 µs 182.3 µs +34.96%
resolve 'supports es6-module' 259.1 µs 228.4 µs +13.41%
codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.14%. Comparing base (ff082bf) to head (8c84c79).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #28 +/- ## ========================================== - Coverage 98.15% 98.14% -0.01% ========================================== Files 49 49 Lines 2437 2432 -5 ========================================== - Hits 2392 2387 -5 Misses 45 45 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.