÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest Erlang HiPE program.


 Step 2 : Are the Haskell GHC programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

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

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 reverse-complement1/10±
 mandelbrot1/81/19±
 pidigits1/71/21/2
 n-body1/51/3±
 fasta1/41/4±
 fannkuch1/41/2±
 k-nucleotide1/4±
 spectral-norm1/31/6±
 binary-trees±±

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

 Step 3 : Are the Haskell GHC programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest Haskell GHC program are shown for comparison against measurements of the fastest Erlang HiPE program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 reverse-complement 
Haskell GHC3.793.79618,056913  62% 1% 1% 39%
Erlang HiPE52.8236.80381,3001167  58% 41% 31% 13%
 mandelbrot 
Haskell GHC54.4813.9435,292772  98% 98% 99% 96%
Erlang HiPE400.35106.96655,656534  96% 94% 93% 91%
 pidigits 
Haskell GHC2.982.985,232332  100% 0% 0% 0%
Erlang HiPE20.7720.7811,392559  52% 0% 0% 48%
 n-body 
Haskell GHC37.0837.071,7841687  0% 36% 64% 0%
Erlang HiPE182.34182.396,0121399  94% 0% 0% 6%
 fasta 
Haskell GHC10.8010.801,7201406  100% 0% 0% 0%
Erlang HiPE48.5848.596,1161164  98% 0% 2% 0%
 fannkuch 
Haskell GHC156.6740.774,0681204  95% 96% 94% 96%
Erlang HiPE660.86169.206,280864  100% 97% 98% 97%
 k-nucleotide 
Haskell GHC106.0550.84371,6882749  60% 52% 14% 81%
Erlang HiPE525.92187.56307,792932  73% 81% 76% 52%
 spectral-norm 
Haskell GHC15.834.131,856869  98% 93% 98% 95%
Erlang HiPE45.8411.7910,368747  97% 97% 97% 97%
 binary-trees 
Haskell GHC50.2632.00217,364544  45% 46% 33% 31%
Erlang HiPE54.4618.66166,140499  80% 67% 73% 70%
 chameneos-redux 
Haskell GHC0.120.07?832  0% 75% 14% 75%
No program
 regex-dna 
Haskell GHCMake Error
Erlang HiPE2.221.1210,860855  49% 42% 25% 85%

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

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

 Step 5 : Are there other faster programs for these benchmarks?

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

Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2 booted by GHC version 6.10.4

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

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

Revised BSD license

  Home   Flawed   Fastest   License   Help