Re:Bun 1.1
by __alexs on Tuesday April 02, 2024 @03:15AM
(#39903130)
ts-node has all of these features too?
[ Parent
| on HN ]
Yes, but it's slower. Here are the times for running a script that just prints hello.
$ time bun hello.ts
real 0m0.015s
user 0m0.008s
sys 0m0.008s
$ time ts-node hello.ts
real 0m0.727s
user 0m1.534s
sys 0m0.077s
Re:Bun 1.1
by tubthumper8 on Wednesday April 03, 2024 @09:55AM
(#39917526)
ts-node does type checking by default using `tsc`. Bun does not, so this isn't an equivalent comparison