The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 3.05 188,644 804 4.48 31% 17% 85% 16%
Go 28.49 318,144 802 59.96 74% 48% 41% 48%
binary-trees
source secs mem gz cpu cpu load
Rust 4.02 167,776 721 14.63 89% 99% 91% 89%
Go 34.42 268,188 654 130.26 96% 94% 95% 94%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.06 137,864 1748 15.66 54% 97% 71% 89%
Go 14.98 147,704 1722 55.60 97% 88% 92% 95%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.97 13,340 1007 7.86 99% 99% 100% 100%
Go 5.48 30,704 905 21.74 100% 100% 99% 100%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.27 2,624 817 9.00 100% 99% 100% 100%
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,768 1480 13.57 100% 0% 0% 1%
Go 21.47 1,568 1200 21.47 78% 1% 1% 22%
fasta
source secs mem gz cpu cpu load
Rust 1.47 2,988 1906 4.55 83% 76% 76% 76%
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,784 1376 0.66 29% 29% 100% 28%
Go 0.54 132,404 1338 0.91 25% 28% 58% 60%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.59 1,776 1020 41.71 100% 99% 100% 95%
Go 14.44 1,560 900 57.53 100% 100% 100% 100%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,612 1366 1.74 2% 0% 0% 99%
Go 2.03 9,428 603 2.03 0% 0% 0% 100%
Rust

rustc 1.23.0 (766bd11c8 2018-01-01)

Go

go version go1.9 linux/amd64