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 is known for its extensive use of Rust's advanced features such as code generation and ensures that your web applications are type-safe and thread-safe.
This benchmark tests how fast a framework can perform concurrent HTTP requests, I/O operations, and JSON de/serialization.
MedianP99
Framework
Requests per second
Latency
Stability
Memory
Rust v1.74 / Rocket v0.5
13719
2.3 ms
53.12 %
6.3 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. Rust provides memory safety without using garbage collection, employing a unique system of ownership with rules that the compiler checks at compile time. This language is designed to create high-performance applications with a high degree of control over system resources and memory usage. Rust's rich type system and strict compile-time checks eliminate common bugs such as null pointer dereferencing and data races, making it ideal for use in everything from embedded devices to large-scale systems and complex software.

Rust web frameworks

MedianP99
Framework
Requests per second
Latency
Stability
Memory
Rust / Actix
15421
2.0 ms
55.18 %
5.7 MB
Rust / Hyper
15356
2.1 ms
52.74 %
5.4 MB
Rust / Axum
14730
2.2 ms
54.89 %
5.1 MB
Rust / Rocket
13719
2.3 ms
53.12 %
6.3 MB

© 2024 Tien Do Nam