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 C++ GNU g++ 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 C++ GNU g++ program.
| Haskell GHC used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| chameneos-redux | ± | 2× | 1/2 | |
| nsieve | ± | ± | ± | |
| spectral-norm | ± | ± | 2× | |
| nsieve-bits | ± | ± | ± | |
| partial-sums | ± | ± | ± | |
| mandelbrot | 2× | ± | 1/2 | |
| pidigits | 2× | 2× | 1/2 | |
| fasta | 2× | 2× | ± | |
| fannkuch | 2× | ± | 2× | |
| reverse-complement | 2× | 5× | ± | |
| n-body | 3× | 2× | ± | |
| k-nucleotide | 4× | 18× | ± | |
| recursive | 4× | ± | ± | |
| binary-trees | 12× | 3× | 1/2 | |
± 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 C++ GNU g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| chameneos-redux | |||||
| Haskell GHC | 11.93 | 1,528 | 789 | ||
| C++ GNU g++ | 16.69 | 1,004 | 1729 | ||
| nsieve | |||||
| Haskell GHC | 1.00 | 2,140 | 340 | ||
| C++ GNU g++ | 1.29 | 1,468 | 379 | ||
| spectral-norm | |||||
| Haskell GHC | 24.82 | 964 | 737 | ||
| C++ GNU g++ | 23.84 | 900 | 442 | ||
| nsieve-bits | |||||
| Haskell GHC | 0.68 | 1,988 | 388 | ||
| C++ GNU g++ | 0.62 | 1,440 | 494 | ||
| partial-sums | |||||
| Haskell GHC | 4.36 | 864 | 476 | ||
| C++ GNU g++ | 3.21 | 952 | 709 | ||
| mandelbrot | |||||
| Haskell GHC | 0.23 | 952 | 627 | ||
| C++ GNU g++ | 0.14 | 896 | 1097 | ||
| pidigits | |||||
| Haskell GHC | 0.11 | 1,492 | 377 | ||
| C++ GNU g++ | 0.07 | 948 | 652 | ||
| fasta | |||||
| Haskell GHC | 31.42 | 1,516 | 1406 | ||
| C++ GNU g++ | 18.72 | 788 | 1248 | ||
| fannkuch | |||||
| Haskell GHC | 0.13 | 968 | 1005 | ||
| C++ GNU g++ | 0.06 | 844 | 554 | ||
| reverse-complement | |||||
| Haskell GHC | 1.27 | 64,192 | 915 | ||
| C++ GNU g++ | 0.54 | 13,288 | 810 | ||
| n-body | |||||
| Haskell GHC | 48.72 | 1,648 | 1687 | ||
| C++ GNU g++ | 14.62 | 932 | 1705 | ||
| k-nucleotide | |||||
| Haskell GHC | 28.56 | 164,712 | 1767 | ||
| C++ GNU g++ | 7.46 | 9,304 | 1380 | ||
| recursive | |||||
| Haskell GHC | 0.65 | 988 | 447 | ||
| C++ GNU g++ | 0.16 | 884 | 566 | ||
| binary-trees | |||||
| Haskell GHC | 3.07 | 6,192 | 510 | ||
| C++ GNU g++ | 0.26 | 2,192 | 814 | ||
| regex-dna | |||||
| Haskell GHC | |||||
| C++ GNU g++ | 1.14 | 2,960 | 1588 | ||
Remember - those are just the fastest Haskell GHC and C++ GNU g++ 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 C++ GNU g++ 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/