/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 Java 7 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 Java 7 program.

 Go used what fraction? used how many times more? 
Benchmark Time Memory Code
 reverse-complement1/21/2
 pidigits1/21/151/3
 fasta-redux±1/14±
 spectral-norm±1/12±
 fannkuch-redux±1/13±
 n-body±1/13±
 fasta±1/14±
 k-nucleotide±1/2±
 mandelbrot1/2±
 regex-dna±1/2
 binary-trees±±
 Go used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/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 Java 7 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 reverse-complement 
Go1.001.01249,9281243  0% 1% 0% 100%
Java 71.791.83514,504745  0% 1% 0% 99%
 pidigits 
Go3.493.494,216607  0% 0% 0% 100%
Java 75.905.9163,3441826  0% 0% 0% 100%
 fasta-redux 
Go1.961.971,2721236  0% 1% 0% 100%
Java 72.552.5617,2641443  1% 1% 0% 100%
 spectral-norm 
Go15.7015.711,528668  0% 0% 0% 100%
Java 717.0017.0018,320514  0% 0% 0% 100%
 fannkuch-redux 
Go73.6173.641,276900  0% 0% 0% 100%
Java 770.1870.2017,1681282  0% 0% 0% 100%
 n-body 
Go26.6226.641,2721310  0% 0% 0% 100%
Java 722.5122.5217,0161424  0% 0% 0% 100%
 fasta 
Go6.946.941,2721036  0% 0% 0% 100%
Java 75.185.1918,1321507  0% 0% 0% 100%
 k-nucleotide 
Go75.7075.76262,1721268  0% 0% 0% 100%
Java 750.5050.55451,2081602  0% 0% 0% 100%
 mandelbrot 
Go46.6946.7131,768700  0% 0% 0% 100%
Java 723.7923.8069,816796  0% 0% 0% 100%
 regex-dna 
Go65.0565.09466,128785  0% 0% 0% 100%
Java 723.1123.17561,7321284  0% 0% 0% 100%
 binary-trees 
Go122.72122.87475,300516  0% 0% 0% 100%
Java 716.3716.42499,404603  0% 1% 0% 100%

 4 : Are there other Go programs for these benchmarks?

Remember - those are just the fastest Go and Java 7 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 Java 7 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