The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Julia versus Java

Always look at the source code.

If the fastest programs are hand-written vector instructions, does the host language matter? You might be more interested in the less optimised programs — more cpu seconds, less gz source code.

fannkuch-redux
source mem gz cpu
Julia #2 211,980 1067 29.46
Julia #3 204,120 886 31.21
Java #3 35,324 1257 41.17
Java 35,824 1282 41.74
Julia 181,932 434 44.01
Java #2 34,244 514 44.98
n-body
source mem gz cpu
Julia #8 225,844 1111 4.49
Julia #4 202,592 1155 5.95
Java #5 34,252 1429 6.79
Java #4 34,076 1489 6.79
Julia #3 207,868 1541 7.05
Java #3 34,612 1430 7.50
Java #2 34,704 1424 7.50
Java 37,380 1430 7.83
Julia #2 268,512 1078 24.49
spectral-norm
source mem gz cpu
Julia #4 188,696 429 3.72
Julia #2 200,160 370 5.12
Java #3 38,428 756 5.94
Java 37,288 514 9.76
Java #2 37,368 950 10.07
mandelbrot
source mem gz cpu
Julia #7 236,644 619 5.08
Julia #8 236,112 624 5.24
Julia #6 253,220 562 5.87
Julia #5 272,904 571 5.94
Julia #4 257,796 574 7.69
Julia #3 273,584 579 7.77
Java #4 66,304 660 16.16
Java #2 68,860 796 16.21
Java #6 67,432 802 16.92
Julia 210,712 373 27.06
Java 34,252 665 27.75
Java #3 69,200 903 29.18
pidigits
source mem gz cpu
Java #3 35,700 764 0.82
Julia #3 179,360 506 1.24
Julia #2 190,376 674 1.34
Java #2 38,328 938 1.53
Julia 265,496 275 2.15
Java 513,728 800 8.94
regex-redux
source mem gz cpu
Julia #5 403,608 759 3.12
Julia #4 410,768 766 3.19
Julia #3 502,440 622 3.68
Julia 380,060 408 3.88
Java 924,116 868 17.12
Java #6 728,332 740 17.16
Java #3 741,028 929 17.34
fasta
source mem gz cpu
Julia #8 198,752 1082 1.40
Julia #5 219,876 950 2.89
Julia #4 203,872 1049 3.12
Java #4 36,800 1524 3.41
Java #6 42,416 2543 3.52
Java #5 42,532 2473 4.14
Java #2 36,812 1257 4.46
Julia #7 459,380 1182 4.92
Julia #6 407,228 1203 5.54
Julia #3 237,412 896 27.78
k-nucleotide
source mem gz cpu
Julia #8 366,728 951 11.31
Java 349,544 1812 16.17
Julia #7 370,872 1368 18.12
Java #6 343,684 1607 25.67
Java #3 344,652 1635 25.73
Java #4 199,824 1882 37.48
Java #5 210,368 2219 43.27
Julia 1,962,152 695 196.54
reverse-complement
source mem gz cpu
Julia #8 683,748 522 1.71
Julia #9 681,000 449 1.95
Java #8 665,804 2183 3.49
Java #6 2,024,016 752 4.15
Java #5 1,088,392 1108 4.92
Java #3 1,170,232 1722 5.09
Java #4 1,881,900 651 5.41
Java #7 1,030,892 1647 23.16
Julia #2 1,742,028 460 32.14
binary-trees
source mem gz cpu
Java #3 2,106,820 540 5.19
Java #6 2,093,916 529 5.35
Java #4 2,079,388 840 5.44
Java #2 1,877,464 552 5.45
Java #7 2,460,388 835 7.73
Julia #2 600,804 423 37.16
Julia #4 495,284 372 47.16
Julia #3 608,728 634 48.85
Julia #5 665,480 390 79.14
Julia

julia version 1.7.2

Java

openjdk 18 2022-03-22
OpenJDK Runtime Environment
(build 18+36-2087)
OpenJDK 64-Bit Server VM
(build 18+36-2087,
mixed mode, sharing)