The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 2.81 211,044 804 4.30 19% 100% 18% 19%
Go 29.29 344,348 798 61.79 37% 59% 79% 38%
binary-trees
source secs mem gz cpu cpu load
Rust 3.98 213,448 717 14.66 92% 90% 90% 100%
Go 35.18 277,864 660 132.94 96% 94% 94% 95%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.20 155,200 1728 16.14 91% 54% 100% 71%
Go 14.79 149,212 1713 53.03 88% 90% 96% 87%
mandelbrot
source secs mem gz cpu cpu load
Rust 2.03 44,720 1332 8.00 99% 100% 99% 99%
Go 5.46 31,172 905 21.66 99% 100% 100% 99%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.33 18,048 817 9.26 100% 100% 100% 100%
Go 3.96 2,584 548 15.70 99% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
Rust 13.57 5,824 1474 13.56 1% 1% 100% 1%
Go 21.47 1,560 1200 21.47 100% 0% 1% 1%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.33 254,596 1324 0.62 31% 36% 100% 34%
Go 0.49 133,532 1278 0.87 76% 30% 27% 49%
fasta
source secs mem gz cpu cpu load
Rust 1.48 20,252 1887 4.60 83% 76% 76% 77%
Go 2.17 3,584 1344 5.84 59% 78% 70% 64%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 11.21 20,064 1020 43.78 100% 100% 95% 97%
Go 14.49 3,204 896 57.82 100% 100% 100% 100%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 7,892 1420 1.74 100% 1% 2% 1%
Go 2.02 10,744 603 2.02 2% 0% 5% 96%
Rust

rustc 1.21.0 (3b72af97e 2017-10-09)

Go

go version go1.9 linux/amd64