language-bench

Rust

Rust compiled ahead-of-time by rustc (LLVM). Memory safety without a garbage collector.

www.rust-lang.org ↗
Overall speed rank
-
no data yet
Latest release
1.100
7 tracked releases since 2022
Strongest on
-
Weakest on
-

Performance by problem

Newest release (1.100), default build (rustc -C opt-level=3). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Build settings

rustc -C opt-level=3 default

Equivalent to cargo build --release with the default codegen settings.

mkdir -p {bin}.d && cp {harness}/harness.rs {bin}.d/main.rs && cp {src}/main.rs {bin}.d/problem.rs && rustc --edition 2021 -C opt-level=3 -o {bin} {bin}.d/main.rs{bin}

rustc -C opt-level=3 -C target-cpu=native

Optimised for the benchmark CPU.

mkdir -p {bin}.d && cp {harness}/harness.rs {bin}.d/main.rs && cp {src}/main.rs {bin}.d/problem.rs && rustc --edition 2021 -C opt-level=3 -C target-cpu=native -o {bin} {bin}.d/main.rs{bin}

rustc -C opt-level=3 -C codegen-units=1 -C lto

Single codegen unit with link-time optimisation.

mkdir -p {bin}.d && cp {harness}/harness.rs {bin}.d/main.rs && cp {src}/main.rs {bin}.d/problem.rs && rustc --edition 2021 -C opt-level=3 -C codegen-units=1 -C lto -o {bin} {bin}.d/main.rs{bin}

Every release (default build)

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Speed across releases

Did Rust get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.

No benchmark sessions have been recorded yet.

The first scheduled GitHub Actions run will publish real measurements here. Everything on this page is computed from raw iterations in data/.

Release highlights

  1. Rust 1.100 2026-11-09
  2. Rust 1.99 2026-10-01
    Rust 1.99 release
  3. Rust 1.93 2026-01-19
  4. Rust 1.84 2025-01-07
  5. Rust 1.76 2024-02-04
  6. Rust 1.67 2023-01-24
  7. Rust 1.63 2022-08-08

Badge

Show this language's overall rank in your README or website:

PreviewRust rank on language-bench
Markdown[![Rust on language-bench](https://stijnris.github.io/language-bench/badges/rust.svg)](https://stijnris.github.io/language-bench/languages/rust/)
HTML<a href="https://stijnris.github.io/language-bench/languages/rust/"><img src="https://stijnris.github.io/language-bench/badges/rust.svg" alt="Rust on language-bench"></a>