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

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 : Approximately - Are the Go programs faster?

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
 fasta-redux1/3 1/2
 fasta †1/3 ±
 reverse-complement1/3±±
 binary-trees †1/21/2±
 n-body± ±
 mandelbrot± 1/3
 regex-dna±±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/41/3±±

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

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

 3 : Measurements - Are the Go programs faster?

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 
Go29.978.14259,8841399  91% 93% 93% 92% †
Lisp SBCL33.7233.75153,1522272  1% 0% 0% 100% †
 fasta-redux 
Go1.821.821,7481236  0% 1% 100% 0%
Lisp SBCL6.186.187,6682005  1% 1% 0% 100%
 fasta 
Go6.202.333,9561344  65% 57% 76% 69% †
Lisp SBCL7.597.606,8841751  0% 100% 1% 1% †
 reverse-complement 
Go0.980.84259,5041243  91% 1% 25% 1%
Lisp SBCL2.272.28294,624896  1% 100% 1% 0%
 binary-trees 
Go24.3111.33185,988752  55% 53% 54% 54% †
Lisp SBCL24.9124.95294,672649  0% 100% 1% 0% †
 n-body 
Go22.0222.011,7321310  0% 1% 100% 1%
Lisp SBCL26.9726.986,6321398  2% 0% 1% 100%
 mandelbrot 
Go25.596.4432,184894  100% 99% 99% 100%
Lisp SBCL28.537.9055,6722459  82% 100% 98% 83%
 regex-dna 
Go49.0516.97474,400789  68% 72% 76% 74%
Lisp SBCL43.9220.57643,3481948  41% 91% 42% 42%
 spectral-norm 
Go15.703.952,892536  100% 99% 99% 99%
Lisp SBCL15.974.1820,972906  96% 95% 96% 96%
 fannkuch-redux 
Go65.1216.381,788900  100% 99% 99% 100%
Lisp SBCL64.9416.7332,1481518  99% 100% 98% 92%
 pidigits 
Go4.623.899,336674  31% 30% 26% 34% †
Lisp SBCL2.362.379,2801073  3% 1% 0% 100% †

† 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.5 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