swc-project / pkgs

node.js packages for SWC
59 stars 19 forks source link

@swc/cli execute timing regression/slowdown #29

Open bobaaaaa opened 7 months ago

bobaaaaa commented 7 months ago

Description

I saw a huge performance regression while we update @swc/cli from 0.1.62 to 0.3.10.

Timings

0.3.10 (latest)

https://github.com/bobaaaaa/swc-cli-bug/actions/runs/8355308408/job/22870145794

Successfully compiled: 2 files with swc (85.49ms)

0.1.65 (last version of 0.1.x)

https://github.com/bobaaaaa/swc-cli-bug/actions/runs/8355345456/job/22870250651

Successfully compiled: 2 files with swc (13.6ms)

How to reproduce

I created a small project with both versions + CI + more infos:

https://github.com/bobaaaaa/swc-cli-bug

❤️