The Computer Language
Benchmarks Game

Go versus C gcc fastest programs

by faster benchmark performance

pidigits
source secs mem gz cpu cpu load
Go 2.04 8,380 603 2.04 2% 1% 1% 100%
C gcc 1.75 2,672 452 1.75 100% 2% 2% 0%
fasta
source secs mem gz cpu cpu load
Go 2.07 2,620 1358 5.86 84% 84% 61% 57%
C gcc 1.36 2,864 2268 5.41 99% 100% 100% 99%
spectral-norm
source secs mem gz cpu cpu load
Go 3.98 2,656 548 15.72 99% 99% 99% 99%
C gcc 1.98 1,168 1139 7.87 100% 99% 100% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Go 17.82 1,472 900 71.02 100% 100% 100% 100%
C gcc 8.67 852 910 34.14 99% 100% 100% 95%
n-body
source secs mem gz cpu cpu load
Go 21.00 1,536 1200 21.00 0% 100% 0% 1%
C gcc 9.37 1,088 1490 9.37 100% 0% 1% 0%
reverse-complement
source secs mem gz cpu cpu load
Go 4.00 826,728 611 4.16 86% 1% 14% 6%
C gcc 1.76 994,488 1438 3.98 97% 43% 44% 46%
k-nucleotide
source secs mem gz cpu cpu load
Go 12.58 148,112 1590 47.16 95% 90% 95% 96%
C gcc 4.88 130,060 1506 16.06 87% 96% 87% 60%
mandelbrot
source secs mem gz cpu cpu load
Go 5.47 31,004 905 21.73 100% 99% 99% 99%
C gcc 1.64 26,512 1135 6.54 99% 100% 99% 100%
binary-trees
source secs mem gz cpu cpu load
Go 28.82 463,464 654 109.73 97% 95% 95% 94%
C gcc 3.73 116,600 836 11.74 76% 71% 98% 72%
regex-redux
source secs mem gz cpu cpu load
Go 28.99 338,504 802 60.81 54% 48% 68% 40%
C gcc 1.46 152,216 1397 3.40 45% 41% 100% 49%
Go

go version go1.11 linux/amd64

C gcc

gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0