The Computer Language
Benchmarks Game

Erlang HiPE versus Java fastest programs

by faster benchmark performance

binary-trees
source secs mem gz cpu cpu load
Erlang HiPE 8.03 472,836 478 23.07 80% 69% 75% 66%
Java 8.28 982,224 835 27.19 79% 86% 83% 83%
spectral-norm
source secs mem gz cpu cpu load
Erlang HiPE 17.78 31,840 747 63.77 93% 89% 89% 88%
Java 4.27 32,960 950 16.41 95% 97% 98% 96%
pidigits
source secs mem gz cpu cpu load
Erlang HiPE 13.79 46,228 562 16.86 13% 25% 6% 79%
Java 3.13 37,324 938 3.35 98% 5% 3% 3%
fannkuch-redux
source secs mem gz cpu cpu load
Erlang HiPE 80.09 23,912 1038 315.04 97% 100% 97% 99%
Java 17.91 31,560 1282 70.25 99% 98% 99% 97%
n-body
source secs mem gz cpu cpu load
Erlang HiPE 188.59 23,660 1399 188.61 53% 0% 1% 48%
Java 22.00 32,496 1489 22.07 1% 100% 0% 1%
fasta
source secs mem gz cpu cpu load
Erlang HiPE 29.08 24,468 1164 30.93 75% 27% 4% 2%
Java 2.32 42,556 2473 6.24 73% 85% 49% 63%
k-nucleotide
source secs mem gz cpu cpu load
Erlang HiPE 116.31 799,336 937 328.73 62% 63% 98% 60%
Java 8.66 385,768 1812 26.52 76% 81% 74% 76%
reverse-complement
source secs mem gz cpu cpu load
Erlang HiPE 47.62 1,864,772 1302 109.20 52% 49% 79% 51%
Java 3.31 626,956 2183 7.44 56% 60% 83% 45%
mandelbrot
source secs mem gz cpu cpu load
Erlang HiPE 115.08 49,176 806 459.19 100% 100% 100% 100%
Java 6.96 76,748 796 27.07 98% 98% 96% 98%
regex-redux
source secs mem gz cpu cpu load
Erlang HiPE   Bad Output
Java 0.57 39,944 929 1.71 84% 63% 72% 81%
Erlang HiPE

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

Java

openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)