/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® one core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest Java 7 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 Java 7 program.
| Haskell GHC used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| pidigits | 1/2 | 1/11 | 1/5 | |
| fasta | ± | 1/7 | 1/2 | |
| reverse-complement | ± | 1/4 | ± | |
| spectral-norm | ± | 1/13 | 2× | |
| fannkuch-redux | ± | 1/9 | 1/2 | |
| n-body | ± | 1/8 | ± | |
| k-nucleotide | ± | ± | ± | |
| regex-dna | ± | 1/2 | ± | |
| binary-trees | ± | ± | ± | |
| mandelbrot | 2× | 1/2 | ± | |
| Haskell GHC used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | ± | ± | ± | 2× | 2× |
± 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 Java 7 program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| pidigits | |||||
| Haskell GHC | 3.40 | 3.41 | 5,788 | 341 | 0% 1% 0% 100% |
| Java 7 | 5.90 | 5.91 | 63,344 | 1826 | 0% 0% 0% 100% |
| fasta | |||||
| Haskell GHC | 3.56 | 3.56 | 2,624 | 979 | 0% 1% 0% 100% |
| Java 7 | 5.18 | 5.19 | 18,132 | 1507 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Haskell GHC | 1.25 | 1.26 | 126,096 | 999 | 1% 1% 0% 100% |
| Java 7 | 1.79 | 1.83 | 514,504 | 745 | 0% 1% 0% 99% |
| spectral-norm | |||||
| Haskell GHC | 15.69 | 15.70 | 1,460 | 984 | 0% 0% 0% 100% |
| Java 7 | 17.00 | 17.00 | 18,320 | 514 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Haskell GHC | 66.34 | 66.36 | 1,972 | 658 | 0% 0% 0% 100% |
| Java 7 | 70.18 | 70.20 | 17,168 | 1282 | 0% 0% 0% 100% |
| n-body | |||||
| Haskell GHC | 22.93 | 22.94 | 2,240 | 1874 | 0% 0% 0% 100% |
| Java 7 | 22.51 | 22.52 | 17,016 | 1424 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Haskell GHC | 58.22 | 58.29 | 357,524 | 1693 | 0% 0% 0% 100% |
| Java 7 | 50.50 | 50.55 | 451,208 | 1602 | 0% 0% 0% 100% |
| regex-dna | |||||
| Haskell GHC | 27.21 | 27.22 | 329,352 | 1518 | 0% 1% 0% 100% |
| Java 7 | 23.11 | 23.17 | 561,732 | 1284 | 0% 0% 0% 100% |
| binary-trees | |||||
| Haskell GHC | 21.75 | 21.78 | 361,864 | 521 | 0% 0% 0% 100% |
| Java 7 | 16.37 | 16.42 | 499,404 | 603 | 0% 1% 0% 100% |
| mandelbrot | |||||
| Haskell GHC | 43.36 | 43.38 | 38,408 | 782 | 0% 0% 0% 100% |
| Java 7 | 23.79 | 23.80 | 69,816 | 796 | 0% 0% 0% 100% |
| fasta-redux | |||||
| Java 7 | 0.12 | 0.12 | ? | 1443 | 0% 0% 0% 100% |
Remember - those are just the fastest Haskell GHC and Java 7 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 Java 7 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/