The Computer Language
24.09 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 #3 8.07 259,604 896 30.57
Julia #2 8.39 265,264 1077 31.43
Classic Fortran 38.89 19,644 608 38.88
Julia 38.97 244,240 441 39.05
Classic Fortran #3 10.34 19,644 1164 41.22
n-body
source secs mem gz cpu secs
Classic Fortran #6 4.22 19,644 1530 4.22
Julia #8 4.18 276,224 1129 4.27
Classic Fortran #2 5.38 19,644 1507 5.38
Classic Fortran 5.44 19,644 1400 5.44
Julia #4 5.76 255,488 1168 5.85
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 #3 6.55 258,432 1548 6.64
Julia #2 24.04 304,404 1084 24.16
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.19 252,416 435 3.68
Julia #2 1.37 259,328 377 4.08
mandelbrot
source secs mem gz cpu secs
Julia #7 1.41 293,752 629 4.81
Julia #8 1.43 292,736 634 4.90
Julia #4 2.00 302,464 583 5.28
Julia #3 1.55 318,080 589 5.31
Classic Fortran #8 1.43 79,104 965 5.63
Julia #5 1.60 314,240 580 5.64
Julia #6 2.12 294,336 571 5.75
Classic Fortran #6 3.27 79,872 669 10.81
Julia 26.50 274,304 379 26.59
Classic Fortran #4 10.39 79,616 626 26.81
Classic Fortran #5 45.21 43,520 528 45.21
pidigits
source secs mem gz cpu secs
Classic Fortran #4 0.88 19,652 987 0.88
Julia #3 1.02 244,096 512 1.15
Julia #2 1.13 252,060 686 1.26
regex-redux
source secs mem gz cpu secs
Julia #5 1.78 448,196 766 3.11
Classic Fortran 0.95 180,044 2229 3.12
Julia #4 1.83 453,000 772 3.18
Julia #3 2.26 488,172 630 3.79
Julia 3.91 493,276 414 4.11
fasta
source secs mem gz cpu secs
Julia #8 1.11 249,472 1094 1.20
Classic Fortran #4 2.06 19,644 1355 2.06
Julia #5 2.43 266,524 957 2.52
Julia #4 2.82 252,700 1053 2.91
Julia #6 2.07 459,620 1213 4.66
Julia #7 1.83 436,604 1189 5.05
Classic Fortran #3 6.42 19,644 1217 6.42
Classic Fortran 6.85 19,644 1193 6.85
Julia #3 11.41 251,292 901 11.50
k-nucleotide
source secs mem gz cpu secs
Julia #8 5.46 440,624 965 13.22
Julia #7 9.08 445,588 1379 24.35
Julia 141.08 1,972,516 703 140.03
Classic Fortran   Make Error  
reverse-complement
source secs mem gz cpu secs
Julia #8 1.63 1,043,456 531 1.76
Julia #9 1.87 1,041,788 456 2.00
Classic Fortran 4.22 986,300 1026 4.22
Julia #2 35.75 1,911,596 464 36.47
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
Classic Fortran 31.78 525,824 780 31.77
Julia #2 17.96 659,396 430 36.38
Julia #3 14.58 660,940 640 40.85
Julia #4 14.17 509,044 378 43.67
Julia #5 19.62 464,332 396 66.68
Julia

julia version 1.10.5

Classic Fortran

Fortran Compiler Classic
2021.12.0 20240222