The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 3.00 196,176 804 4.38 85% 16% 30% 16%
Go 28.49 318,144 802 59.96 74% 48% 41% 48%
binary-trees
source secs mem gz cpu cpu load
Rust 3.95 171,796 721 14.30 89% 90% 88% 97%
Go 34.42 268,188 654 130.26 96% 94% 95% 94%
k-nucleotide
source secs mem gz cpu cpu load
Rust 4.98 137,872 1748 15.58 72% 88% 57% 98%
Go 14.98 147,704 1722 55.60 97% 88% 92% 95%
mandelbrot
source secs mem gz cpu cpu load
Rust 2.02 34,644 1332 8.00 99% 99% 100% 99%
Go 5.48 30,704 905 21.74 100% 100% 99% 100%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.32 2,568 817 9.23 100% 100% 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,728 1480 13.56 0% 0% 1% 100%
Go 21.47 1,568 1200 21.47 78% 1% 1% 22%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.36 250,724 1376 0.65 26% 95% 35% 27%
Go 0.54 132,404 1338 0.91 25% 28% 58% 60%
fasta
source secs mem gz cpu cpu load
Rust 1.48 2,980 1906 4.59 76% 78% 78% 83%
Go 2.17 3,404 1358 5.83 58% 69% 66% 77%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 11.04 1,768 1020 43.14 96% 99% 98% 99%
Go 14.44 1,560 900 57.53 100% 100% 100% 100%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,420 1366 1.74 100% 1% 0% 1%
Go 2.03 9,428 603 2.03 0% 0% 0% 100%
Rust

rustc 1.21.0 (3b72af97e 2017-10-09)

Go

go version go1.9 linux/amd64