The Computer Language
Benchmarks Game

Erlang HiPE programs versus Java

by benchmark task performance

binary-trees
source secs mem gz cpu cpu load
Erlang HiPE 8.05 571,444 478 27.34 96% 81% 81% 84%
Java 8.58 966,808 835 28.98 86% 84% 90% 81%
spectral-norm
source secs mem gz cpu cpu load
Erlang HiPE 18.00 35,760 747 70.43 98% 98% 98% 98%
Java 4.25 36,364 950 16.30 97% 96% 95% 97%
pidigits
source secs mem gz cpu cpu load
Erlang HiPE 16.00 38,356 512 18.67 3% 36% 4% 76%
Java 3.12 37,444 938 3.30 2% 5% 98% 4%
fannkuch-redux
source secs mem gz cpu cpu load
Erlang HiPE 117.45 22,708 1038 460.48 98% 100% 97% 97%
Java 15.09 34,764 1282 59.26 99% 98% 98% 100%
n-body
source secs mem gz cpu cpu load
Erlang HiPE 205.63 24,960 1399 205.62 13% 87% 0% 1%
Java 22.56 35,208 1424 22.65 99% 1% 1% 1%
reverse-complement
source secs mem gz cpu cpu load
Erlang HiPE 10.86 855,552 1302 27.02 59% 63% 79% 50%
Java 1.13 199,672 2124 2.76 48% 74% 70% 54%
fasta
source secs mem gz cpu cpu load
Erlang HiPE 32.24 29,896 1164 33.77 3% 72% 30% 1%
Java 2.32 46,816 2457 6.37 61% 60% 96% 60%
k-nucleotide
source secs mem gz cpu cpu load
Erlang HiPE 163.56 1,077,148 932 438.08 51% 57% 99% 64%
Java 8.38 375,988 1802 26.25 73% 97% 70% 74%
mandelbrot
source secs mem gz cpu cpu load
Erlang HiPE 127.17 1,303,564 613 500.64 98% 99% 99% 99%
Java 6.08 77,056 796 23.61 97% 97% 99% 97%
regex-redux
source secs mem gz cpu cpu load
Erlang HiPE   Bad Output
Java 0.56 37,036 929 1.45 67% 52% 93% 58%
Erlang HiPE

Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Java

java 9
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)