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,040 905 21.73 99% 99% 100% 99%
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,664 548 15.70 99% 99% 100% 100%
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,536 1200 21.00 100% 0% 0% 1%
Python 3 882.00 8,212 1196 881.81 91% 0% 1% 9%
fannkuch-redux
source secs mem gz cpu cpu load
Go 17.83 1,480 900 71.04 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.06 3,432 1358 5.85 87% 30% 84% 84%
Python 3 62.88 680,736 1947 141.15 60% 56% 48% 62%
k-nucleotide
source secs mem gz cpu cpu load
Go 13.06 148,316 1722 47.92 90% 89% 95% 93%
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 826,668 611 4.15 4% 15% 4% 85%
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.56 466,636 654 109.05 96% 95% 96% 95%
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,964 603 2.04 0% 83% 18% 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.89 338,812 802 60.70 41% 51% 48% 70%
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