Bun vs Deno: The Short Answer

Pick Bun for an existing Node.js codebase, or for any job where install time and cold starts get multiplied across hundreds of runs a day. Pick Deno when the code you run includes dependencies you have never read, which for most npm projects means all of them. Speed is the headline in every Bun vs Deno comparison. In our own testing it was also the least decisive factor once a real database entered the picture.

We have benchmarked these two runtimes twice on this site. The first run was on an M3 MacBook Pro for our original three-way runtime review. The second used Bun 1.3 and Deno 2.6 on an M4 Max and an AWS Graviton4 instance for the 2026 Bun, Deno and Node.js benchmark. This page puts only the Bun and Deno results side by side, then works out what the difference is worth in an app that does actual work.

Bun vs Deno Benchmarks: Both of Our Runs

TestBunDenoBun's lead
Hello-world HTTP, M3 run (bombardier)142,000 req/s95,000 req/sabout 49%
Hello-world HTTP, 2026 run114,500 req/s62,100 req/sabout 84%
Cold start, M3 run6ms18ms3x
Cold start, 2026 run4ms15ms3.75x
Read 10,000 small files120ms280ms2.3x
Parse 100MB of JSON85ms195ms2.3x
Install 100 dependencies0.8s8.2sabout 10x
REST API with PostgreSQL and JWT auth12,400 req/s10,600 req/sabout 17%

Bun won every row. Nobody who has followed either project will be surprised.

The two hello-world rows deserve a second look, though. Same two runtimes, same kind of request, and the lead came out at 49% in one run and 84% in the other, because the hardware changed between them and so did both runtime versions. A synthetic HTTP test measures the runtime's server loop and almost nothing else, so small changes in that loop swing the result hard. Any article that quotes a single throughput multiple as the Bun vs Deno number (ours included) is quoting one weather reading.

What the Speed Gap Is Worth Once a Database Gets a Vote

The bottom row of that table is the one we would put on a whiteboard. Our test API ran an Express-compatible framework against PostgreSQL through a connection pool, with JWT auth and JSON serialization on every request. Bun served 12,400 requests per second at a 4.1ms average response. Deno served 10,600 at 4.8ms.

That gap is 0.7 milliseconds per request.

The rest of each response belongs to the Postgres round trip and your own handler code, and neither runtime makes a query plan any faster. If your service idles along at modest CPU, a 17% throughput edge will never show up on a dashboard. If it runs hot across a fleet of instances, 17% becomes a real line on the hosting bill, and that is the one situation where we would let raw request speed make the call.

Cold starts shrink the same way. Bun's 11 to 12 millisecond advantage is easy to feel in a CLI you run forty times an hour. In serverless it sits next to platform overhead that is much larger: in our Supabase vs Firebase vs Amplify benchmark, Supabase Edge Functions (which run on Deno) averaged an 85ms cold start in US-West-2, against 210ms for AWS Lambda on Node.js 20. The spread between those two platforms is 125ms, roughly ten times the distance between Bun and Deno on a bare cold start.