The Computer Language
Benchmarks Game

Go versus Python 3 fastest programs

by faster benchmark performance

mandelbrot
source secs mem gz cpu cpu load
Go 5.47 31,280 905 21.73 99% 99% 99% 100%
Python 3 279.68 49,344 688 1,117.29 100% 100% 100% 100%
spectral-norm
source secs mem gz cpu cpu load
Go 3.95 2,412 548 15.70 100% 99% 99% 99%
Python 3 193.86 50,556 443 757.23 98% 98% 99% 99%
n-body
source secs mem gz cpu cpu load
Go 21.00 1,532 1200 21.00 1% 0% 0% 100%
Python 3 882.00 8,212 1196 881.81 91% 0% 1% 9%
fannkuch-redux
source secs mem gz cpu cpu load
Go 17.82 1,472 900 71.03 100% 100% 100% 100%
Python 3 547.23 48,052 950 2,162.70 99% 100% 97% 100%
fasta
source secs mem gz cpu cpu load
Go 2.07 3,168 1358 5.87 39% 83% 84% 79%
Python 3 62.88 680,736 1947 141.15 60% 56% 48% 62%
k-nucleotide
source secs mem gz cpu cpu load
Go 15.36 148,056 1722 54.61 77% 96% 95% 88%
Python 3 79.79 250,948 1967 309.42 98% 96% 96% 99%
reverse-complement
source secs mem gz cpu cpu load
Go 4.00 824,412 611 4.15 86% 14% 5% 1%
Python 3 16.76 1,005,252 814 20.08 65% 21% 44% 17%
binary-trees
source secs mem gz cpu cpu load
Go 28.90 471,068 654 110.50 96% 95% 95% 97%
Python 3 92.72 448,844 589 333.42 87% 90% 96% 87%
pidigits
source secs mem gz cpu cpu load
Go 2.04 8,976 603 2.04 1% 0% 100% 0%
Python 3 3.51 10,500 386 3.50 1% 1% 0% 100%
regex-redux
source secs mem gz cpu cpu load
Go 28.69 407,444 802 60.43 46% 51% 68% 46%
Python 3 15.56 439,964 512 27.97 25% 92% 32% 32%
Go

go version go1.11 linux/amd64

Python 3

Python 3.7.0