Sharkbench

Benchmarking programming languages and web frameworks

Nest: Express vs Fastify

Nest is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications. It is built with TypeScript and combines elements of Object Oriented Programming, Functional Programming, and Functional Reactive Programming. Nest provides an architecture inspired by Angular for structuring larger Node.js applications.
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

Fastify processes 1.70x requests per second compared to Express, a 69.86% improvement.
Mode
Requests per second
Latency
Stability
Memory
9164 (+69.86 %)
3.5 ms (-41.30 %)
65.32 % (+1.42 %)
66.7 MB (-36.82 %)
5395
5.9 ms
63.90 %
105.5 MB

All results

MedianP99
Framework
Requests per second
Latency
Stability
Memory
9164
3.5 ms
65.32 %
66.7 MB
5395
5.9 ms
63.90 %
105.5 MB
8557
3.7 ms
63.87 %
60.1 MB
5129
6.2 ms
61.09 %
78.1 MB
5050
5.8 ms
41.03 %
67.4 MB
3729
7.9 ms
51.67 %
92.4 MB
4375
6.4 ms
26.05 %
62.2 MB
3519
8.3 ms
34.06 %
69.2 MB

Popular web frameworks

How does Nest compare to other popular frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
21030
1.6 ms
71.96 %
8.5 MB
14707
1.2 ms
2.64 %
136.5 MB
9164
3.5 ms
65.32 %
66.7 MB
5766
5.5 ms
64.50 %
82.5 MB
5395
5.9 ms
63.90 %
105.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