You May Wanna Switch to Bun....Here's Why
HTML-код
- Опубликовано: 13 сен 2022
- Get 1 on 1 mentorship with me! ▶▶▶calendly.com/codingwithchaim/...
In this video I compare bun and node to see if bun is as fast as advertised. I build a simple express app using both node and bun, and then I use a tool called oha to fire off a huge amount of requests to each one of my servers. Lets see which one can handle more requests per second.
Oha tool: github.com/hatoo/oha - Наука
Fast, straightforward, and informative--I love your style!
Bun's killer feature is that the author is super easy to talk to, and his code (written in Zig) is dead easy to understand what it's doing.
Other JS runtimes are unapproachable, or involve mountains of garbage code that are impossible to follow.
Bun's codebase is clean and nice.
Great video. Thanks for the update Chaim!
Hey does it mean the Electron apps or native apps are also going to be faster? If mobile/desktop apps built with Js can be twice faster than they are now, JS will rule the world as a universal language.
From my own (not at all comprehensive) testing, Bun is faster running in a Linux Mint 21 VM than Node is running natively on Windows 11. And Bun gives you built in TypeScript support!
It seems too good to be true. I keep waiting for the other shoe to drop. Like maybe bun doesn't support more than 64 variables at once or all disk writes go straight to /dev/null or something.
I thought the days of getting orders-of-magnitude speed increases from hand optimising code and rewriting in assembly were behind us but with Bun it seems not. (And yes, I know Bun wasn't written in ASM)
Yea I honestly did not expect the results I got. Kinda excited to try and build a more real app using bun and see how it holds up.
Hi, I cant find any available time too book a 1v1 session with you. Are you still doing this 1v1 meetings?
You can find my email in the bio, feel free to email me and we can set something up
You are awesome! How long have you been on your coding journey? I just started, I cant wait to become as knowledgeable as you are. Thank you for the great content!
I wish they work on its development for Windows instead of using the Linux for it.
:(
Seems like its on their roadmap stackoverflow.com/a/72899230/6356919
Bun is not a framework ...
Quits the video on 10th second
It's not fast. It's all manipulation. You can't make javascript fast, plain and simple.
How then can we explain the amount of requests per second bun can handle vs the amount of requests per second node can handle?
@@CodingWithChaim It doesn't matter, cause everything from accessing databases, calling external api's and doing anything would not be faster than the libraries and services you are using.
Lol how can someone be this dense
Do you even know the f you're talking about?
get lost boomer