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
  • НаукаНаука

Комментарии • 21

  • @rafael86ny
    @rafael86ny Год назад

    Fast, straightforward, and informative--I love your style!

  • @steveoc64
    @steveoc64 Год назад +2

    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.

  • @vakhtangnodadze4802
    @vakhtangnodadze4802 Год назад

    Great video. Thanks for the update Chaim!

  • @gitamgadtaula1772
    @gitamgadtaula1772 Год назад +2

    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.

  • @brentjackson6966
    @brentjackson6966 Год назад

    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)

    • @CodingWithChaim
      @CodingWithChaim  Год назад

      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.

  • @shahintamjidi
    @shahintamjidi Год назад

    Hi, I cant find any available time too book a 1v1 session with you. Are you still doing this 1v1 meetings?

    • @CodingWithChaim
      @CodingWithChaim  Год назад

      You can find my email in the bio, feel free to email me and we can set something up

  • @imSexySin
    @imSexySin Год назад +1

    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!

  • @abc_cba
    @abc_cba Год назад +1

    I wish they work on its development for Windows instead of using the Linux for it.
    :(

    • @CodingWithChaim
      @CodingWithChaim  Год назад

      Seems like its on their roadmap stackoverflow.com/a/72899230/6356919

  • @hackdonalds
    @hackdonalds 3 месяца назад

    Bun is not a framework ...
    Quits the video on 10th second

  • @TroenderTass
    @TroenderTass Год назад

    It's not fast. It's all manipulation. You can't make javascript fast, plain and simple.

    • @CodingWithChaim
      @CodingWithChaim  Год назад

      How then can we explain the amount of requests per second bun can handle vs the amount of requests per second node can handle?

    • @TroenderTass
      @TroenderTass Год назад

      @@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.

    • @mendeslnr
      @mendeslnr Год назад

      Lol how can someone be this dense

    • @ok-hc4he
      @ok-hc4he Год назад +8

      Do you even know the f you're talking about?

    • @newwonderer
      @newwonderer Год назад

      get lost boomer