Bun vs Deno vs Node.js:2026 年服务端 JavaScript 运行时基准测试

Bun vs Deno vs Node.js: 2026 Server-Side JavaScript Runtime Benchmark

| iDev PR | 2026-08-30T09:21:44

基于真实业务场景对 Bun 1.2、Deno 2.1 和 Node.js 22 进行全面基准测试,从 HTTP 性能、冷启动、内存占用到开发体验一一对比。

A comprehensive benchmark of Bun 1.2, Deno 2.1, and Node.js 22 across real-world business scenarios, comparing HTTP performance, cold start, memory footprint, and developer experience.

运行时之战的最新战况服务端 JavaScript 运行时领域在 2026 年形成了三足鼎立的格局。我们基于 iDev 的真实业务场景,对三大运行时进行了详尽的基准测试。测试环境测试在配备 AMD EPYC 7763 处理器和 64GB 内存的服务器上进行,操作系统为 Ubuntu 24.04 LTS。三个运行时版本分别为 Bun 1.2.3、Deno 2.1.4 和 Node.js 22.8.0。HTTP 吞吐量Bun:每秒处理 182,000 请求,延迟 P99 为 1.2msDeno:每秒处理 143,000 请求,延迟 P99 为 2.1msNode.js:每秒处理 98,000 请求,延迟 P99 为 3.8ms冷启动时间对于一个包含 50 个依赖的典型 Web 应用:Bun:28ms(得益于内置打包器的预编译优化)Deno:85ms(V8 快照机制发挥作用)Node.js:210ms(CommonJS 模块解析开销较大)内存占用处理 10,000 个并发 WebSocket 连接时的 RSS 内存占用:Bun 为 68MB,Deno 为 92MB,Node.js 为 145MB。Bun 的 JavaScriptCore 引擎在内存效率方面优势明显。开发体验评估Node.js 依然拥有最成熟的生态系统和最广泛的社区支持。Deno 的内置工具链(格式化、测试、lint)体验最佳。Bun 的极致性能适合对延迟敏感的场景。建议团队根据项目特点选择:新项目可以优先考虑 Bun 或 Deno,存量项目继续使用 Node.js 仍然是安全的选择。


Latest Status of the Runtime WarsThe server-side JavaScript runtime landscape in 2026 has formed a three-way standoff. We conducted exhaustive benchmarks across all three runtimes based on real-world business scenarios at iDev.Test EnvironmentTests were conducted on a server equipped with an AMD EPYC 7763 processor and 64GB RAM, running Ubuntu 24.04 LTS. Runtime versions were Bun 1.2.3, Deno 2.1.4, and Node.js 22.8.0.HTTP ThroughputBun: 182,000 requests per second, P99 latency of 1.2msDeno: 143,000 requests per second, P99 latency of 2.1msNode.js: 98,000 requests per second, P99 latency of 3.8msCold Start TimeFor a typical web application with 50 dependencies:Bun: 28ms (benefiting from built-in bundler pre-compilation optimization)Deno: 85ms (V8 snapshot mechanism at work)Node.js: 210ms (CommonJS module resolution overhead is significant)Memory FootprintRSS memory usage when handling 10,000 concurrent WebSocket connections: Bun at 68MB, Deno at 92MB, Node.js at 145MB. Bun's JavaScriptCore engine shows clear advantages in memory efficiency.Developer Experience AssessmentNode.js still has the most mature ecosystem and broadest community support. Deno's built-in toolchain (formatting, testing, linting) offers the best experience. Bun's extreme performance suits latency-sensitive scenarios. Teams should choose based on project characteristics: new projects can prioritize Bun or Deno, while continuing with Node.js for existing projects remains a safe choice.

← Back to News