The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 2.99 192,244 804 4.36 31% 16% 85% 16%
Go 28.49 318,144 802 59.96 74% 48% 41% 48%
binary-trees
source secs mem gz cpu cpu load
Rust 3.88 173,136 721 14.24 90% 91% 100% 90%
Go 34.42 268,188 654 130.26 96% 94% 95% 94%
k-nucleotide
source secs mem gz cpu cpu load
Rust 4.86 137,656 1748 15.42 57% 100% 75% 88%
Go 14.98 147,704 1722 55.60 97% 88% 92% 95%
mandelbrot
source secs mem gz cpu cpu load
Rust 2.02 33,572 1332 8.00 99% 100% 99% 99%
Go 5.48 30,704 905 21.74 100% 100% 99% 100%
spectral-norm
source secs mem gz cpu cpu load
Rust 1.98 2,580 817 7.90 100% 99% 100% 99%
Go 3.94 2,320 548 15.69 99% 100% 100% 99%
n-body
source secs mem gz cpu cpu load
Rust 13.57 1,756 1480 13.57 0% 1% 1% 100%
Go 21.47 1,568 1200 21.47 78% 1% 1% 22%
fasta
source secs mem gz cpu cpu load
Rust 1.47 2,992 1906 4.58 76% 76% 83% 77%
Go 2.17 3,404 1358 5.83 58% 69% 66% 77%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.37 250,708 1376 0.66 100% 28% 28% 31%
Go 0.54 132,404 1338 0.91 25% 28% 58% 60%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.57 1,804 1020 41.41 99% 100% 100% 93%
Go 14.44 1,560 900 57.53 100% 100% 100% 100%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,532 1366 1.74 100% 1% 0% 2%
Go 2.03 9,428 603 2.03 0% 0% 0% 100%
Rust

rustc 1.22.1 (05e2e1c41 2017-11-22)

Go

go version go1.9 linux/amd64