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.51 352,804 798 61.51 77% 49% 43% 40%
binary-trees
source secs mem gz cpu cpu load
Rust 4.27 184,600 714 15.84 98% 92% 92% 92%
Go 34.77 269,068 654 132.04 95% 97% 95% 95%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.30 140,364 1728 16.34 100% 86% 55% 70%
Go 16.08 149,180 1582 59.44 95% 90% 90% 97%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.90 38,724 1160 7.48 98% 98% 99% 98%
Go 5.64 31,312 894 22.41 99% 100% 99% 99%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.01 20,080 817 7.96 100% 100% 100% 100%
Go 3.96 2,148 548 15.71 100% 99% 99% 99%
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% 100% 0% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.80 20,028 1020 43.07 100% 100% 100% 100%
Go 15.81 1,372 900 62.92 100% 100% 99% 99%
fasta
source secs mem gz cpu cpu load
Rust 1.49 20,324 1887 4.55 75% 76% 75% 82%
Go 1.98 3,044 1344 5.65 75% 82% 47% 85%
pidigits
source secs mem gz cpu cpu load
Rust 1.75 6,280 1306 1.74 2% 1% 1% 100%
Go 2.02 8,588 603 2.02 100% 0% 1% 1%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.45 254,232 1324 0.76 25% 26% 28% 98%
Go 0.49 88,056 1278 0.87 27% 43% 28% 81%
Rust

rustc 1.16.0 (30cf806ef 2017-03-10)

Go

go version go1.8.1 linux/amd64