The Computer Language
Benchmarks Game

Go programs versus C gcc

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
Go 0.48 88,820 1278 0.86 32% 48% 63% 44%
C gcc 0.42 145,900 812 0.57 0% 26% 20% 100%
pidigits
source secs mem gz cpu cpu load
Go 2.04 10,560 603 2.03 11% 10% 100% 1%
C gcc 1.73 1,992 448 1.73 1% 100% 1% 0%
fasta
source secs mem gz cpu cpu load
Go 1.98 3,312 1344 5.63 60% 71% 78% 78%
C gcc 1.36 2,800 1993 5.26 96% 97% 100% 97%
fannkuch-redux
source secs mem gz cpu cpu load
Go 15.84 1,384 900 63.01 99% 100% 100% 100%
C gcc 9.07 1,576 910 35.43 100% 99% 98% 94%
spectral-norm
source secs mem gz cpu cpu load
Go 3.95 2,156 548 15.70 100% 99% 99% 100%
C gcc 1.98 1,776 1139 7.87 99% 99% 100% 99%
n-body
source secs mem gz cpu cpu load
Go 21.52 832 1310 21.52 1% 1% 1% 100%
C gcc 9.56 1,000 1490 9.56 1% 100% 1% 1%
k-nucleotide
source secs mem gz cpu cpu load
Go 15.02 149,248 1713 56.88 92% 94% 97% 96%
C gcc 6.46 130,076 1500 17.06 51% 37% 89% 88%
mandelbrot
source secs mem gz cpu cpu load
Go 5.64 31,052 894 22.41 99% 99% 99% 100%
C gcc 1.64 29,848 1135 6.51 100% 100% 100% 100%
regex-redux
source secs mem gz cpu cpu load
Go 29.76 353,332 798 62.56 50% 67% 53% 41%
C gcc 2.86 106,260 1266 4.47 19% 18% 100% 21%
binary-trees
source secs mem gz cpu cpu load
Go 39.68 364,612 688 150.64 95% 95% 95% 96%
C gcc 3.28 156,780 906 10.12 91% 77% 59% 83%
Go

go version go1.8 linux/amd64

C gcc

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