/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 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 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 Java 7 program.

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta±1/71/2
 pidigits±1/81/5
 regex-dna±1/3
 spectral-norm±1/12±
 n-body±1/7±
 fannkuch-redux±1/4±
 reverse-complement †±1/21/2
 binary-trees±±1/2
 mandelbrot1/2±
 k-nucleotide±±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±±

† possible mismatch - one-core program compared to multi-core program.

± 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 Java 7 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta 
Haskell GHC4.283.802,276979  41% 62% 5% 4%
Java 75.074.9914,9761507  2% 0% 100% 1%
 pidigits 
Haskell GHC6.584.175,972341  36% 51% 38% 34%
Java 711.755.1246,4881826  70% 67% 56% 39%
 regex-dna 
Haskell GHC33.658.87210,3161518  92% 95% 98% 95%
Java 727.099.43708,060929  65% 83% 78% 63%
 spectral-norm 
Haskell GHC15.724.061,248984  97% 97% 97% 97%
Java 716.394.2114,740950  97% 97% 98% 99%
 n-body 
Haskell GHC24.7724.022,0081874  11% 58% 35% 1%
Java 724.4124.3913,9761424  0% 0% 0% 100%
 fannkuch-redux 
Haskell GHC66.8017.023,2641153  100% 99% 100% 94%
Java 767.9117.1714,4601282  98% 99% 100% 100%
 reverse-complement 
Haskell GHC1.901.73125,816999  42% 5% 5% 63% †
Java 72.931.52294,7841661  32% 59% 58% 47% †
 binary-trees 
Haskell GHC36.9912.30365,756612  68% 67% 67% 99%
Java 721.359.21525,4201007  50% 70% 48% 65%
 mandelbrot 
Haskell GHC43.9411.0233,928782  100% 100% 100% 100%
Java 727.146.9067,612796  98% 98% 99% 99%
 k-nucleotide 
Haskell GHC79.2621.34374,3641965  91% 91% 95% 95%
Java 744.8312.93494,2641602  84% 81% 85% 99%
 fasta-redux 
No program
Java 70.130.11?1443  0% 18% 0% 91%

† possible mismatch - one-core program compared to multi-core program.

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

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

 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