-
-
Notifications
You must be signed in to change notification settings - Fork 42
benchmarks #94
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
Comments
Sure we'll prepare that in the upcoming docs #93 |
@sxzz I started a benchmark setup here : https://github.com/Gugustinette/bundler-benchmark For now I only made an exemple bundling a thousand functions, do you have ideas of what would be relevant or not ? I'm not much into bundlers performance. Meanwhile I'll improve the benchmark architecture and automate a few graph etc... |
Damn, twice as fast as tsup! Nice! |
Good job! We also need dts comparing |
@sxzz I added a dts benchmark. However, the generated //# sourceMappingURL=index.d.mts.map |
I updated tsdown to latest version and re-ran the benchmark, this is what we have now : What should we do @sxzz ? Value some numbers here on the documentation (similar to Rolldown docs) ? We need to close this issue in some way lol |
I'm still working on improving performance, so please wait a bit longer (it may take until the dts plugin is ported to Rust). |
Sounds good to me ! 👍 |
When compiling each package separately in a large monorepo, where each package is fairly small, you'll see much smaller gains (over tsc). I've been experimenting with tsdown and here's what I see for a ~200 line, single ts file, using isolated decl, generating everything (dts+.d.map+js.map):
The gains are further reduced (as a relative %) when going through tools like I assume this is mostly node startup overhead at this point, and there's nothing tsdown can do, but I just wanted to point it out in case I'm hitting something unexpected. I'm obviously comparing apples and oranges here though, since tsc isn't a bundler. But most of my packages are node based and don't need bundling, so the results are relevant to me. |
Sorry if this issue is inappropiate but I'm considering using tsdown instead of tsup/unbuild. But I wonder what improvements in speed this would result in. Are there any benchmarks of tsdown compared to tsup/unbuild/tsc, etc?
The text was updated successfully, but these errors were encountered: