The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 2.83 179,428 804 4.22 88% 17% 17% 29%
Go 29.51 352,804 798 61.51 77% 49% 43% 40%
binary-trees
source secs mem gz cpu cpu load
Rust 4.43 196,468 717 16.56 92% 92% 100% 93%
Go 34.77 269,068 654 132.04 95% 97% 95% 95%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.27 156,408 1728 17.06 77% 91% 68% 91%
Go 16.08 149,180 1582 59.44 95% 90% 90% 97%
mandelbrot
source secs mem gz cpu cpu load
Rust 1.93 52,796 1160 7.65 100% 99% 100% 99%
Go 5.64 31,312 894 22.41 99% 100% 99% 99%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.34 20,064 817 9.27 100% 100% 100% 100%
Go 3.96 2,148 548 15.71 100% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
Rust 13.08 5,704 1540 13.08 0% 1% 1% 100%
Go 21.52 832 1310 21.52 1% 100% 0% 0%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.33 268,344 1324 0.61 34% 100% 31% 28%
Go 0.49 88,056 1278 0.87 27% 43% 28% 81%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.82 18,084 1020 42.18 99% 100% 93% 98%
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 83% 76% 76% 75%
Go 1.98 3,044 1344 5.65 75% 82% 47% 85%
pidigits
source secs mem gz cpu cpu load
Rust 1.74 7,892 1420 1.74 0% 1% 100% 2%
Go 2.02 8,588 603 2.02 100% 0% 1% 1%
Rust

rustc 1.18.0 (03fc9d622 2017-06-06)

Go

go version go1.8.1 linux/amd64