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.54 132,404 1338 0.91 25% 28% 58% 60%
C gcc 0.48 200,492 820 0.66 4% 19% 25% 98%
pidigits
source secs mem gz cpu cpu load
Go 2.03 9,428 603 2.03 0% 0% 0% 100%
C gcc 1.74 2,716 452 1.74 100% 1% 1% 2%
fasta
source secs mem gz cpu cpu load
Go 2.17 3,404 1358 5.83 58% 69% 66% 77%
C gcc 1.32 2,912 2268 5.25 100% 99% 100% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Go 14.44 1,560 900 57.53 100% 100% 100% 100%
C gcc 8.66 980 910 34.22 100% 97% 100% 100%
spectral-norm
source secs mem gz cpu cpu load
Go 3.94 2,320 548 15.69 99% 100% 100% 99%
C gcc 2.00 1,300 569 7.89 99% 99% 100% 99%
k-nucleotide
source secs mem gz cpu cpu load
Go 14.98 147,704 1722 55.60 97% 88% 92% 95%
C gcc 6.67 130,160 1506 19.33 76% 50% 92% 75%
n-body
source secs mem gz cpu cpu load
Go 21.47 1,568 1200 21.47 78% 1% 1% 22%
C gcc 9.12 1,176 1490 9.12 1% 100% 2% 2%
mandelbrot
source secs mem gz cpu cpu load
Go 5.48 30,704 905 21.74 100% 100% 99% 100%
C gcc 1.64 29,424 1135 6.53 99% 100% 100% 100%
binary-trees
source secs mem gz cpu cpu load
Go 34.42 268,188 654 130.26 96% 94% 95% 94%
C gcc 2.44 133,956 836 7.57 80% 65% 68% 100%
regex-redux
source secs mem gz cpu cpu load
Go 28.49 318,144 802 59.96 74% 48% 41% 48%
C gcc 1.48 152,352 1230 4.05 59% 99% 57% 61%
Go

go version go1.9 linux/amd64

C gcc

gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0