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 8.33 468,264 478 25.17 76% 83% 71% 72%
Java 8.28 948,040 835 28.20 80% 84% 87% 90%
spectral-norm
source secs mem gz busy cpu load
Erlang HiPE 16.73 34,356 747 64.19 97% 95% 95% 97%
Java 4.15 36,428 950 16.26 98% 100% 98% 97%
fannkuch-redux
source secs mem gz busy cpu load
Erlang HiPE 84.89 24,188 1038 337.93 99% 100% 99% 100%
Java 16.12 33,168 1282 63.71 100% 98% 99% 98%
regex-redux
source secs mem gz busy cpu load
Erlang HiPE 60.01 2,136,672 1048 101.58 39% 41% 36% 53%
Java 10.27 635,500 740 29.42 74% 81% 55% 76%
n-body
source secs mem gz busy cpu load
Erlang HiPE 191.97 24,504 1399 204.49 37% 33% 26% 11%
Java 21.85 34,112 1489 22.16 1% 0% 0% 100%
pidigits
source secs mem gz busy cpu load
Erlang HiPE 16.33 27,624 562 17.76 9% 4% 3% 93%
Java 1.83 34,848 764 1.95 99% 1% 4% 2%
reverse-complement
source secs mem gz busy cpu load
Erlang HiPE 41.88 2,600,884 1302 115.39 74% 77% 62% 62%
Java 3.27 714,144 2183 7.54 47% 60% 66% 58%
k-nucleotide
source secs mem gz busy cpu load
Erlang HiPE 144.25 757,756 937 407.46 91% 66% 62% 63%
Java 9.14 403,576 1812 29.10 87% 72% 74% 86%
mandelbrot
source secs mem gz busy cpu load
Erlang HiPE 109.96 51,676 792 439.44 100% 100% 100% 100%
Java 6.84 76,008 796 26.90 99% 98% 98% 98%
fasta
source secs mem gz busy cpu load
Erlang HiPE 48.18 24,632 1164 52.97 6% 51% 49% 4%
Java 2.22 43,096 2473 6.10 67% 83% 45% 80%
Erlang HiPE

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

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)