Sharkbench

Benchmarking programming languages and web frameworks

Fastify: Bun vs Node.js

Fastify is a high-performance Node.js web framework focused on providing low latency and high throughput by leveraging Node.js features and asynchronous I/O. It is known for its extensible plugin architecture and efficient handling of JSON-based data. Fastify offers a modern alternative to Express with better performance characteristics.
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.21x requests per second compared to Node.js, a 121.45% improvement.
Mode
Requests per second
Latency
Stability
Memory
20683 (+121.45 %)
1.3 ms (-62.83 %)
9.20 % (-53.99 %)
49.8 MB (-12.67 %)
9340
3.4 ms
63.19 %
57.0 MB

All results

MedianP99
Framework
Requests per second
Latency
Stability
Memory
9340
3.4 ms
63.19 %
57.0 MB
9199
3.5 ms
64.73 %
54.9 MB
5179
5.7 ms
39.80 %
59.5 MB
4622
6.3 ms
31.28 %
54.0 MB
4847
6.0 ms
39.83 %
57.8 MB
20683
1.3 ms
9.20 %
49.8 MB

Popular web frameworks

How does Fastify compare to other popular frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
21030
1.6 ms
71.96 %
8.5 MB
20683
1.3 ms
9.20 %
49.8 MB
14707
1.2 ms
2.64 %
136.5 MB
9340
3.4 ms
63.19 %
57.0 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