The Computer Language
Benchmarks Game

Rust versus Go fastest programs

by faster benchmark performance

regex-redux
source secs mem gz cpu cpu load
Rust 2.75 199,096 804 3.94 35% 20% 18% 88%
Go 28.21 323,820 802 59.87 69% 46% 50% 48%
binary-trees
source secs mem gz cpu cpu load
Rust 4.04 167,448 721 14.74 90% 99% 89% 89%
Go 28.80 434,632 654 109.58 94% 95% 95% 97%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.75 34,168 1332 6.86 98% 99% 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,240 1376 2.74 25% 25% 24% 99%
Go 4.00 824,356 611 4.16 1% 35% 68% 2%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.32 138,012 1749 16.15 88% 98% 68% 52%
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,576 817 9.16 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.13 1,728 1805 13.12 1% 0% 100% 0%
Go 21.37 1,536 1310 21.38 0% 0% 100% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.09 1,876 1020 39.42 100% 93% 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 3,008 1961 4.44 81% 76% 74% 74%
Go 2.08 3,640 1358 5.69 84% 66% 70% 56%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,592 1366 1.74 2% 1% 100% 2%
Go 2.02 9,256 603 2.02 0% 0% 100% 0%
Rust

rustc 1.27.0 (3eda71b00 2018-06-19)

Go

go version go1.10 linux/amd64