The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 3.01 180,660 804 4.41 16% 16% 16% 100%
Go 28.21 323,820 802 59.87 69% 46% 50% 48%
binary-trees
source secs mem gz cpu cpu load
Rust 4.13 167,624 721 15.17 90% 100% 89% 90%
Go 28.80 434,632 654 109.58 94% 95% 95% 97%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.75 34,132 1332 6.86 98% 100% 98% 98%
Go 5.48 30,912 905 21.79 99% 99% 99% 100%
reverse-complement
source secs mem gz cpu cpu load
Rust 1.62 995,084 1376 2.75 100% 24% 26% 24%
Go 4.00 824,356 611 4.16 1% 35% 68% 2%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.28 137,948 1749 16.08 69% 100% 52% 85%
Go 12.77 148,052 1722 47.35 87% 97% 94% 95%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.30 2,520 817 9.18 100% 100% 100% 100%
Go 3.94 2,344 548 15.71 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
Rust 13.26 1,784 1480 13.25 3% 1% 100% 1%
Go 21.37 1,536 1310 21.38 0% 0% 100% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 9.60 1,816 1020 37.59 100% 94% 100% 99%
Go 14.72 1,540 900 58.65 100% 100% 99% 100%
fasta
source secs mem gz cpu cpu load
Rust 1.47 2,980 1961 4.47 78% 75% 75% 82%
Go 2.08 3,640 1358 5.69 84% 66% 70% 56%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,672 1366 1.74 1% 1% 100% 0%
Go 2.02 9,256 603 2.02 0% 0% 100% 0%
Rust

rustc 1.26.0 (a77568041 2018-05-07)

Go

go version go1.10 linux/amd64