÷

 Are the Haskell GHC programs faster?

Do the Haskell GHC programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Haskell GHC programs use a fraction of the time used by other programs or do they use several times more?


 Haskell GHC used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ recursive1/851/10±
↓ mandelbrot1/611/2
↓ fannkuch1/471/2
↓ n-body1/41±
↓ nsieve-bits1/351/3±
↓ binary-trees1/281/2±
↓ chameneos-redux1/231/2±
↓ fasta1/11±±
↓ partial-sums1/61/3±
↓ sum-file1/5±
↓ nsieve1/41/6
↓ reverse-complement1/2±
↓ k-nucleotide1/2
↓ pidigits±±±

± look at the measurements and then look at the programs.

 Are the Haskell GHC programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 recursive 
Haskell GHC8.051,464447  
Python CPython683.7414,296360  
 mandelbrot 
Haskell GHC5.321,332627  
Python CPython323.702,420303  
 fannkuch 
Haskell GHC16.579921005  
Python CPython772.842,404411  
 n-body 
Haskell GHC48.721,6481687  
Python CPython2,015.782,4401027  
 nsieve-bits 
Haskell GHC4.123,728388  
Python CPython144.4012,436288  
 binary-trees 
Haskell GHC3.359,152512  
Python CPython93.4116,116418  
 chameneos-redux 
Haskell GHC11.931,528789  
Python CPython275.842,576866  
 fasta 
Haskell GHC62.221,6841096  
Python CPython692.042,420779  
 partial-sums 
Haskell GHC4.36864476  
Python CPython27.412,476395  
 sum-file 
Haskell GHC4.562,816162  
Python CPython20.752,44477  
 nsieve 
Haskell GHC2.126,060396  
Python CPython8.5735,220246  
 reverse-complement 
Haskell GHC1.2764,192915  
Python CPython2.7349,072288  
 k-nucleotide 
Haskell GHC28.56164,7121767  
Python CPython58.4525,208475  
 pidigits 
Haskell GHC2.862,488377  
Python CPython2.062,928476  
 spectral-norm 
Haskell GHC24.82964737  
No Python CPython
 regex-dna
   No program

 Haskell GHC : lazy pure functional programming 

Glasgow Haskell Compiler, Version 6.8.2, for Haskell 98, stage 2 booted by GHC version 6.8.2

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

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

Revised BSD license