/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® quad-core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest OCaml program.
These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.
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 | |
| fasta | 1/3 | 1/75 | ± | |
| binary-trees | ± | 4× | ± | |
| mandelbrot | ± | 6× | ± | |
| k-nucleotide | ± | ± | ± | |
| spectral-norm | ± | 1/2 | ± | |
| n-body | ± | 3× | 2× | |
| pidigits † | ± | ± | 1/2 | |
| regex-dna | ± | ± | ± | |
| reverse-complement | 2× | 4× | ± | |
| fannkuch-redux † | 4× | 1/5 | 1/2 | |
| Haskell GHC used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/3 | 1/3 | ± | ± | ± | ± | 4× |
† possible mismatch - one-core program compared to multi-core program.
± read the measurements and then read the program source code.
These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.
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 |
|---|---|---|---|---|---|
| fasta | |||||
| Haskell GHC | 4.68 | 4.03 | 2,632 | 979 | 5% 86% 19% 5% |
| OCaml | 10.50 | 10.52 | 198,060 | 1161 | 0% 0% 0% 100% |
| binary-trees | |||||
| Haskell GHC | 65.00 | 20.04 | 787,716 | 612 | 90% 85% 75% 75% |
| OCaml | 67.33 | 27.17 | 201,692 | 784 | 40% 84% 55% 71% |
| mandelbrot | |||||
| Haskell GHC | 43.66 | 10.95 | 36,536 | 782 | 100% 100% 100% 100% |
| OCaml | 55.57 | 13.98 | 6,316 | 710 | 99% 100% 100% 100% |
| k-nucleotide | |||||
| Haskell GHC | 68.50 | 18.58 | 374,488 | 1693 | 91% 93% 93% 93% |
| OCaml | 56.82 | 21.99 | 258,480 | 1789 | 55% 39% 100% 65% |
| spectral-norm | |||||
| Haskell GHC | 15.70 | 4.04 | 1,584 | 984 | 97% 98% 95% 100% |
| OCaml | 16.58 | 4.39 | 3,504 | 938 | 99% 98% 99% 99% |
| n-body | |||||
| Haskell GHC | 24.86 | 23.44 | 2,376 | 1874 | 64% 6% 17% 20% |
| OCaml | 23.82 | 23.83 | 716 | 1239 | 0% 0% 0% 100% |
| pidigits | |||||
| Haskell GHC | 4.18 | 2.77 | 6,076 | 341 | 18% 100% 17% 14% † |
| OCaml | 2.80 | 2.81 | 9,036 | 560 | 0% 3% 1% 100% † |
| regex-dna | |||||
| Haskell GHC | 36.53 | 9.58 | 248,772 | 1518 | 95% 97% 95% 96% |
| OCaml | 1.45 | 9.20 | 264,704 | 1050 | 84% 85% 86% 99% |
| reverse-complement | |||||
| Haskell GHC | 1.78 | 1.49 | 126,196 | 999 | 80% 28% 6% 9% |
| OCaml | 0.00 | 0.81 | 31,052 | 1314 | 49% 42% 48% 75% |
| fannkuch-redux | |||||
| Haskell GHC | 75.48 | 68.67 | 2,336 | 658 | 15% 42% 43% 10% † |
| OCaml | 0.00 | 16.36 | 11,552 | 1004 | 100% 100% 100% 100% † |
| fasta-redux | |||||
† possible mismatch - one-core program compared to multi-core program.
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.
llvm version 3.1-2ubuntu1
The Glorious Glasgow Haskell Compilation System, version 7.6.2
Home Page: http://www.haskell.org/
Download: http://www.haskell.org/ghc/