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.44 194,804 765 3.87 85% 41% 20% 16%
Go 28.89 338,812 802 60.70 41% 51% 48% 70%
binary-trees
source secs mem gz cpu cpu load
Rust 4.14 175,692 721 15.18 90% 90% 91% 100%
Go 28.56 466,636 654 109.05 96% 95% 96% 95%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.74 33,712 1332 6.86 98% 100% 98% 98%
Go 5.47 31,040 905 21.73 99% 99% 100% 99%
reverse-complement
source secs mem gz cpu cpu load
Rust 1.60 995,212 1376 2.73 24% 25% 96% 30%
Go 4.00 826,668 611 4.15 4% 15% 4% 85%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.98 137,956 1648 18.00 78% 49% 90% 85%
Go 13.06 148,316 1722 47.92 90% 89% 95% 93%
spectral-norm
source secs mem gz cpu cpu load
Rust 1.97 2,600 1126 7.86 100% 100% 100% 99%
Go 3.95 2,664 548 15.70 99% 99% 100% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 9.87 1,848 1020 38.71 100% 95% 100% 100%
Go 17.83 1,480 900 71.04 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
Rust 13.25 1,808 1805 13.25 0% 0% 1% 100%
Go 21.00 1,536 1200 21.00 100% 0% 0% 1%
fasta
source secs mem gz cpu cpu load
Rust 1.46 3,112 1906 4.95 84% 83% 84% 89%
Go 2.06 3,432 1358 5.85 87% 30% 84% 84%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,520 1366 1.74 1% 3% 0% 99%
Go 2.04 8,964 603 2.04 0% 83% 18% 0%
Rust

rustc 1.30.0 (da5f414c2 2018-10-24)
LLVM version 7.0.0

Go

go version go1.11 linux/amd64