/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-complement±1/3±
 spectral-norm±1/91/2
 fasta-redux±1/15±
 pidigits±1/111/3
 k-nucleotide±1/2±
 fannkuch-redux±1/14±
 n-body±1/14±
 mandelbrot1/2±
 regex-dna1/2
 fasta1/15±
 binary-trees1/2±
 Go used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±

± 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.861.86159,972543  3% 1% 0% 99%
Java 71.881.92511,484745  2% 1% 3% 100%
 spectral-norm 
Go15.7515.761,740411  0% 0% 0% 100%
Java 716.1316.1414,924950  1% 0% 0% 100%
 fasta-redux 
Go1.881.891,0121237  0% 1% 1% 100%
Java 71.891.8914,9641443  0% 1% 0% 100%
 pidigits 
Go7.437.444,224607  0% 0% 0% 100%
Java 77.337.3447,4401826  0% 0% 0% 100%
 k-nucleotide 
Go51.6351.67260,2081268  0% 0% 0% 100%
Java 750.6950.73494,0401630  1% 0% 0% 100%
 fannkuch-redux 
Go84.7184.751,012900  0% 0% 0% 100%
Java 771.2671.2813,9361282  0% 0% 0% 100%
 n-body 
Go35.7035.711,0041310  0% 1% 0% 100%
Java 724.4024.4113,9961424  0% 0% 0% 100%
 mandelbrot 
Go48.6648.6831,556700  0% 0% 0% 100%
Java 726.9226.9367,880796  0% 0% 0% 100%
 regex-dna 
Go72.1872.221,084,692785  0% 0% 1% 100%
Java 722.6322.66557,0801284  0% 0% 0% 100%
 fasta 
Go16.6816.691,0121036  0% 0% 0% 100%
Java 74.924.9214,9321507  0% 1% 0% 100%
 binary-trees 
Go108.70108.81259,996516  0% 0% 0% 100%
Java 715.7015.75506,592603  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/386

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