This post presents a detailed HttpArena benchmark analysis of Bun's HTTP server performance across multiple real-world test scenarios.
•Bun ranks #1 in mixed workloads (JSON + compression + static files + DB queries) with 52,274 rps and 6.1 GiB RAM, over 13x more memory-efficient than go-fasthttp
•Compression performance ranks #2/49, using 3.3 GiB vs Deno's 12.8 GiB for similar throughput
•JSON serialization ranks #9/50 at 708,960 rps, approximately 20% faster than Node.js and 23% faster than Fastify
•Bun ranks #41/51 in pipelining (491,345 rps) — Node.js is nearly 5x faster — because Bun processes pipelined requests one-at-a-time per connection
•Upload handling ranks #42/48 with only 264 rps at 256 connections; Node.js is 3.5x faster, suggesting overhead in request body buffering
•HTTP/2 support exists but Node.js beats Bun by ~4x; framework overhead on Bun (Elysia, Hono) is only 5-20% vs 76% for Express over Node
This summary was automatically generated by AI based on the original article and may not be fully accurate.