The Computer Language
Benchmarks Game

Erlang HiPE 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.

binary-trees
source secs mem gz busy cpu load
Erlang HiPE 4.12 460,684 478 12.01 77% 66% 75% 73%
Java 2.49 2,490,296 835 7.88 92% 75% 78% 72%
fannkuch-redux
source secs mem gz busy cpu load
Erlang HiPE 59.89 24,880 1038 234.88 99% 95% 99% 99%
Java 9.94 34,188 1282 39.21 99% 98% 99% 97%
spectral-norm
source secs mem gz busy cpu load
Erlang HiPE 11.17 36,596 747 44.05 99% 99% 98% 98%
Java 1.66 38,280 950 6.36 97% 95% 96% 96%
regex-redux
source secs mem gz busy cpu load
Erlang HiPE 41.91 3,377,136 1048 61.09 16% 45% 22% 63%
Java 5.58 656,192 929 17.84 83% 83% 80% 74%
pidigits
source secs mem gz busy cpu load
Erlang HiPE 7.89 28,324 562 8.51 2% 3% 96% 6%
Java 0.94 35,604 764 0.99 1% 4% 3% 97%
reverse-complement
source secs mem gz busy cpu load
Erlang HiPE 25.49 2,842,416 1302 68.58 70% 59% 71% 68%
Java 1.53 720,672 2183 3.57 52% 63% 59% 59%
k-nucleotide
source secs mem gz busy cpu load
Erlang HiPE 84.67 830,416 937 238.48 68% 75% 61% 78%
Java 4.88 409,508 1812 15.86 75% 88% 86% 77%
mandelbrot
source secs mem gz busy cpu load
Erlang HiPE 85.08 55,736 806 340.11 100% 100% 100% 100%
Java 4.15 70,040 796 16.34 98% 98% 99% 98%
n-body
source secs mem gz busy cpu load
Erlang HiPE 140.37 23,972 1399 143.03 1% 99% 1% 1%
Java 6.76 35,156 1489 6.83 1% 0% 100% 1%
fasta
source secs mem gz busy cpu load
Erlang HiPE 56.64 24,760 1039 71.26 6% 100% 8% 12%
Java 1.28 44,172 2473 4.17 83% 78% 88% 76%
Erlang HiPE

Erlang/OTP 23 [erts-11.0] [source] [64-bit]
[smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Java

openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)