/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 Python 3 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 Python 3 program.

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta1/781/2±
 spectral-norm1/651/5
 fannkuch-redux1/501/3
 n-body1/461/3
 mandelbrot1/45±
 binary-trees1/311/4±
 k-nucleotide1/7±
 reverse-complement1/41/5
 pidigits±±±
 regex-dna±±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/781/781/501/361/41/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 Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta 
Haskell GHC3.363.362,364979  0% 0% 0% 100%
Python 3259.48262.344,672788  0% 1% 1% 100%
 spectral-norm 
Haskell GHC15.7215.721,056984  0% 0% 0% 100%
Python 31,018.201,018.445,208328  0% 0% 0% 100%
 fannkuch-redux 
Haskell GHC63.9263.941,5881153  0% 0% 0% 100%
Python 32,903.203,204.314,564385  0% 0% 0% 100%
 n-body 
Haskell GHC23.6823.691,8401874  0% 0% 0% 100%
Python 31,098.651,098.894,7001181  0% 0% 0% 100%
 mandelbrot 
Haskell GHC43.9643.9835,364782  0% 0% 0% 100%
Python 31,845.311,968.406,748777  1% 0% 0% 100%
 binary-trees 
Haskell GHC16.4916.51183,532612  0% 0% 1% 100%
Python 3504.56504.93685,724626  0% 0% 0% 100%
 k-nucleotide 
Haskell GHC71.5571.61308,8602749  0% 0% 0% 100%
Python 3474.71474.95426,212647  1% 0% 0% 100%
 reverse-complement 
Haskell GHC1.541.55125,748999  0% 1% 0% 100%
Python 36.506.51616,588325  0% 0% 0% 100%
 pidigits 
Haskell GHC3.063.075,284341  0% 1% 1% 100%
Python 33.063.065,408255  1% 0% 1% 100%
 regex-dna 
Haskell GHC28.4628.48266,4841518  0% 0% 0% 100%
Python 321.1321.14194,612424  0% 0% 0% 100%
 fasta-redux
   No programs

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

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