The Computer Language
Benchmarks Game

Julia versus Java 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
Julia 1.67 394,692 759 3.07 72% 99% 7% 6%
Java 5.58 985,696 929 18.26 81% 77% 84% 85%
mandelbrot
source secs mem gz busy cpu load
Julia 1.70 239,084 621 6.14 88% 87% 87% 99%
Java 4.15 69,136 796 16.29 98% 99% 98% 99%
n-body
source secs mem gz busy cpu load
Julia 4.34 226,468 1112 4.61 2% 2% 2% 100%
Java 6.74 35,844 1489 6.82 1% 100% 1% 0%
fannkuch-redux
source secs mem gz busy cpu load
Julia 7.64 205,056 1067 28.96 95% 95% 94% 95%
Java 10.64 35,192 1282 41.91 99% 98% 99% 97%
spectral-norm
source secs mem gz busy cpu load
Julia 1.47 200,604 391 4.11 99% 60% 60% 60%
Java 1.63 39,304 756 6.22 95% 97% 95% 95%
pidigits
source secs mem gz busy cpu load
Julia 0.97 173,020 506 1.27 10% 99% 11% 10%
Java 0.93 36,552 764 0.98 2% 3% 1% 99%
reverse-complement
source secs mem gz busy cpu load
Julia 1.61 677,192 522 1.89 99% 7% 6% 6%
Java 1.54 670,924 2183 3.51 46% 56% 48% 79%
k-nucleotide
source secs mem gz busy cpu load
Julia 5.37 370,020 951 12.17 26% 64% 77% 60%
Java 4.98 356,904 1812 16.25 78% 76% 96% 76%
fasta
source secs mem gz busy cpu load
Julia 1.77 372,128 1182 4.21 51% 75% 49% 63%
Java 1.21 44,620 2543 3.58 89% 75% 65% 68%
binary-trees
source secs mem gz busy cpu load
Julia 17.28 418,492 372 45.74 61% 67% 69% 69%
Java 2.48 1,722,848 835 7.88 98% 75% 71% 74%
Julia

julia version 1.6.0

Java

openjdk 16 2021-03-16
OpenJDK Runtime Environment (build 16+36-2231)
OpenJDK 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)