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 Lua 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 Lua program.
| Haskell GHC used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| nsieve-bits | 1/35 | ± | ± | |
| spectral-norm | 1/29 | ± | 2× | |
| fannkuch | 1/24 | ± | 2× | |
| binary-trees | 1/18 | 1/6 | ± | |
| mandelbrot | 1/13 | ± | 2× | |
| n-body | 1/12 | 2× | ± | |
| nsieve | 1/11 | 1/46 | ± | |
| recursive | 1/8 | ± | ± | |
| reverse-complement | 1/7 | ± | 2× | |
| fasta | 1/7 | 2× | ± | |
| pidigits | 1/5 | 1/4 | 1/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 ~ speed and size.
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 |
|---|---|---|---|---|---|
| nsieve-bits | |||||
| Haskell GHC | 0.68 | 1,988 | 388 | ||
| Lua | 23.63 | 2,512 | 426 | ||
| spectral-norm | |||||
| Haskell GHC | 24.82 | 964 | 737 | ||
| Lua | 727.88 | 1,100 | 328 | ||
| fannkuch | |||||
| Haskell GHC | 0.13 | 968 | 1005 | ||
| Lua | 3.21 | 864 | 469 | ||
| binary-trees | |||||
| Haskell GHC | 3.07 | 6,192 | 510 | ||
| Lua | 55.69 | 34,464 | 470 | ||
| mandelbrot | |||||
| Haskell GHC | 0.23 | 952 | 627 | ||
| Lua | 3.02 | 868 | 367 | ||
| n-body | |||||
| Haskell GHC | 48.72 | 1,648 | 1687 | ||
| Lua | 586.85 | 872 | 1265 | ||
| nsieve | |||||
| Haskell GHC | 1.00 | 2,140 | 340 | ||
| Lua | 10.93 | 99,276 | 258 | ||
| recursive | |||||
| Haskell GHC | 0.65 | 988 | 447 | ||
| Lua | 4.86 | 992 | 330 | ||
| reverse-complement | |||||
| Haskell GHC | 1.27 | 64,192 | 915 | ||
| Lua | 8.85 | 43,000 | 538 | ||
| fasta | |||||
| Haskell GHC | 31.42 | 1,516 | 1406 | ||
| Lua | 213.66 | 904 | 993 | ||
| pidigits | |||||
| Haskell GHC | 0.11 | 1,492 | 377 | ||
| Lua | 0.59 | 5,324 | 684 | ||
| 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 | ||
| regex-dna | |||||
| Haskell GHC | |||||
| Lua | 1.88 | 5,588 | 427 | ||
| chameneos-redux | |||||
| Haskell GHC | 0.14 | 1,500 | 789 | ||
Remember - those are just the fastest Haskell GHC and Lua 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 Lua 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.
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/