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# Mono 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 C# Mono 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
 reverse-complement1/2±±
 fasta1/2 ±
 spectral-norm1/2 
 k-nucleotide1/2±±
 pidigits± 1/3
 binary-trees±±
 fannkuch-redux± 
 n-body± ±
 mandelbrot ±
 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 C# Mono program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Haskell GHC28.1828.19241,3721518  0% 0% 1% 100%
C# Mono73.1973.22375,576594  0% 1% 1% 100%
 reverse-complement 
Haskell GHC1.221.22125,892999  0% 2% 2% 100%
C# Mono2.962.97175,5201099  1% 0% 1% 100%
 fasta 
Haskell GHC3.353.352,504979  1% 1% 0% 100%
C# Mono7.157.1619,4121180  1% 0% 1% 100%
 spectral-norm 
Haskell GHC15.7015.701,184984  0% 1% 0% 100%
C# Mono29.4729.4819,476459  0% 1% 0% 100%
 k-nucleotide 
Haskell GHC64.2364.30324,4241965  0% 1% 0% 100%
C# Mono103.48103.54319,1121404  1% 1% 1% 100%
 pidigits 
Haskell GHC2.962.965,676341  0% 1% 0% 100%
C# Mono3.983.9819,6361026  1% 1% 1% 100%
 binary-trees 
Haskell GHC18.2318.25173,344612  0% 1% 1% 100%
C# Mono20.1020.13114,172654  0% 1% 1% 100%
 fannkuch-redux 
Haskell GHC62.2462.261,9881153  0% 0% 1% 100%
C# Mono64.4864.5018,616564  0% 1% 0% 100%
 n-body 
Haskell GHC24.2024.222,2401874  1% 0% 1% 100%
C# Mono22.0422.0419,4121305  0% 1% 1% 100%
 mandelbrot 
Haskell GHC47.7947.8134,980782  0% 1% 0% 100%
C# Mono30.5530.5651,544986  1% 0% 1% 100%
 fasta-redux 
No program
C# Mono0.160.16?1438  0% 6% 0% 100%

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

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