The Computer Language
Benchmarks Game

Go programs versus C gcc

by benchmark task performance

mandelbrot
source secs mem gz cpu cpu load
Go 27.17 34,800 894 27.16 0% 1% 1% 100%
C gcc 19.08 32,016 782 19.07 0% 23% 78% 100%
pidigits
source secs mem gz cpu cpu load
Go 3.86 8,032 729 3.85 2% 0% 0% 100%
C gcc 2.50 1,992 448 2.50 2% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Go 1.01 133,360 1278 1.00 3% 1% 1% 99%
C gcc 0.62 125,340 812 0.62 3% 0% 0% 100%
k-nucleotide
source secs mem gz cpu cpu load
Go 47.48 147,788 1582 47.45 1% 1% 0% 100%
C gcc 23.93 126,832 1500 23.91 0% 1% 1% 100%
spectral-norm
source secs mem gz cpu cpu load
Go 15.71 928 668 15.70 0% 1% 1% 100%
C gcc 7.85 1,628 569 7.85 1% 1% 1% 100%
n-body
source secs mem gz cpu cpu load
Go 23.18 928 1310 23.17 1% 0% 0% 100%
C gcc 10.01 740 1490 10.00 1% 1% 0% 100%
fasta
source secs mem gz cpu cpu load
Go 10.29 988 1036 10.28 0% 1% 0% 100%
C gcc 2.79 640 1261 2.79 1% 1% 0% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Go 94.45 924 900 94.42 0% 1% 1% 100%
C gcc 24.19 636 1183 24.18 1% 1% 0% 100%
binary-trees
source secs mem gz cpu cpu load
Go 167.96 184,252 548 167.86 0% 1% 1% 100%
C gcc 9.58 100,796 906 9.57 1% 1% 1% 100%
Go

go version go1.7 linux/386

C gcc

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609