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.10 445,948 478 23.68 86% 69% 73% 67%
Java 8.39 960,056 835 27.39 81% 85% 74% 90%
spectral-norm
source secs mem gz cpu cpu load
Erlang HiPE 15.65 31,372 747 61.61 98% 98% 99% 98%
Java 4.26 33,572 950 16.39 96% 96% 98% 95%
pidigits
source secs mem gz cpu cpu load
Erlang HiPE 13.82 47,968 562 16.72 20% 53% 47% 5%
Java 3.13 37,376 938 3.35 1% 98% 4% 6%
fannkuch-redux
source secs mem gz cpu cpu load
Erlang HiPE 89.99 23,220 1038 354.73 100% 100% 100% 100%
Java 17.98 31,180 1282 70.57 97% 99% 97% 99%
n-body
source secs mem gz cpu cpu load
Erlang HiPE 193.34 23,508 1399 193.35 0% 0% 1% 99%
Java 22.00 32,272 1489 22.07 1% 0% 0% 100%
k-nucleotide
source secs mem gz cpu cpu load
Erlang HiPE 121.75 716,452 937 355.34 72% 72% 70% 80%
Java 8.74 470,116 1812 27.12 71% 73% 93% 74%
fasta
source secs mem gz cpu cpu load
Erlang HiPE 32.67 24,032 1164 36.11 99% 3% 4% 4%
Java 2.32 42,212 2473 6.30 65% 85% 47% 76%
mandelbrot
source secs mem gz cpu cpu load
Erlang HiPE 110.80 52,960 806 442.45 100% 100% 100% 100%
Java 6.96 76,316 796 27.06 97% 97% 97% 97%
reverse-complement
source secs mem gz cpu cpu load
Erlang HiPE 61.76 2,006,232 1302 130.49 69% 62% 58% 51%
Java 3.32 609,712 2183 7.54 64% 44% 44% 76%
regex-redux
source secs mem gz cpu cpu load
Erlang HiPE   Bad Output
Java 2.67 39,376 929 2.01 37% 21% 51% 37%
Erlang HiPE

Erlang/OTP 21 [erts-10.1] [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)