/mobile Handheld Friendly website

÷

 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 C++ g++ 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 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 C++ g++ program.

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta±±
 binary-trees±±±
 pidigits±1/2
 reverse-complement±1/21/2
 spectral-norm±±
 mandelbrot±±
 n-body±
 fannkuch-redux±
 k-nucleotide
 regex-dna±
 Haskell GHC 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 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 C++ g++ program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta 
Haskell GHC3.363.362,364979  0% 0% 0% 100%
C++ g++4.104.116201105  0% 0% 0% 100%
 binary-trees 
Haskell GHC16.4916.51183,532612  0% 0% 1% 100%
C++ g++15.8015.82148,440892  1% 0% 0% 100%
 pidigits 
Haskell GHC3.063.075,284341  0% 1% 1% 100%
C++ g++2.682.681,452682  0% 0% 1% 100%
 reverse-complement 
Haskell GHC1.541.55125,748999  0% 1% 0% 100%
C++ g++1.061.07245,3882275  0% 1% 0% 100%
 spectral-norm 
Haskell GHC15.7215.721,056984  0% 0% 0% 100%
C++ g++7.927.939241044  0% 0% 0% 100%
 mandelbrot 
Haskell GHC43.9643.9835,364782  0% 0% 0% 100%
C++ g++19.5819.6032,072726  0% 0% 0% 100%
 n-body 
Haskell GHC23.6823.691,8401874  0% 0% 0% 100%
C++ g++10.4210.436201763  0% 1% 1% 100%
 fannkuch-redux 
Haskell GHC63.9263.941,5881153  0% 0% 0% 100%
C++ g++25.0425.052921150  1% 0% 0% 100%
 k-nucleotide 
Haskell GHC71.5571.61308,8602749  0% 0% 0% 100%
C++ g++23.6923.71137,4481252  1% 0% 0% 100%
 regex-dna 
Haskell GHC28.4628.48266,4841518  0% 0% 0% 100%
C++ g++5.986.00185,560648  0% 1% 1% 100%
 fasta-redux 
No program
C++ g++0.030.03?1474  0% 0% 0% 100%

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

Remember - those are just the fastest Haskell GHC and C++ g++ 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 C++ g++ 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 

llvm version 3.1-2ubuntu1

The Glorious Glasgow Haskell Compilation System, version 7.6.2

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

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

Revised BSD license

  Home   Conclusions   License   Play