News for hackers. Stuff that matters.
Re:Bun 1.1 by __alexs on Tuesday April 02, 2024 @03:15AM (#39903130)
ts-node has all of these features too?
Re:Bun 1.1 by xdennis on Tuesday April 02, 2024 @05:31AM (#39903830)
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
Re:Bun 1.1 by __alexs on Thursday April 04, 2024 @12:28PM (#39932596)
Now try with SWC enabled.