/mobile Handheld Friendly website

÷

 1 : Are the Go programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Go program used compared to the fastest Python 3 program.


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Go programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Go program used compared to the fastest Python 3 program.

 Go used what fraction? used how many times more? 
Benchmark Time Memory Code
 spectral-norm1/501/5
 mandelbrot1/371/3±
 n-body1/341/5±
 fasta1/321/5±
 fannkuch-redux1/321/5
 reverse-complement1/51/3
 k-nucleotide1/51/2
 binary-trees1/41/3±
 pidigits±1/2
 regex-dna
 Go used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/501/501/341/91/41/2

± read the measurements and then read the program source code.

 3 : Are the Go programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest Go program are shown for comparison against measurements of the fastest Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 spectral-norm 
Go15.7015.711,528668  0% 0% 0% 100%
Python 3787.37787.627,096328  0% 0% 0% 100%
 mandelbrot 
Go46.6946.7131,768700  0% 0% 0% 100%
Python 31,729.801,730.60100,660777  0% 0% 0% 100%
 n-body 
Go26.6226.641,2721310  0% 0% 0% 100%
Python 3916.32916.596,2961181  0% 0% 0% 100%
 fasta 
Go6.946.941,2721036  0% 0% 0% 100%
Python 3217.54221.686,216792  0% 0% 1% 100%
 fannkuch-redux 
Go73.6173.641,276900  0% 0% 0% 100%
Python 32,348.562,349.266,152385  0% 0% 0% 100%
 reverse-complement 
Go1.001.01249,9281243  0% 1% 0% 100%
Python 35.385.40675,272325  0% 0% 0% 100%
 k-nucleotide 
Go75.7075.76262,1721268  0% 0% 0% 100%
Python 3388.14388.47487,132647  0% 0% 0% 100%
 binary-trees 
Go122.72122.87475,300516  0% 0% 0% 100%
Python 3480.36480.871,209,444626  0% 0% 0% 100%
 pidigits 
Go3.493.494,216607  0% 0% 0% 100%
Python 32.402.406,928255  2% 0% 0% 100%
 regex-dna 
Go65.0565.09466,128785  0% 0% 0% 100%
Python 321.7521.77200,012424  0% 0% 0% 100%
 fasta-redux 
Go0.030.03?1236  0% 0% 0% 100%
No program

 4 : Are there other Go programs for these benchmarks?

Remember - those are just the fastest Go and Python 3 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Go.

Maybe one of those other Go programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Go and Python 3 programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Go : types just are - Go is an experiment 

go version go1.1.1 linux/amd64

SPLASH 2012 Go at Google: Language Design in the Service of Software Engineering

Home Page: Go - a systems programming language

Download: Installing Go

Revised BSD license

  Home   Conclusions   License   Play