The Computer Language
Benchmarks Game

Rust programs versus C gcc

by benchmark task performance

mandelbrot
source secs KB gz cpu cpu load
Rust 21.97 71,488 868 21.93 1% 1% 0% 100%
C gcc 22.37 31,904 694 22.36 1% 1% 1% 100%
pidigits
source secs KB gz cpu cpu load
Rust 2.52 8,068 1420 2.51 1% 0% 1% 100%
C gcc 2.50 1,992 448 2.50 2% 1% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Rust 6.95 209,356 669 6.92 0% 1% 1% 100%
C gcc 5.53 297,880 2579 5.50 2% 1% 1% 100%
binary-trees
source secs KB gz cpu cpu load
Rust 12.48 76,216 791 12.46 1% 1% 1% 100%
C gcc 9.58 100,796 906 9.57 1% 1% 1% 100%
reverse-complement
source secs KB gz cpu cpu load
Rust 1.07 267,324 1807 1.07 1% 0% 1% 100%
C gcc 0.62 125,340 812 0.62 3% 0% 0% 100%
fasta-redux
source secs KB gz cpu cpu load
Rust 2.86 5,912 1764 2.86 0% 2% 1% 100%
C gcc 1.57 552 1402 1.57 0% 1% 1% 100%
spectral-norm
source secs KB gz cpu cpu load
Rust 15.74 16,156 1107 15.52 1% 1% 1% 100%
C gcc 7.85 1,628 569 7.85 1% 1% 1% 100%
fasta
source secs KB gz cpu cpu load
Rust 5.71 5,928 1211 5.71 1% 1% 1% 100%
C gcc 2.79 640 1261 2.79 1% 1% 0% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Rust 49.64 16,228 1191 49.62 1% 1% 0% 100%
C gcc 24.19 636 1183 24.18 1% 1% 0% 100%
n-body
source secs KB gz cpu cpu load
Rust 24.40 5,920 1474 24.39 1% 0% 1% 100%
C gcc 10.01 740 1490 10.00 1% 1% 0% 100%
k-nucleotide
source secs KB gz cpu cpu load
  No program contribute your program
C gcc 0.30 460 1500 0.24 23% 7% 0% 96%
Rust

rustc 1.11.0 (9b21dcd6a 2016-08-15)

C gcc

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609