The Computer Language
Benchmarks Game

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

regex-redux
source secs mem gz busy cpu load
Julia 1.75 384,588 759 3.10 6% 67% 93% 12%
Java 5.70 656,328 929 18.25 89% 76% 79% 75%
mandelbrot
source secs mem gz busy cpu load
Julia 1.38 235,276 621 4.78 83% 83% 83% 99%
Java 4.11 68,204 796 16.20 98% 99% 98% 99%
n-body
source secs mem gz busy cpu load
Julia 4.00 212,108 1112 4.30 99% 3% 3% 3%
Java 6.75 35,200 1489 6.83 0% 0% 100% 1%
fannkuch-redux
source secs mem gz busy cpu load
Julia 7.96 197,292 1067 30.06 94% 95% 94% 94%
Java 11.00 34,104 1282 43.42 99% 98% 98% 99%
spectral-norm
source secs mem gz busy cpu load
Julia 1.23 180,836 521 3.87 73% 71% 91% 80%
Java 1.68 38,348 950 6.43 96% 96% 96% 95%
k-nucleotide
source secs mem gz busy cpu load
Julia 4.66 360,436 945 10.68 39% 52% 53% 85%
Java 5.00 408,040 1812 16.36 74% 81% 86% 86%
reverse-complement
source secs mem gz busy cpu load
Julia 1.50 671,028 522 1.77 7% 9% 96% 7%
Java 1.54 702,332 2183 3.55 78% 46% 49% 57%
pidigits
source secs mem gz busy cpu load
Julia 1.00 168,088 506 1.31 11% 99% 11% 10%
Java 0.79 35,568 764 0.84 99% 3% 3% 1%
fasta
source secs mem gz busy cpu load
Julia 1.72 354,912 1182 4.90 79% 75% 63% 69%
Java 1.27 43,968 2473 3.92 73% 95% 70% 70%
binary-trees
source secs mem gz busy cpu load
Julia 9.67 604,312 372 29.97 75% 84% 72% 78%
Java 2.50 2,487,096 835 7.90 88% 75% 75% 79%
Julia

julia version 1.5.0

Java

openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)