vs

 1 : Are the Haskell GHC programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest Go 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 Haskell GHC programs faster? Approximately.

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

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

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/31/2
 binary-trees1/3±±
 fasta1/2 ±
 pidigits1/2 1/2
 fannkuch-redux± ±
 n-body± ±
 spectral-norm± 
 mandelbrot± ±
 reverse-complement±1/2±
 k-nucleotide±±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/31/31/2±±

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

 3 : Are the Haskell GHC 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 Haskell GHC program are shown for comparison against measurements of the fastest Go program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Haskell GHC26.5326.54335,6441518  0% 1% 1% 100%
Go86.1386.17508,876785  0% 1% 0% 100%
 binary-trees 
Haskell GHC21.6321.66312,868612  0% 0% 1% 100%
Go57.3557.43275,708814  1% 1% 0% 100%
 fasta 
Haskell GHC3.603.602,736979  2% 0% 1% 100%
Go7.267.271,0281036  1% 0% 0% 100%
 pidigits 
Haskell GHC2.242.245,964341  1% 0% 1% 100%
Go3.943.943,664674  1% 0% 2% 100%
 fannkuch-redux 
Haskell GHC65.5465.562,364834  0% 1% 1% 100%
Go67.2167.241,032900  0% 1% 1% 100%
 n-body 
Haskell GHC22.6522.662,3441874  0% 1% 1% 100%
Go22.9622.961,0361310  1% 0% 0% 100%
 spectral-norm 
Haskell GHC15.6915.701,588984  1% 0% 0% 100%
Go15.7015.711,296411  1% 0% 1% 100%
 mandelbrot 
Haskell GHC45.5345.5538,532782  1% 0% 0% 100%
Go43.2043.2233,460837  1% 1% 0% 100%
 reverse-complement 
Haskell GHC1.191.19126,148999  0% 1% 0% 99%
Go0.820.82250,8441243  0% 0% 2% 100%
 k-nucleotide 
Haskell GHC47.7547.80362,4601693  0% 1% 1% 100%
Go30.7130.74252,4441399  1% 0% 1% 100%
 fasta-redux 
No program
Go0.020.03?1236  0% 0% 0% 100%

 4 : Are there other Haskell GHC programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

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

 Haskell GHC : lazy pure functional programming 

The Glorious Glasgow Haskell Compilation System, version 7.8.2

Home Page: http://www.haskell.org/

Download: http://www.haskell.org/ghc/

Revised BSD license

  Home   Conclusions   License   Play