The Q6600
Benchmarks Game

Haskell GHC versus Java fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

regex-redux
source secs mem gz busy cpu load
Haskell GHC 1.68 308,212 2213 3.92 46% 77% 44% 66%
Java 10.27 635,500 740 29.42 74% 81% 55% 76%
fasta
source secs mem gz busy cpu load
Haskell GHC 1.40 8,020 1882 4.16 74% 74% 74% 75%
Java 2.22 43,096 2473 6.10 67% 83% 45% 80%
mandelbrot
source secs mem gz busy cpu load
Haskell GHC 5.06 37,660 1975 20.09 98% 100% 100% 100%
Java 6.84 76,008 796 26.90 99% 98% 98% 98%
pidigits
source secs mem gz busy cpu load
Haskell GHC 1.76 6,516 1694 1.79 0% 1% 1% 99%
Java 1.83 34,848 764 1.95 99% 1% 4% 2%
spectral-norm
source secs mem gz busy cpu load
Haskell GHC 4.09 4,184 987 16.03 98% 99% 99% 97%
Java 4.15 36,428 950 16.26 98% 100% 98% 97%
n-body
source secs mem gz busy cpu load
Haskell GHC 21.87 4,388 1883 86.43 98% 100% 98% 99%
Java 21.85 34,112 1489 22.16 1% 0% 0% 100%
fannkuch-redux
source secs mem gz busy cpu load
Haskell GHC 18.64 4,392 842 73.68 97% 99% 99% 100%
Java 16.12 33,168 1282 63.71 100% 98% 99% 98%
binary-trees
source secs mem gz busy cpu load
Haskell GHC 13.41 450,148 592 49.72 93% 92% 96% 90%
Java 8.28 948,040 835 28.20 80% 84% 87% 90%
reverse-complement
source secs mem gz busy cpu load
Haskell GHC 6.59 501,560 1020 9.74 92% 15% 19% 22%
Java 3.27 714,144 2183 7.54 47% 60% 66% 58%
k-nucleotide
source secs mem gz busy cpu load
Haskell GHC 36.99 639,092 1486 130.13 89% 87% 88% 88%
Java 9.14 403,576 1812 29.10 87% 72% 74% 86%
Haskell GHC

The Glorious Glasgow Haskell Compilation System,
version 8.8.1

Java

openjdk 14 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)