swc-project / swc

Rust-based platform for the Web
https://swc.rs
Apache License 2.0
31.26k stars 1.23k forks source link

perf(common): Make character analysis lazy #9696

Closed kdy1 closed 3 weeks ago

kdy1 commented 3 weeks ago

Description:

Related issue:

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: e1f4c33c97c39630a7f9799e5ac374d7e72e9957

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codspeed-hq[bot] commented 3 weeks ago

CodSpeed Performance Report

Merging #9696 will degrade performances by 3.63%

Comparing kdy1:common-lazy (3a13ebc) with main (bcf05de)

Summary

⚡ 9 improvements ❌ 1 regressions ✅ 184 untouched benchmarks

:warning: Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main kdy1:common-lazy Change
es/full/all/es2015 192.4 ms 183.2 ms +5%
es/full/all/es2016 190.7 ms 182 ms +4.77%
es/full/all/es2017 190.2 ms 181.2 ms +4.95%
es/full/all/es2018 188.5 ms 179.8 ms +4.84%
es/full/all/es2019 187.6 ms 178.9 ms +4.87%
es/full/all/es2020 180.9 ms 172 ms +5.2%
es/full/all/es3 256.5 ms 247.3 ms +3.71%
es/full/all/es5 250 ms 240.5 ms +3.94%
es/full/parser 1.5 ms 1.4 ms +9.1%
es/visitor/base-perf/boxing_boxed_clone 2.3 µs 2.4 µs -3.63%