swc-project / swc

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

perf(es/transform): Add inline annotation #9690

Closed kdy1 closed 3 weeks ago

kdy1 commented 3 weeks ago

Description:

swc_core@v3.0.1, LTO = false

Benchmarking es/full/all/es5: Collecting 100 samples in estimated 54.860 s (100 iterations)
Benchmarking es/full/all/es5: Analyzing
es/full/all/es5         time:   [525.54 ms 526.92 ms 528.33 ms]

swc_core@v3.0.1, LTO = false + #[inline(always)]

Benchmarking es/full/all/es5: Collecting 100 samples in estimated 53.857 s (100 iterations)
Benchmarking es/full/all/es5: Analyzing
es/full/all/es5         time:   [510.40 ms 512.59 ms 514.88 ms]

Related issue (if exists):

changeset-bot[bot] commented 3 weeks ago

⚠️ No Changeset found

Latest commit: 33bbaa1185426b807894141a8740462c6b9d2c8e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

codspeed-hq[bot] commented 3 weeks ago

CodSpeed Performance Report

Merging #9690 will degrade performances by 93.26%

Comparing kdy1:perf-common (33bbaa1) with main (4d887d0)

Summary

⚡ 2 improvements ❌ 185 regressions ✅ 6 untouched benchmarks

⁉️ 1 dropped benchmarks

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

Benchmarks breakdown

Benchmark main kdy1:perf-common Change
es/full/bugs-1 474.2 µs 509.3 µs -6.9%
es/full/minify/libraries/antd 4.1 s 4.5 s -7.16%
es/full/minify/libraries/d3 814.5 ms 890.8 ms -8.57%
es/full/minify/libraries/echarts 3.3 s 3.6 s -7.17%
es/full/minify/libraries/jquery 202.9 ms 224.3 ms -9.54%
es/full/minify/libraries/lodash 250.2 ms 278.6 ms -10.19%
es/full/minify/libraries/moment 124.5 ms 137.2 ms -9.28%
es/full/minify/libraries/react 36.8 ms 40.7 ms -9.49%
es/full/minify/libraries/terser 627 ms 686.2 ms -8.63%
es/full/minify/libraries/three 1.3 s 1.4 s -6.69%
es/full/minify/libraries/typescript 6.6 s 7.2 s -8.09%
es/full/minify/libraries/victory 1.9 s 2 s -7.14%
es/full/minify/libraries/vue 293.2 ms 324.8 ms -9.71%
es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=false 1.1 ms 1.2 ms -7.64%
es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=true 1.3 ms 1.4 ms -6.28%
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=false 1.4 ms 1.5 ms -7.53%
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=true 1.6 ms 1.7 ms -6.23%
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=false 76.8 ms 84.2 ms -8.75%
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=true 76.8 ms 84.4 ms -8.98%
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false 107.2 ms 115.6 ms -7.28%
... ... ... ... ...


:information_source: Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

kdy1 commented 3 weeks ago

Closing as this regresses perf

kdy1 commented 3 weeks ago

Oops I uploaded wrong files