The Computer Language
Benchmarks Game

Julia versus Java fastest programs

by faster benchmark performance

regex-redux
source secs mem gz cpu cpu load
Julia 5.79 349,840 408 6.10 3% 99% 2% 2%
Java 10.50 571,736 929 31.63 71% 73% 66% 92%
fannkuch-redux
source secs mem gz cpu cpu load
Julia 11.28 178,540 1067 43.15 95% 95% 95% 100%
Java 17.98 31,180 1282 70.57 97% 99% 97% 99%
n-body
source secs mem gz cpu cpu load
Julia 22.85 169,788 1149 23.16 2% 100% 1% 1%
Java 22.00 32,272 1489 22.07 1% 0% 0% 100%
spectral-norm
source secs mem gz cpu cpu load
Julia 4.67 160,808 370 17.28 90% 99% 90% 91%
Java 4.26 33,572 950 16.39 96% 96% 98% 95%
fasta
source secs mem gz cpu cpu load
Julia 9.33 199,104 1192 9.64 2% 2% 100% 1%
Java 2.32 42,212 2473 6.30 65% 85% 47% 76%
mandelbrot
source secs mem gz cpu cpu load
Julia 44.14 184,408 373 44.44 2% 99% 1% 1%
Java 6.96 76,316 796 27.06 97% 97% 97% 97%
binary-trees
source secs mem gz cpu cpu load
Julia 96.33 707,548 436 96.54 1% 1% 0% 100%
Java 8.39 960,056 835 27.39 81% 85% 74% 90%
k-nucleotide
source secs mem gz cpu cpu load
Julia 165.54 2,961,276 1014 606.78 96% 89% 96% 88%
Java 8.74 470,116 1812 27.12 71% 73% 93% 74%
reverse-complement
source secs mem gz cpu cpu load
Julia 68.32 1,630,008 460 68.55 1% 1% 48% 53%
Java 3.32 609,712 2183 7.54 64% 44% 44% 76%
pidigits
source secs mem gz cpu cpu load
Julia   Bad Output
Java 1.85 ? 938 ? 12% 28% 50% 16%
Julia

julia version 1.1.0
export JULIA_NUM_THREADS=4

Java

openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)