The Computer Language
Benchmarks Game

Rust programs versus C gcc

by benchmark task performance

mandelbrot
source secs KB gz cpu cpu load
Rust 5.68 63,768 868 22.42 100% 100% 99% 98%
C gcc 5.92 32,904 694 22.77 100% 95% 95% 95%
pidigits
source secs KB gz cpu cpu load
Rust 1.76 6,372 1420 1.76 1% 1% 1% 100%
C gcc 1.73 1,992 448 1.73 2% 6% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Rust 2.72 221,864 669 6.21 45% 42% 100% 43%
C gcc 2.46 336,804 2579 5.81 74% 46% 70% 51%
fasta
source secs KB gz cpu cpu load
Rust 1.59 23,736 1887 4.74 72% 85% 72% 72%
C gcc 1.36 8,180 1993 5.26 97% 96% 100% 97%
binary-trees
source secs KB gz cpu cpu load
Rust 3.83 127,588 791 14.04 95% 93% 93% 87%
C gcc 3.26 156,840 906 10.12 59% 76% 78% 99%
reverse-complement
source secs KB gz cpu cpu load
Rust 0.72 262,516 1807 0.92 74% 29% 13% 21%
C gcc 0.53 251,672 741 0.77 50% 2% 81% 21%
spectral-norm
source secs KB gz cpu cpu load
Rust 3.51 36,716 1251 13.48 96% 97% 97% 96%
C gcc 1.98 1,868 569 7.88 100% 100% 99% 99%
fannkuch-redux
source secs KB gz cpu cpu load
Rust 16.73 20,684 1191 65.89 95% 100% 100% 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,332 1764 3.10 0% 1% 100% 1%
C gcc 1.55 796 1321 1.55 0% 1% 1% 99%
n-body
source secs KB gz cpu cpu load
Rust 24.12 6,340 1474 24.12 0% 1% 100% 0%
C gcc 9.56 1,008 1490 9.56 1% 100% 0% 1%
k-nucleotide
  No programs contribute your programs
Rust

rustc 1.8.0 (db2939409 2016-04-11)

C gcc

gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413