Hacker News new | ask | show | jobs
by silverwind 698 days ago
tsx has very slow startup performance, I prefer https://github.com/swc-project/swc-node which is around twice as fast.
2 comments

We have not seen this whatsoever. How big is your project? `tsx` is almost instantaneous in a server-side project of ours.
A hello world here takes 400ms on tsx and 250ms on swc-node for me.

Basically it boils down to swc being faster than esbuild, see their benchmarks:

https://swc.rs/docs/benchmarks

Does swc-node work with code coverage calculation libraries? For a long time tsx didn’t (and it’s still pretty finicky) so that kept me from using it.
Not sure what features those need, but at least the stack traces are correct in swc-node, so maybe worth a try.