Behind The Scenes of Bun Install | Bun Blog
Running bun install is fast, very fast. On average, it runs ~7× faster than npm, ~4× faster than pnpm, and ~17× faster than yarn. The difference is especially noticeable in large codebases. What used to take minutes now takes (milli)seconds. These aren't just cherry-picked benchmarks. Bun is fast because it treats package installation as a systems programming problem, not a JavaScript problem. In this post we’ll explore what that means: from minimizing syscalls and caching manifests as binary, to optimizing tarball extraction, leveraging OS-native file copying, and scaling across CPU cores. But to understand why this matters, we first have to take a small step back in time. It's the year 2009. You're installing jQuery from a .zip file, your iPhone 3GS has 256MB of RAM. GitHub was just a year old, SSDs cost $700 for 256GB. Your laptop's 5400RPM hard drive maxes out at 100MB/s, and "broadband" means 10 Mbps (if you're lucky). But more importantly: Node.js just launched! Ryan Dahl is on s
Running bun install is fast, very fast. On average, it runs ~7× faster than npm, ~4× faster than pnpm, and ~17× faster than yarn. The difference is especially noticeable in large codebases. What used to take minutes now takes (milli)seconds. These aren't just cherry-picked benchmarks. Bun is fast because it treats package installation as a systems programming problem , not a JavaScript problem. In this post we’ll explore what that means: from minimizing syscalls and caching manifests as binary, to optimizing tarball extraction, leveraging OS-native file copying, and scaling across CPU cores. B
Explore this link on the map →saved by
related reading
- GitHub - oven-sh/bun: Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one · GitHubgithub.com
- Welcome to Bun - Bunbun.sh
- Rewriting Bun in Rust | Bun Blogbun.com
- NYSRGnotes.ekzhang.com
- How's Linear so fast? A technical breakdownperformance.dev
- abseil / Performance Hintsabseil.io
- Populating the page: how browsers work - Performance | MDNdeveloper.mozilla.org
- The Conductor Rewrite: What They Changed to Make It Fastperformance.dev
- uv: An extremely Fast Python Package Manager :: Jane Streetjanestreet.com
- NPM Install Everything, and the Complete and Utter Chaos That Followsboehs.org
- The emperor’s new clothes were built with Node.js | Notesnotes.ericjiang.com
- How uv got so fast | Andrew Nesbittnesbitt.io