Sharkbench

Benchmarking programming languages and web frameworks

Koa: Bun vs Deno vs Node.js

Koa is a lightweight and expressive web framework for Node.js created by the team behind Express. It leverages JavaScript's async functions to eliminate callbacks and improve error handling. Koa provides an elegant middleware architecture that processes requests downstream and manipulates responses upstream. Unlike Express, Koa doesn't bundle any middleware in its core or provide built-in routing, emphasizing modularity and giving developers greater flexibility in their component choices.
This benchmark tests how fast a framework can perform concurrent HTTP requests, I/O operations, and JSON de/serialization.

OS: Linux/DockerCPU: Ryzen 7 7800X3DLast Updated: 2025-05-04

Comparison

Bun processes 2.87x requests per second compared to Deno, a 186.76% improvement.
Mode
Requests per second
Latency
Stability
Memory
19821 (+124.52 %)
1.3 ms (-64.66 %)
7.41 % (-57.43 %)
52.7 MB (-1.05 %)
8828
3.6 ms
64.84 %
53.3 MB
6912 (-21.70 %)
4.4 ms (+23.28 %)
51.36 % (-13.48 %)
129.7 MB (+143.57 %)

All results

MedianP99
Framework
Requests per second
Latency
Stability
Memory
8828
3.6 ms
64.84 %
53.3 MB
8662
3.7 ms
64.77 %
61.7 MB
8625
3.7 ms
64.66 %
51.4 MB
8376
3.8 ms
65.78 %
54.3 MB
6912
4.4 ms
51.36 %
129.7 MB
6921
4.4 ms
49.87 %
124.0 MB
19821
1.3 ms
7.41 %
52.7 MB
20016
1.3 ms
7.81 %
52.6 MB

Popular web frameworks

How does Koa compare to other popular frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
21030
1.6 ms
71.96 %
8.5 MB
19821
1.3 ms
7.41 %
52.7 MB
14707
1.2 ms
2.64 %
136.5 MB
8828
3.6 ms
64.84 %
53.3 MB
6912
4.4 ms
51.36 %
129.7 MB
5766
5.5 ms
64.50 %
82.5 MB
3546
1.0 ms
1.14 %
16.7 MB
1185
21.0 ms
21.21 %
41.2 MB
1105
1.7 ms
1.67 %
596.8 MB
1092
7.7 ms
9.22 %
90.3 MB
950
8.8 ms
10.33 %
130.1 MB
299
101.7 ms
56.47 %
84.2 MB

© 2025 Tien Do Nam