vs

 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 Lisp SBCL program.

(Memory use is only compared for tasks that require memory to be allocated.)


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 Lisp SBCL program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Go used what fraction? used how many times more? 
Benchmark Time Memory Code
 k-nucleotide †1/41/2
 reverse-complement †1/31/2±
 binary-trees †±±±
 regex-dna±1/21/2
 mandelbrot± 1/3
 n-body± ±
 fasta± 1/2
 spectral-norm± 1/2
 fannkuch-redux± 1/2
 pidigits± 1/2
 Go used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/41/2±±±±±

† possible mismatch - one-core program compared to multi-core program.

± 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 Lisp SBCL program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 k-nucleotide 
Go30.938.42251,0241399  98% 91% 90% 90% †
Lisp SBCL32.9532.99152,3442301  0% 1% 0% 100% †
 reverse-complement 
Go0.930.77250,5641243  10% 69% 11% 35% †
Lisp SBCL2.412.42396,200896  0% 0% 0% 100% †
 binary-trees 
Go68.4118.42266,624814  94% 94% 92% 93% †
Lisp SBCL23.7523.79310,176649  1% 100% 1% 1% †
 regex-dna 
Go47.4016.27543,868789  86% 64% 64% 78%
Lisp SBCL42.5120.18920,2761948  85% 43% 43% 41%
 mandelbrot 
Go25.446.3932,276894  100% 100% 100% 100%
Lisp SBCL28.567.8460,3322459  95% 87% 99% 85%
 n-body 
Go22.9522.951,0361310  0% 0% 100% 1%
Lisp SBCL26.6926.708,6561398  1% 0% 100% 0%
 fasta 
Go7.267.271,0281036  1% 1% 1% 100%
Lisp SBCL7.847.848,8841751  1% 100% 1% 0%
 spectral-norm 
Go15.703.961,816536  99% 99% 99% 99%
Lisp SBCL15.914.1223,184906  96% 97% 97% 97%
 fannkuch-redux 
Go67.1616.861,032900  100% 100% 100% 100%
Lisp SBCL65.1216.7534,0041518  98% 99% 100% 92%
 pidigits 
Go3.763.523,668674  4% 48% 7% 51%
Lisp SBCL2.372.379,1881073  0% 2% 2% 100%
 fasta-redux 
Go0.030.03?1237  25% 25% 25% 100%
Lisp SBCLBad Output

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other Go programs for these benchmarks?

Remember - those are just the fastest Go and Lisp SBCL 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 Lisp SBCL 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.3 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