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.17 385,804 478 11.73 67% 84% 62% 69%
Java 2.50 2,487,096 835 7.90 88% 75% 75% 79%
fannkuch-redux
source secs mem gz busy cpu load
Erlang HiPE 59.08 24,856 1038 234.23 99% 99% 99% 99%
Java 11.00 34,104 1282 43.42 99% 98% 98% 99%
spectral-norm
source secs mem gz busy cpu load
Erlang HiPE 11.18 36,732 747 44.14 98% 99% 99% 99%
Java 1.68 38,348 950 6.43 96% 96% 96% 95%
regex-redux
source secs mem gz busy cpu load
Erlang HiPE 42.76 3,372,420 1048 61.66 32% 16% 37% 59%
Java 5.70 656,328 929 18.25 89% 76% 79% 75%
pidigits
source secs mem gz busy cpu load
Erlang HiPE 7.94 28,088 562 8.34 8% 88% 2% 7%
Java 0.79 35,568 764 0.84 99% 3% 3% 1%
reverse-complement
source secs mem gz busy cpu load
Erlang HiPE 25.62 2,765,104 1302 68.99 56% 52% 77% 85%
Java 1.54 702,332 2183 3.55 78% 46% 49% 57%
k-nucleotide
source secs mem gz busy cpu load
Erlang HiPE 86.79 855,628 937 239.31 57% 66% 58% 94%
Java 5.00 408,040 1812 16.36 74% 81% 86% 86%
mandelbrot
source secs mem gz busy cpu load
Erlang HiPE 84.88 54,364 806 339.25 100% 100% 100% 100%
Java 4.11 68,204 796 16.20 98% 99% 98% 99%
n-body
source secs mem gz busy cpu load
Erlang HiPE 140.03 24,832 1399 141.22 0% 100% 0% 0%
Java 6.75 35,200 1489 6.83 0% 0% 100% 1%
fasta
source secs mem gz busy cpu load
Erlang HiPE 57.01 25,348 1039 73.11 9% 14% 100% 5%
Java 1.20 44,124 2543 3.61 79% 86% 69% 65%
Erlang HiPE

Erlang/OTP 23 [erts-11.1] [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)