The Computer Language
Benchmarks Game

Rust programs versus Go

by benchmark task performance

binary-trees
source secs mem gz cpu cpu load
Rust 25.58 122,236 792 25.54 1% 0% 0% 100%
Go 167.96 184,252 548 167.86 0% 1% 1% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Rust 48.31 15,956 1191 48.29 1% 1% 2% 100%
Go 94.45 924 900 94.42 0% 1% 1% 100%
fasta
source secs mem gz cpu cpu load
Rust 5.35 5,908 1211 5.34 1% 1% 1% 100%
Go 10.29 988 1036 10.28 0% 1% 0% 100%
pidigits
source secs mem gz cpu cpu load
Rust 2.52 7,880 1420 2.51 1% 1% 0% 100%
Go 3.86 8,032 729 3.85 2% 0% 0% 100%
reverse-complement
source secs mem gz cpu cpu load
Rust 0.88 267,168 1807 0.88 1% 0% 0% 100%
Go 1.01 133,360 1278 1.00 3% 1% 1% 99%
mandelbrot
source secs mem gz cpu cpu load
Rust 26.14 64,980 868 26.11 0% 1% 1% 100%
Go 27.17 34,800 894 27.16 0% 1% 1% 100%
spectral-norm
source secs mem gz cpu cpu load
Rust 15.72 16,028 1107 15.51 1% 1% 1% 100%
Go 15.71 928 668 15.70 0% 1% 1% 100%
n-body
source secs mem gz cpu cpu load
Rust 23.50 5,740 1799 23.49 1% 1% 1% 100%
Go 23.18 928 1310 23.17 1% 0% 0% 100%
k-nucleotide
source secs mem gz cpu cpu load
Rust 58.84 166,384 1324 58.78 0% 1% 1% 100%
Go 47.48 147,788 1582 47.45 1% 1% 0% 100%
Rust

rustc 1.13.0 (2c6933acc 2016-11-07)

Go

go version go1.7 linux/386