The Computer Language
24.11 Benchmarks Game

Julia versus Classic Fortran fastest performance

How the programs are written matters! 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 seconds, less gz source code.

fannkuch-redux
source secs mem gz cpu secs
* Julia #2 8.49 251,248 1077 31.91
* Julia #3 9.33 248,484 896 35.56
Classic Fortran 38.89 19,644 608 38.88
Classic Fortran #3 10.34 19,644 1164 41.22
Julia 42.59 226,292 441 42.67
n-body
source secs mem gz cpu secs
Julia #5 3.67 261,584 1129 3.77
Classic Fortran #6 4.22 19,644 1530 4.22
Classic Fortran #2 5.38 19,644 1507 5.38
Classic Fortran 5.44 19,644 1400 5.44
Classic Fortran #5 6.05 19,908 1669 6.04
Classic Fortran #4 6.18 19,652 1183 6.18
Classic Fortran #3 6.33 19,900 1311 6.33
Julia #4 6.48 263,596 1168 6.57
Julia #3 6.92 264,476 1548 7.01
Julia #2 28.72 278,196 1084 28.92
spectral-norm
source secs mem gz cpu secs
Classic Fortran #2 2.67 19,652 520 2.67
Classic Fortran #3 0.72 19,652 644 2.85
Julia #4 1.18 232,768 435 3.66
Julia #2 1.76 261,124 377 4.80
mandelbrot
source secs mem gz cpu secs
Julia #7 1.41 273,748 629 4.79
Julia #2 1.44 272,612 634 4.88
Julia #3 1.50 291,868 589 5.11
Julia #4 1.96 283,940 583 5.12
Classic Fortran #7 1.42 75,676 965 5.62
Julia #5 1.63 296,828 580 5.76
Julia #6 2.12 289,896 571 5.80
Classic Fortran #6 3.27 79,872 669 10.81
Julia 26.55 254,964 379 26.63
Classic Fortran #4 10.39 79,616 626 26.81
Classic Fortran #5 45.21 43,520 528 45.21
fasta
source secs mem gz cpu secs
Julia #2 1.17 234,156 1094 1.25
Classic Fortran #4 2.06 19,644 1355 2.06
Julia #5 2.57 250,416 957 2.66
Julia #4 2.62 236,892 1053 2.72
* Julia #6 2.12 353,084 1213 4.86
* Julia #7 1.87 348,656 1189 5.33
Classic Fortran #3 6.42 19,644 1217 6.42
Classic Fortran 6.85 19,644 1193 6.85
Julia #3 11.61 234,416 901 11.70
k-nucleotide
source secs mem gz cpu secs
Julia #6 6.03 429,688 965 14.32
Julia #7 8.87 479,756 1379 22.94
Julia 132.60 1,558,404 703 132.21
Classic Fortran   Make Error  
reverse-complement
source secs mem gz cpu secs
Julia #7 1.65 1,024,148 531 1.76
Julia #9 2.00 1,220,680 456 2.11
Classic Fortran 4.22 986,300 1026 4.22
Julia #2 29.29 1,951,468 464 29.83
Classic Fortran #2 42.39 769,748 778 42.38
binary-trees
source secs mem gz cpu secs
Classic Fortran #2 2.17 140,416 1155 6.84
Julia #4 10.32 443,600 378 11.22
Julia #2 11.38 441,140 430 12.44
Julia #3 7.08 486,976 640 19.44
Classic Fortran 31.78 525,824 780 31.77
Julia #5 17.97 482,024 396 57.53
pidigits
source secs mem gz cpu secs
* Classic Fortran #4 0.88 19,652 987 0.88
* Julia #3 1.04 223,936 512 1.18
* Julia #2 1.14 232,460 686 1.26
regex-redux
source secs mem gz cpu secs
* Classic Fortran 0.95 180,044 2229 3.12
* Julia #5 1.80 431,004 766 3.12
* Julia #4 1.89 433,140 772 3.22
* Julia #3 2.07 578,576 630 3.51
Julia 4.10 606,148 414 4.24
Julia

julia version 1.11.1

Classic Fortran

Fortran Compiler Classic
2021.12.0 20240222