The Q6600
Benchmarks Game

C gcc versus Rust fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

regex-redux
source secs mem gz busy cpu load
C gcc 1.42 152,192 1397 3.40 100% 48% 48% 44%
Rust 2.20 153,504 986 3.23 15% 32% 84% 16%
fannkuch-redux
source secs mem gz busy cpu load
C gcc 8.73 696 910 34.46 100% 95% 100% 100%
Rust 10.06 1,020 1016 39.36 93% 100% 100% 99%
k-nucleotide
source secs mem gz busy cpu load
C gcc 4.84 130,192 1506 16.00 98% 83% 63% 87%
Rust 5.21 135,388 1841 15.94 82% 54% 100% 70%
mandelbrot
source secs mem gz busy cpu load
C gcc 1.64 27,024 1135 6.53 99% 99% 100% 100%
Rust 1.70 32,656 1332 6.70 98% 98% 99% 98%
fasta
source secs mem gz busy cpu load
C gcc 1.46 2,948 2268 5.84 100% 99% 100% 99%
Rust 1.51 2,180 1906 4.66 76% 76% 83% 74%
pidigits
source secs mem gz busy cpu load
C gcc 1.75 2,608 452 1.80 67% 0% 2% 33%
Rust 1.75 3,012 1366 1.78 1% 100% 1% 0%
spectral-norm
source secs mem gz busy cpu load
C gcc 1.98 988 569 7.89 99% 99% 100% 99%
Rust 1.97 2,440 1126 7.86 100% 99% 99% 99%
binary-trees
source secs mem gz busy cpu load
C gcc 3.59 168,896 809 11.86 77% 74% 98% 82%
Rust 3.48 199,856 721 12.62 88% 100% 87% 88%
reverse-complement
source secs mem gz busy cpu load
C gcc 1.92 551,900 820 2.58 20% 99% 14% 1%
Rust 1.69 994,988 1330 2.95 26% 45% 79% 24%
n-body
source secs mem gz busy cpu load
C gcc 7.30 8 1391 7.41 0% 1% 100% 0%
Rust 5.98 688 1753 6.02 0% 1% 100% 0%
C gcc

gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0

Rust

rustc 1.44.0 (49cae5576 2020-06-01)
LLVM version: 9.0