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 3.04 439,520 766 5.17 4% 62% 5% 98%
Java 10.27 635,500 740 29.42 74% 81% 55% 76%
mandelbrot
source secs mem gz busy cpu load
Julia 2.64 224,160 619 9.34 86% 98% 85% 85%
Java 6.84 76,008 796 26.90 99% 98% 98% 98%
n-body
source secs mem gz busy cpu load
Julia 9.57 240,732 1112 10.20 2% 70% 32% 3%
Java 21.85 34,112 1489 22.16 1% 0% 0% 100%
fannkuch-redux
source secs mem gz busy cpu load
Julia 10.62 190,312 886 39.95 93% 92% 99% 93%
Java 16.12 33,168 1282 63.71 100% 98% 99% 98%
spectral-norm
source secs mem gz busy cpu load
Julia 2.79 179,764 521 9.07 75% 75% 76% 99%
Java 4.15 36,428 950 16.26 98% 100% 98% 97%
k-nucleotide
source secs mem gz busy cpu load
Julia 7.55 344,020 945 17.36 61% 41% 50% 78%
Java 9.14 403,576 1812 29.10 87% 72% 74% 86%
reverse-complement
source secs mem gz busy cpu load
Julia 3.03 671,492 522 3.54 5% 8% 6% 98%
Java 3.27 714,144 2183 7.54 47% 60% 66% 58%
pidigits
source secs mem gz busy cpu load
Julia 2.06 169,012 506 2.55 99% 6% 13% 6%
Java 1.83 34,848 764 1.95 99% 1% 4% 2%
fasta
source secs mem gz busy cpu load
Julia 2.93 363,468 1182 8.91 74% 79% 78% 73%
Java 2.22 43,096 2473 6.10 67% 83% 45% 80%
binary-trees
source secs mem gz busy cpu load
Julia 20.21 601,980 372 66.53 90% 78% 82% 79%
Java 8.28 948,040 835 28.20 80% 84% 87% 90%
Julia

julia version 1.4.0

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)