Sharkbench

Benchmarking programming languages and web frameworks

Rocket (Rust)

Rocket is a web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility or type safety. It extensively uses Rust's advanced features such as code generation to ensure that applications are both type-safe and thread-safe. Rocket emphasizes developer ergonomics alongside performance.
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
MedianP99
Framework
Requests per second
Latency
Stability
Memory
18047
1.7 ms
65.04 %
6.4 MB

About Rust

Paradigm

Imperative, Functional, Concurrent

Execution

Compiled

Typing

Static

Null Safety

YES

Memory Management

Ownership System

Rust is a modern, systems-level programming language focused on safety, speed, and concurrency sponsored by Mozilla Research. It provides memory safety without garbage collection through its unique ownership system with compile-time checks. Rust is designed for creating high-performance applications with strict control over system resources.

Rust web frameworks

How does Rocket compare other Rust frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
21965
1.4 ms
66.60 %
16.6 MB
21781
1.5 ms
75.67 %
8.6 MB
21030
1.6 ms
71.96 %
8.5 MB
20047
1.6 ms
73.97 %
4.8 MB
18047
1.7 ms
65.04 %
6.4 MB

Popular web frameworks

How does Rocket compare to other popular frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
21030
1.6 ms
71.96 %
8.5 MB
18047
1.7 ms
65.04 %
6.4 MB
14707
1.2 ms
2.64 %
136.5 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