Sharkbench

Benchmarking programming languages and web frameworks

Rust Computation Benchmark

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.

Benchmarks

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.

OS: LinuxCPU: Intel Core Ultra 5 325Last Updated: 2026-10-05
Language
Time
Memory
Build Time
1.00 s
852.0 KB
3.02 s
1.01 s
536.0 KB
3.71 s
1.02 s
520.0 KB
3.14 s

Popular languages

How does Rust compare to other languages?
Language
Time
Memory
Build Time
1.00 s
852.0 KB
3.02 s
1.00 s
440.0 KB
3.26 s
1.16 s
5.6 MB
3.67 s
1.35 s
21.9 MB
15.21 s
1.37 s
1.4 MB
5.42 s
3.23 s
14.6 MB
0.89 s
67.88 s
7.5 MB
1.15 s
99.40 s
4.0 MB
1.26 s

© 2026 Tien Do Nam