The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Rust 2.73 175,372 701 4.24 19% 19% 100% 20%
Go 29.51 352,804 798 61.51 77% 49% 43% 40%
binary-trees
source secs mem gz cpu cpu load
Rust 4.66 184,704 717 17.32 92% 91% 91% 100%
Go 34.77 269,068 654 132.04 95% 97% 95% 95%
k-nucleotide
source secs mem gz cpu cpu load
Rust 5.40 156,208 1627 16.18 86% 99% 66% 51%
Go 16.08 149,180 1582 59.44 95% 90% 90% 97%
n-body
source secs mem gz cpu cpu load
Rust 12.82 5,672 1540 12.81 0% 0% 100% 1%
Go 21.29 832 1200 21.29 100% 0% 1% 1%
spectral-norm
source secs mem gz cpu cpu load
Rust 2.44 20,048 817 9.60 98% 99% 98% 99%
Go 3.96 2,148 548 15.71 100% 99% 99% 99%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.33 268,384 1324 0.61 100% 36% 31% 31%
Go 0.49 88,056 1278 0.87 27% 43% 28% 81%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 10.99 20,012 1020 43.08 94% 100% 99% 100%
Go 15.81 1,372 900 62.92 100% 100% 99% 99%
fasta
source secs mem gz cpu cpu load
Rust 1.49 18,592 1887 4.64 77% 84% 76% 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 1306 1.74 3% 1% 100% 2%
Go 2.02 8,588 603 2.02 100% 0% 1% 1%
mandelbrot
source secs mem gz cpu cpu load
Rust 4.93 71,144 868 19.48 99% 98% 100% 100%
Go 5.64 31,312 894 22.41 99% 100% 99% 99%
Rust

rustc 1.19.0 (0ade33941 2017-07-17)

Go

go version go1.8.1 linux/amd64