The Computer Language
Benchmarks Game

Java versus Java GraalVM 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.

mandelbrot
source secs mem gz busy cpu load
Java 5.93 76,272 796 23.28 97% 99% 98% 98%
Java GraalVM 7.98 131,056 796 31.22 98% 97% 98% 98%
reverse-complement
source secs mem gz busy cpu load
Java 3.14 730,620 2183 7.02 72% 45% 51% 55%
Java GraalVM 3.84 763,192 2183 7.45 35% 92% 33% 34%
spectral-norm
source secs mem gz busy cpu load
Java 4.14 36,456 950 16.16 97% 99% 98% 97%
Java GraalVM 4.39 86,164 756 16.82 95% 97% 96% 95%
binary-trees
source secs mem gz busy cpu load
Java 8.25 964,656 835 27.65 79% 96% 76% 84%
Java GraalVM 8.67 1,046,756 835 28.99 83% 87% 88% 77%
fannkuch-redux
source secs mem gz busy cpu load
Java 17.89 33,352 1282 70.90 98% 100% 100% 99%
Java GraalVM 18.33 91,856 1282 72.34 99% 98% 98% 99%
pidigits
source secs mem gz busy cpu load
Java 3.07 38,408 938 3.39 0% 8% 99% 3%
Java GraalVM 3.13 93,844 938 3.58 94% 8% 6% 5%
k-nucleotide
source secs mem gz busy cpu load
Java 9.08 404,688 1812 29.03 77% 77% 93% 73%
Java GraalVM 9.03 559,900 1812 27.93 72% 93% 71% 74%
regex-redux
source secs mem gz busy cpu load
Java 10.13 644,456 929 31.05 73% 75% 91% 67%
Java GraalVM 9.49 695,848 740 27.22 75% 77% 71% 63%
fasta
source secs mem gz busy cpu load
Java 2.23 43,292 2473 6.05 63% 48% 92% 68%
Java GraalVM 2.04 111,808 2473 5.78 78% 81% 58% 68%
n-body
source secs mem gz busy cpu load
Java 22.67 34,892 1429 23.01 1% 0% 0% 100%
Java GraalVM 20.26 92,404 1489 20.77 1% 1% 99% 1%
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)

Java GraalVM

openjdk 11.0.6 2020-01-14
OpenJDK Runtime Environment GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02)
OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02, mixed mode, sharing)