Skip to content
0:00 / 0:00

#bun#nodejs#benchmark

Bun vs Node.js: Performance (Latency - Throughput - Saturation - Availability)

Anton Putra

122K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Anton Putra, Senior Software Engineer at Juniper Networks
  • Linked in the descriptionantonputra/tutorials
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

30K views2 years ago1 recommendation

Systems programmingWeb developmentPerformance and optimizationNode.js, Deno and BunWeb performance

Anton Putra compares the performance, latency, throughput, and saturation of Bun and Node.js under load.

👨‍💼📈 Mentorship/On-the-Job Support/Consulting - calendly.com/antonputra/youtube or me@antonputra.com ▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬ ► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience) ► Located in San Francisco Bay Area, CA (US citizen) ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬ ► LinkedIn: linkedin.com/in/anton-putra ► Twitter/X: twitter.com/antonvputra ► GitHub: github.com/antonputra ► Email: me@antonputra.com ▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬ Intro Tests Overview 1st Test 2nd Test ▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬ ► Original Source Code: github.com/antonputra/tutorials/tree/212/lessons/212 #nodejs #bun #kubernetes

Why it's here

1 person recommends this

What people say. Recommended as a benchmark demonstrating Bun's performance advantages over Node.js.

u/Ok-Commercial-4504in r/node • Recommends

So, what optimizations does Bun have that Node doesn't? It's well documented that Bun has pretty amazing performance (like this video). It somehow seems the runtime is sometimes 3x the performance of Node and Deno. So, what optimizations could Node implement to match the performance of Bun? Or more directly: what optimizations does Bun have that Node doesn't? I don't believe the answer is as simple as "Zig is faster than C++", so it must be something else...