The Computer Language
Benchmarks Game

Rust programs versus C gcc

by benchmark task performance

pidigits
source secs KB gz cpu cpu load
Rust 2.52 7,972 1420 2.51 1% 2% 4% 100%
C gcc 2.50 1,972 448 2.50 1% 0% 0% 100%
mandelbrot
source secs KB gz cpu cpu load
Rust 22.95 71,296 868 22.92 0% 1% 1% 100%
C gcc 22.37 32,124 694 22.36 0% 1% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Rust 6.84 215,580 669 6.82 1% 1% 0% 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.56 76,224 791 12.54 0% 1% 1% 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 265,400 1807 1.07 0% 0% 1% 100%
C gcc 0.63 125,280 812 0.62 0% 3% 0% 98%
fasta-redux
source secs KB gz cpu cpu load
Rust 2.83 5,912 1764 2.83 0% 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,196 1251 15.53 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 50.15 16,188 1191 50.12 0% 3% 1% 100%
C gcc 24.20 640 1183 24.19 1% 1% 1% 100%
fasta
source secs KB gz cpu cpu load
Rust 5.77 5,944 1211 5.76 1% 2% 1% 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,996 1799 24.04 0% 1% 1% 100%
C gcc 10.01 752 1490 10.01 0% 1% 1% 100%
k-nucleotide
  No programs contribute your programs
Rust

rustc 1.10.0 (cfcb716cf 2016-07-03)

C gcc

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)