The Computer Language
Benchmarks Game

Rust programs versus C gcc

by benchmark task performance

mandelbrot
source secs KB gz cpu cpu load
Rust 21.90 71,396 868 21.86 1% 1% 0% 100%
C gcc 22.37 32,124 694 22.36 0% 1% 1% 100%
pidigits
source secs KB gz cpu cpu load
Rust 2.51 8,056 1420 2.51 1% 1% 1% 100%
C gcc 2.50 1,972 448 2.50 1% 0% 0% 100%
regex-dna
source secs KB gz cpu cpu load
Rust 6.82 213,460 669 6.80 0% 1% 1% 100%
C gcc 5.53 295,572 2579 5.51 0% 1% 1% 100%
binary-trees
source secs KB gz cpu cpu load
Rust 12.44 76,220 791 12.43 0% 1% 0% 100%
C gcc 9.62 100,812 906 9.61 0% 1% 1% 100%
reverse-complement
source secs KB gz cpu cpu load
Rust 1.08 267,420 1807 1.07 0% 4% 0% 100%
C gcc 0.78 251,604 741 0.77 6% 0% 0% 100%
fasta-redux
source secs KB gz cpu cpu load
Rust 2.83 5,944 1764 2.83 1% 1% 1% 100%
C gcc 1.57 568 1402 1.56 0% 1% 2% 99%
spectral-norm
source secs KB gz cpu cpu load
Rust 15.74 16,176 1251 15.52 1% 0% 1% 100%
C gcc 7.85 1,628 569 7.85 0% 1% 1% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Rust 49.77 16,004 1191 49.75 1% 1% 1% 100%
C gcc 24.20 640 1183 24.19 1% 1% 1% 100%
fasta
source secs KB gz cpu cpu load
Rust 5.78 5,940 1211 5.78 1% 1% 0% 100%
C gcc 2.77 644 1261 2.77 0% 1% 2% 100%
n-body
source secs KB gz cpu cpu load
Rust 24.05 5,968 1799 24.04 0% 1% 2% 100%
C gcc 10.01 752 1490 10.01 0% 1% 1% 100%
k-nucleotide
  No programs contribute your programs
Rust

rustc 1.9.0 (e4e8b6668 2016-05-18)

C gcc

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)