OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest Lua program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest Haskell GHC program used compared to the fastest Lua program.
| Haskell GHC used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| fannkuch | 1/31 | ± | 2× | |
| spectral-norm | 1/29 | ± | 2× | |
| nsieve-bits | 1/24 | 1/2 | ± | |
| mandelbrot | 1/16 | 2× | 2× | |
| pidigits | 1/15 | 2× | 1/3 | |
| recursive | 1/14 | 1/2 | ± | |
| n-body | 1/12 | 2× | ± | |
| reverse-complement | 1/7 | ± | 2× | |
| nsieve | 1/5 | 1/16 | 2× | |
| sum-file | 1/5 | 3× | 2× | |
| fasta | 1/3 | 2× | ± | |
| partial-sums | 1/2 | ± | ± | |
| k-nucleotide | ± | 4× | 3× | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
For each named benchmark, measurements of the fastest Haskell GHC program are shown for comparison against measurements of the fastest Lua program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| fannkuch | |||||
| Haskell GHC | 16.57 | 992 | 1005 | ||
| Lua | 508.06 | 864 | 469 | ||
| spectral-norm | |||||
| Haskell GHC | 24.82 | 964 | 737 | ||
| Lua | 727.88 | 1,100 | 328 | ||
| nsieve-bits | |||||
| Haskell GHC | 4.12 | 3,728 | 388 | ||
| Lua | 99.67 | 7,120 | 426 | ||
| mandelbrot | |||||
| Haskell GHC | 5.32 | 1,332 | 627 | ||
| Lua | 83.21 | 864 | 367 | ||
| pidigits | |||||
| Haskell GHC | 2.86 | 2,488 | 377 | ||
| Lua | 41.43 | 1,148 | 1005 | ||
| recursive | |||||
| Haskell GHC | 8.05 | 1,464 | 447 | ||
| Lua | 114.38 | 2,280 | 330 | ||
| n-body | |||||
| Haskell GHC | 48.72 | 1,648 | 1687 | ||
| Lua | 586.85 | 872 | 1265 | ||
| reverse-complement | |||||
| Haskell GHC | 1.27 | 64,192 | 915 | ||
| Lua | 8.85 | 43,000 | 538 | ||
| nsieve | |||||
| Haskell GHC | 2.12 | 6,060 | 396 | ||
| Lua | 10.93 | 99,276 | 258 | ||
| sum-file | |||||
| Haskell GHC | 4.56 | 2,816 | 162 | ||
| Lua | 21.84 | 840 | 82 | ||
| fasta | |||||
| Haskell GHC | 62.22 | 1,684 | 1096 | ||
| Lua | 213.66 | 904 | 993 | ||
| partial-sums | |||||
| Haskell GHC | 4.36 | 864 | 476 | ||
| Lua | 7.45 | 900 | 437 | ||
| k-nucleotide | |||||
| Haskell GHC | 28.56 | 164,712 | 1767 | ||
| Lua | 35.43 | 38,248 | 613 | ||
| binary-trees | |||||
| Haskell GHC | 3.35 | 9,152 | 512 | ||
| chameneos-redux | |||||
| Haskell GHC | 11.93 | 1,528 | 789 | ||
| regex-dna | |||||
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/