The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 2.70 173,336 804 4.24 20% 33% 88% 20%
Go 29.51 352,804 798 61.51 77% 49% 43% 40%
binary-trees
source secs mem gz cpu cpu load
Rust 4.33 194,824 717 15.92 100% 91% 91% 92%
Go 34.77 269,068 654 132.04 95% 97% 95% 95%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.27 158,224 1728 16.66 99% 58% 91% 71%
Go 16.08 149,180 1582 59.44 95% 90% 90% 97%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.89 52,740 1160 7.47 100% 99% 99% 99%
Go 5.64 31,312 894 22.41 99% 100% 99% 99%
n-body
source secs mem gz cpu cpu load
Rust 13.16 5,768 1799 13.16 100% 1% 1% 0%
Go 21.52 832 1310 21.52 1% 100% 0% 0%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.50 13,956 1050 9.33 95% 93% 90% 97%
Go 3.96 2,148 548 15.71 100% 99% 99% 99%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.33 270,356 1324 0.61 30% 100% 35% 33%
Go 0.49 88,056 1278 0.87 27% 43% 28% 81%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.74 20,056 1020 42.08 100% 99% 94% 100%
Go 15.81 1,372 900 62.92 100% 100% 99% 99%
fasta
source secs mem gz cpu cpu load
Rust 1.48 18,524 1887 4.56 82% 76% 75% 76%
Go 1.98 3,044 1344 5.65 75% 82% 47% 85%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 7,820 1420 1.74 1% 0% 1% 100%
Go 2.02 8,588 603 2.02 100% 0% 1% 1%
Rust

rustc 1.17.0 (56124baa9 2017-04-24)

Go

go version go1.8.1 linux/amd64