Sharkbench

Benchmarking programming languages and web frameworks

Rust web frameworks

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.

Benchmarks

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 / 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