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 205,624 765 3.86 11% 91% 0% 59%
Go 28.99 338,504 802 60.81 54% 48% 68% 40%
binary-trees
source secs mem gz cpu cpu load
Rust 4.11 175,320 721 15.08 100% 90% 90% 90%
Go 28.82 463,464 654 109.73 97% 95% 95% 94%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.75 33,800 1332 6.86 98% 98% 100% 98%
Go 5.47 31,004 905 21.73 100% 99% 99% 99%
reverse-complement
source secs mem gz cpu cpu load
Rust 1.61 995,072 1376 2.71 24% 31% 95% 24%
Go 4.00 826,728 611 4.16 86% 1% 14% 6%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.41 137,908 1749 17.41 77% 89% 57% 100%
Go 12.09 158,320 1607 45.00 94% 92% 95% 92%
spectral-norm
source secs mem gz cpu cpu load
Rust 1.98 2,460 1126 7.87 100% 99% 99% 99%
Go 3.98 2,656 548 15.72 99% 99% 99% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.01 1,864 1020 39.03 100% 92% 99% 100%
Go 17.82 1,472 900 71.02 100% 100% 100% 100%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 4,420 1366 1.74 2% 0% 1% 99%
Go 2.97 8,520 733 2.97 0% 1% 1% 100%
n-body
source secs mem gz cpu cpu load
Rust 13.27 1,796 1805 13.26 0% 1% 1% 100%
Go 21.00 1,536 1200 21.00 0% 100% 0% 1%
fasta
source secs mem gz cpu cpu load
Rust 1.47 3,032 1906 4.97 83% 84% 83% 90%
Go 2.07 2,620 1358 5.86 84% 84% 61% 57%
Rust

rustc 1.31.0 (abe02cefd 2018-12-04)
LLVM version 7.0.0

Go

go version go1.11 linux/amd64