The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 3.28 222,916 804 6.46 33% 100% 32% 35%
Go 29.76 353,332 798 62.56 50% 67% 53% 41%
binary-trees
source secs mem gz cpu cpu load
Rust 4.27 184,600 714 15.84 98% 92% 92% 92%
Go 34.64 274,340 660 132.43 95% 96% 97% 96%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.90 38,724 1160 7.48 98% 98% 99% 98%
Go 5.64 31,052 894 22.41 99% 99% 99% 100%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.30 140,364 1728 16.34 100% 86% 55% 70%
Go 15.02 149,248 1713 56.88 92% 94% 97% 96%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.36 14,036 1050 9.04 99% 99% 99% 99%
Go 3.95 2,156 548 15.70 100% 99% 99% 100%
n-body
source secs mem gz cpu cpu load
Rust 13.08 3,676 1799 13.08 1% 1% 100% 1%
Go 21.52 832 1310 21.52 1% 1% 1% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.80 20,028 1020 43.07 100% 100% 100% 100%
Go 15.84 1,384 900 63.01 99% 100% 100% 100%
fasta
source secs mem gz cpu cpu load
Rust 1.49 20,324 1887 4.55 75% 76% 75% 82%
Go 1.98 3,312 1344 5.63 60% 71% 78% 78%
pidigits
source secs mem gz cpu cpu load
Rust 1.75 6,280 1306 1.74 2% 1% 1% 100%
Go 2.04 10,560 603 2.03 11% 10% 100% 1%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.45 254,232 1324 0.76 25% 26% 28% 98%
Go 0.48 88,820 1278 0.86 32% 48% 63% 44%
Rust

rustc 1.16.0 (30cf806ef 2017-03-10)

Go

go version go1.8 linux/amd64