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 OCaml 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 OCaml program.
| Haskell GHC used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| nsieve | 1/2 | 1/4 | ± | |
| recursive | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| spectral-norm | ± | ± | 2× | |
| nsieve-bits | ± | ± | 2× | |
| n-body | ± | 3× | ± | |
| partial-sums | ± | 2× | ± | |
| fasta | ± | 1/2 | ± | |
| fannkuch | ± | 2× | 2× | |
| reverse-complement | ± | ± | 2× | |
| k-nucleotide | 2× | 5× | 2× | |
| binary-trees | 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 OCaml program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| nsieve | |||||
| Haskell GHC | 1.00 | 2,140 | 340 | ||
| OCaml | 2.16 | 9,380 | 295 | ||
| recursive | |||||
| Haskell GHC | 0.65 | 988 | 447 | ||
| OCaml | 0.92 | 948 | 389 | ||
| mandelbrot | |||||
| Haskell GHC | 0.23 | 952 | 627 | ||
| OCaml | 0.29 | 716 | 444 | ||
| spectral-norm | |||||
| Haskell GHC | 24.82 | 964 | 737 | ||
| OCaml | 31.63 | 1,196 | 369 | ||
| nsieve-bits | |||||
| Haskell GHC | 0.68 | 1,988 | 388 | ||
| OCaml | 0.80 | 1,584 | 176 | ||
| n-body | |||||
| Haskell GHC | 48.72 | 1,648 | 1687 | ||
| OCaml | 54.00 | 644 | 1239 | ||
| partial-sums | |||||
| Haskell GHC | 4.36 | 864 | 476 | ||
| OCaml | 4.64 | 564 | 508 | ||
| fasta | |||||
| Haskell GHC | 31.42 | 1,516 | 1406 | ||
| OCaml | 27.89 | 3,280 | 984 | ||
| fannkuch | |||||
| Haskell GHC | 0.13 | 968 | 1005 | ||
| OCaml | 0.11 | 592 | 485 | ||
| reverse-complement | |||||
| Haskell GHC | 1.27 | 64,192 | 915 | ||
| OCaml | 1.02 | 47,244 | 540 | ||
| k-nucleotide | |||||
| Haskell GHC | 28.56 | 164,712 | 1767 | ||
| OCaml | 13.83 | 34,636 | 845 | ||
| binary-trees | |||||
| Haskell GHC | 3.07 | 6,192 | 510 | ||
| OCaml | 1.44 | 8,844 | 502 | ||
| regex-dna | |||||
| Haskell GHC | |||||
| OCaml | 0.95 | 13,836 | 615 | ||
| pidigits | |||||
| Haskell GHC | 0.97 | 2,124 | 377 | ||
| OCaml | |||||
| chameneos-redux | |||||
| Haskell GHC | 0.14 | 1,500 | 789 | ||
Remember - those are just the fastest Haskell GHC and OCaml 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 OCaml 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/