3 ms·
tsx has very slow startup performance, I prefer https://github.com/swc-project/swc-node https://github.com/swc-project/swc-node which is around twice as fast.
by silverwind 2y ago
tsx has very slow startup performance, I prefer https://github.com/swc-project/swc-node https://github.com/swc-project/swc-node which is around twice as fast.
- herpdyderp 2y agoDoes 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.
- silverwind 2y agoNot sure what features those need, but at least the stack traces are correct in swc-node, so maybe worth a try.
- dimgl 2y agoWe have not seen this whatsoever. How big is your project? `tsx` is almost instantaneous in a server-side project of ours.
- silverwind 2y agoA 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 https://swc.rs/docs/benchmarks