Sharkbench

Benchmarking programming languages and web frameworks

Ever wondered how fast your favorite programming language
or web framework is compared to others? Let's find out!

But don't forget, performance is not everything...

Web frameworks

This benchmark tests how fast a framework can perform concurrent HTTP requests, I/O operations, and JSON de/serialization.
Framework
Requests per second
Latency
Memory
Rust / Axum
14730
2.2 ms
5.1 MB
Java (Temurin) / Spring Boot (MVC)
8951
1.7 ms
205.4 MB
JavaScript (Node.js) / Express
6799
4.5 ms
63.1 MB
Go / Gin
5800
2.0 ms
16.3 MB
Python / FastAPI (Uvicorn)
1422
19.4 ms
42.6 MB

Computation

This benchmark tests how fast a programming language can perform mathematical computations without any I/O or memory allocation. We are using the Leibniz formula to approximate the value of PI.
Please note that the memory usage also includes the memory used by the HTTP server. Ideally, the most lightweight HTTP server should be used to measure the raw memory usage of the runtime.
Language
Time
Memory
Rust
1.05 s
376.0 KB
C (GCC)
1.23 s
348.0 KB
Java (Temurin)
1.63 s
20.2 MB
JavaScript (Node.js)
1.93 s
10.6 MB
Python
126.53 s
13.6 MB

© 2024 Tien Do Nam