The Computer Language
Benchmarks Game

Rust programs versus C gcc

by benchmark task performance

mandelbrot
source secs KB gz cpu cpu load
Rust 5.60 69,452 868 22.21 100% 100% 99% 100%
C gcc 5.92 32,904 694 22.77 100% 95% 95% 95%
pidigits
source secs KB gz cpu cpu load
Rust 1.74 8,160 1420 1.74 100% 1% 1% 1%
C gcc 1.73 1,992 448 1.73 2% 6% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Rust 2.58 226,092 669 5.56 100% 40% 41% 39%
C gcc 2.46 336,804 2579 5.81 74% 46% 70% 51%
fasta
source secs KB gz cpu cpu load
Rust 1.60 18,824 1887 4.72 84% 72% 72% 71%
C gcc 1.36 8,180 1993 5.26 97% 96% 100% 97%
binary-trees
source secs KB gz cpu cpu load
Rust 4.17 128,036 791 15.02 98% 95% 93% 77%
C gcc 3.26 156,840 906 10.12 59% 76% 78% 99%
fannkuch-redux
source secs KB gz cpu cpu load
Rust 14.27 20,332 1191 56.09 99% 100% 95% 100%
C gcc 8.97 1,588 910 35.14 99% 95% 100% 99%
fasta-redux
source secs KB gz cpu cpu load
Rust 3.11 6,052 1764 3.11 0% 4% 100% 0%
C gcc 1.55 796 1321 1.55 0% 1% 1% 99%
spectral-norm
source secs KB gz cpu cpu load
Rust 4.00 14,360 1251 15.49 98% 99% 98% 99%
C gcc 1.98 1,868 569 7.88 100% 100% 99% 99%
reverse-complement
source secs KB gz cpu cpu load
Rust 0.94 265,628 1807 1.20 14% 0% 100% 18%
C gcc 0.42 145,928 812 0.58 24% 27% 0% 98%
n-body
source secs KB gz cpu cpu load
Rust 24.11 6,048 1474 24.10 1% 100% 0% 0%
C gcc 9.56 1,008 1490 9.56 1% 100% 0% 1%
k-nucleotide
  No programs contribute your programs
Rust

rustc 1.10.0 (cfcb716cf 2016-07-03)

C gcc

gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413