The Computer Language
Benchmarks Game

Java versus Java OpenJ9 fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

regex-redux
source secs mem gz busy cpu load
Java 5.31 793,572 929 17.50 79% 78% 83% 89%
Java OpenJ9 8.94 924,720 740 23.05 52% 57% 97% 53%
reverse-complement
source secs mem gz busy cpu load
Java 1.53 687,864 2183 3.50 80% 46% 57% 46%
Java OpenJ9 2.37 975,096 2183 5.10 86% 35% 54% 40%
spectral-norm
source secs mem gz busy cpu load
Java 1.58 39,408 756 5.97 94% 94% 96% 94%
Java OpenJ9 2.06 66,712 950 7.63 91% 90% 98% 92%
mandelbrot
source secs mem gz busy cpu load
Java 4.12 70,952 796 16.22 98% 98% 98% 99%
Java OpenJ9 5.18 114,756 802 20.30 98% 97% 97% 100%
fasta
source secs mem gz busy cpu load
Java 1.19 44,740 2543 3.50 75% 63% 87% 70%
Java OpenJ9 1.48 67,860 2473 4.51 69% 94% 70% 71%
k-nucleotide
source secs mem gz busy cpu load
Java 4.85 354,288 1812 15.92 80% 85% 87% 76%
Java OpenJ9 5.96 402,992 1812 17.89 79% 76% 77% 68%
fannkuch-redux
source secs mem gz busy cpu load
Java 10.38 35,388 1282 40.84 99% 99% 98% 97%
Java OpenJ9 12.36 59,128 1282 48.79 98% 99% 99% 99%
n-body
source secs mem gz busy cpu load
Java 6.77 35,432 1489 6.82 100% 1% 0% 0%
Java OpenJ9 7.77 72,216 1430 8.05 1% 100% 1% 2%
pidigits
source secs mem gz busy cpu load
Java 0.93 36,088 764 0.97 4% 0% 1% 99%
Java OpenJ9 1.04 69,112 764 1.10 0% 99% 5% 2%
binary-trees
source secs mem gz busy cpu load
Java 2.48 1,725,776 835 7.86 74% 75% 97% 72%
Java OpenJ9 2.27 973,292 835 7.41 74% 76% 96% 80%
Java

openjdk 17 2021-09-14
OpenJDK Runtime Environment (build 17+35-2724)
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

Java OpenJ9

openjdk 16 2021-03-16
OpenJDK Runtime Environment AdoptOpenJDK (build 16+36)
Eclipse OpenJ9 VM AdoptOpenJDK
build openj9-0.25.0 (JIT enabled, AOT enabled)