÷

 Step 1 : Are the Haskell GHC programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest PHP program.


 Step 2 : Are the Haskell GHC programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Haskell GHC program used compared to the fastest PHP program.

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body1/1011/3±
 fannkuch1/621/5
 nsieve-bits1/541/6±
 binary-trees1/511/13±
 recursive1/471/5±
 fasta1/471/2±
 pidigits1/391/21/2
 nsieve1/281/6
 spectral-norm1/101/3±
 partial-sums1/101/2±
 regex-dna1/2±±
 k-nucleotide±±
 reverse-complement11×±

± read the measurements and then read the program source code.

 Step 3 : Are the Haskell GHC programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest Haskell GHC program are shown for comparison against measurements of the fastest PHP program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
Haskell GHC27.382,0121687  
PHP2,772.216,2681289  
 fannkuch 
Haskell GHC0.171,3401005  
PHP10.686,188484  
 nsieve-bits 
Haskell GHC0.743,108388  
PHP39.4817,944317  
 binary-trees 
Haskell GHC3.956,112510  
PHP201.0182,456493  
 recursive 
Haskell GHC0.541,416447  
PHP25.536,984315  
 fasta 
Haskell GHC44.823,1201406  
PHP2,094.326,4001029  
 pidigits 
Haskell GHC11.053,244377  
PHP432.387,892736  
 nsieve 
Haskell GHC0.751,972340  
PHP20.6911,268221  
 spectral-norm 
Haskell GHC379.788,080396  
PHP3,698.2223,392315  
 partial-sums 
Haskell GHC2.233,148476  
PHP21.516,124367  
 regex-dna 
Haskell GHC1.048,712495  
PHP2.319,496675  
 k-nucleotide 
Haskell GHC149.5529,5321015  
PHP97.2626,588818  
 reverse-complement 
Haskell GHC41.45485,680488  
PHP3.7465,724508  
 mandelbrot 
Haskell GHCFailed
PHP351.076,312395  
 chameneos-redux 
Haskell GHC0.133,084789  
No program

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

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

 Step 5 : Are there other faster programs for these benchmarks?

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

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

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

Revised BSD license

  Home   Flawed   Fastest   License   Help