/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/551/2±
 spectral-norm1/501/25
 mandelbrot1/411/5±
 n-body1/401/3
 fannkuch-redux †1/131/16±
 binary-trees1/71/2±
 k-nucleotide1/7±
 reverse-complement †1/41/5
 regex-dna±±
 pidigits †±±±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/551/551/411/91/41/2±

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta 
Haskell GHC4.684.032,632979  5% 86% 19% 5%
Python 3219.23222.966,208788  31% 26% 3% 41%
 spectral-norm 
Haskell GHC15.704.041,584984  97% 98% 95% 100%
Python 3804.62202.5439,668437  99% 99% 100% 99%
 mandelbrot 
Haskell GHC43.6610.9536,536782  100% 100% 100% 100%
Python 31,779.60446.24180,408777  100% 100% 100% 100%
 n-body 
Haskell GHC24.8623.442,3761874  64% 6% 17% 20%
Python 3934.69935.016,2921181  8% 74% 18% 0%
 fannkuch-redux 
Haskell GHC75.4868.672,336658  15% 42% 43% 10% †
Python 33,556.66900.6036,288797  99% 100% 97% 99% †
 binary-trees 
Haskell GHC65.0020.04787,716612  90% 85% 75% 75%
Python 3539.48142.511,209,460626  93% 95% 98% 93%
 k-nucleotide 
Haskell GHC68.5018.58374,4881693  91% 93% 93% 93%
Python 3384.41129.56451,488647  60% 98% 58% 81%
 reverse-complement 
Haskell GHC1.781.49126,196999  80% 28% 6% 9% †
Python 35.375.38679,776325  0% 0% 100% 0% †
 regex-dna 
Haskell GHC36.539.58248,7721518  95% 97% 95% 96%
Python 326.3412.88255,724478  41% 33% 99% 32%
 pidigits 
Haskell GHC4.182.776,076341  18% 100% 17% 14% †
Python 32.402.406,972255  0% 0% 100% 1% †
 fasta-redux
   No programs

† 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 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