OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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.
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-body | 1/101 | 1/3 | ± | |
| fannkuch | 1/62 | 1/5 | 2× | |
| nsieve-bits | 1/54 | 1/6 | ± | |
| binary-trees | 1/51 | 1/13 | ± | |
| recursive | 1/47 | 1/5 | ± | |
| fasta | 1/47 | 1/2 | ± | |
| pidigits | 1/39 | 1/2 | 1/2 | |
| nsieve | 1/28 | 1/6 | 2× | |
| spectral-norm | 1/10 | 1/3 | ± | |
| partial-sums | 1/10 | 1/2 | ± | |
| regex-dna | 1/2 | ± | ± | |
| k-nucleotide | 2× | ± | ± | |
| reverse-complement | 11× | 7× | ± | |
± read the measurements and then read the program source code.
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 GHC | 27.38 | 2,012 | 1687 | ||
| PHP | 2,772.21 | 6,268 | 1289 | ||
| fannkuch | |||||
| Haskell GHC | 0.17 | 1,340 | 1005 | ||
| PHP | 10.68 | 6,188 | 484 | ||
| nsieve-bits | |||||
| Haskell GHC | 0.74 | 3,108 | 388 | ||
| PHP | 39.48 | 17,944 | 317 | ||
| binary-trees | |||||
| Haskell GHC | 3.95 | 6,112 | 510 | ||
| PHP | 201.01 | 82,456 | 493 | ||
| recursive | |||||
| Haskell GHC | 0.54 | 1,416 | 447 | ||
| PHP | 25.53 | 6,984 | 315 | ||
| fasta | |||||
| Haskell GHC | 44.82 | 3,120 | 1406 | ||
| PHP | 2,094.32 | 6,400 | 1029 | ||
| pidigits | |||||
| Haskell GHC | 11.05 | 3,244 | 377 | ||
| PHP | 432.38 | 7,892 | 736 | ||
| nsieve | |||||
| Haskell GHC | 0.75 | 1,972 | 340 | ||
| PHP | 20.69 | 11,268 | 221 | ||
| spectral-norm | |||||
| Haskell GHC | 379.78 | 8,080 | 396 | ||
| PHP | 3,698.22 | 23,392 | 315 | ||
| partial-sums | |||||
| Haskell GHC | 2.23 | 3,148 | 476 | ||
| PHP | 21.51 | 6,124 | 367 | ||
| regex-dna | |||||
| Haskell GHC | 1.04 | 8,712 | 495 | ||
| PHP | 2.31 | 9,496 | 675 | ||
| k-nucleotide | |||||
| Haskell GHC | 149.55 | 29,532 | 1015 | ||
| PHP | 97.26 | 26,588 | 818 | ||
| reverse-complement | |||||
| Haskell GHC | 41.45 | 485,680 | 488 | ||
| PHP | 3.74 | 65,724 | 508 | ||
| mandelbrot | |||||
| Haskell GHC | |||||
| PHP | 351.07 | 6,312 | 395 | ||
| chameneos-redux | |||||
| Haskell GHC | 0.13 | 3,084 | 789 | ||
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.
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.
The Glorious Glasgow Haskell Compilation System, version 6.6.1
Home Page: http://www.haskell.org/
Download: http://www.haskell.org/ghc/