The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

binary-trees
source secs mem gz cpu cpu load
Rust 4.37 178,280 721 15.88 89% 90% 99% 88%
Go 28.80 434,632 654 109.58 94% 95% 95% 97%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.61 138,052 1647 16.38 81% 100% 49% 63%
Go 12.72 148,012 1722 47.51 93% 96% 92% 92%
mandelbrot
source secs mem gz cpu cpu load
Rust 2.78 34,856 1332 10.96 99% 100% 99% 99%
Go 5.47 30,664 894 21.75 99% 99% 99% 100%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.35 2,632 817 9.37 100% 100% 100% 100%
Go 3.94 2,344 548 15.71 100% 100% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.42 250,836 1376 0.70 24% 32% 95% 24%
Go 0.63 89,120 1338 1.00 39% 43% 27% 57%
n-body
source secs mem gz cpu cpu load
Rust 14.32 1,748 1805 14.32 100% 1% 1% 0%
Go 21.37 1,536 1310 21.38 0% 0% 100% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.96 1,748 1020 42.90 99% 100% 99% 93%
Go 14.72 1,540 900 58.65 100% 100% 99% 100%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,608 1366 1.74 100% 1% 1% 3%
Go 2.02 9,256 603 2.02 0% 0% 100% 0%
fasta
source secs mem gz cpu cpu load
Rust 2.05 3,276 1906 5.06 59% 71% 59% 59%
Go 2.08 3,640 1358 5.69 84% 66% 70% 56%
regex-redux
source secs mem gz cpu cpu load
Rust   Make Error
Go 0.27 2,364 802 0.61 65% 59% 68% 46%
Rust

rustc 1.24.0 (4d90ac38c 2018-02-12)

Go

go version go1.10 linux/amd64