The Computer Language
Benchmarks Game

Go programs versus Python 3

by benchmark task performance

spectral-norm
source secs mem gz cpu cpu load
Go 15.71 928 668 15.70 0% 1% 1% 100%
Python 3 1,105.41 7,120 328 1,105.02 1% 0% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Go 27.17 34,800 894 27.16 0% 1% 1% 100%
Python 3 1,209.01 40,500 686 1,208.52 1% 0% 1% 100%
n-body
source secs mem gz cpu cpu load
Go 23.18 928 1310 23.17 1% 0% 0% 100%
Python 3 1,024.87 6,324 1228 1,024.54 1% 0% 1% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Go 94.45 924 900 94.42 0% 1% 1% 100%
Python 3 2,464.08 44,564 944 2,463.20 1% 0% 0% 100%
fasta
source secs mem gz cpu cpu load
Go 10.29 988 1036 10.28 0% 1% 0% 100%
Python 3 122.25 6,508 977 122.19 1% 1% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
Go 47.48 147,788 1582 47.45 1% 1% 0% 100%
Python 3 317.42 219,028 1937 317.16 0% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Go 1.01 133,360 1278 1.00 3% 1% 1% 99%
Python 3 5.54 262,360 800 5.53 1% 1% 1% 100%
binary-trees
source secs mem gz cpu cpu load
Go 167.96 184,252 548 167.86 0% 1% 1% 100%
Python 3 497.80 482,656 596 497.40 1% 1% 1% 100%
pidigits
source secs mem gz cpu cpu load
Go 3.86 8,032 729 3.85 2% 0% 0% 100%
Python 3 4.47 8,308 382 4.46 0% 36% 63% 100%
Go

go version go1.7 linux/386

Python 3

Python 3.5.0 (default, Sep 14 2015, 09:36:50) [GCC 4.9.2] on linux