The Computer Language
24.04 Benchmarks Game

Classic Fortran versus Intel C 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
Intel C #6 2.30 19,852 1582 9.08
Intel C #4 13.35 19,728 1190 13.35
Intel C #5 7.13 19,852 917 28.23
Intel C #2 8.70 19,856 1563 34.12
Intel C #3 34.49 19,724 574 34.49
Classic Fortran 38.73 19,724 608 38.73
Classic Fortran #3 10.14 19,724 1164 40.45
Intel C 41.65 19,856 514 41.65
n-body
source secs mem gz cpu secs
Intel C #9 2.03 19,728 1639 2.03
Intel C #8 3.67 19,728 1398 3.67
Classic Fortran #6 4.21 19,856 1530 4.21
Intel C #7 4.56 19,728 1250 4.56
Intel C #4 4.90 19,856 1496 4.90
Classic Fortran #2 5.37 19,856 1507 5.37
Classic Fortran 5.43 19,728 1400 5.43
Intel C #5 5.55 19,728 1436 5.55
Classic Fortran #5 5.98 19,728 1669 5.98
Intel C 6.16 19,728 1179 6.16
Intel C #6 6.16 19,728 1186 6.16
Classic Fortran #4 6.18 19,728 1183 6.18
Intel C #2 6.23 19,728 1270 6.23
Classic Fortran #3 6.32 19,856 1311 6.32
Intel C #3 6.43 19,856 1214 6.43
spectral-norm
source secs mem gz cpu secs
Intel C #6 0.39 19,736 1203 1.55
Classic Fortran #2 2.66 19,736 520 2.66
Intel C 2.67 19,736 390 2.67
Intel C #8 0.72 19,736 941 2.87
Classic Fortran #3 0.72 19,736 644 2.87
Intel C #5 0.72 19,736 576 2.87
Intel C #7 0.73 19,736 906 2.88
Intel C #4 0.73 19,864 1145 2.88
Intel C #3 0.73 19,864 470 2.88
mandelbrot
source secs mem gz cpu secs
Intel C #9 1.31 35,456 700 5.20
Classic Fortran #8 1.42 75,392 965 5.59
Classic Fortran #6 3.27 75,904 669 10.86
Intel C #7 3.00 35,328 1000 11.89
Intel C #4 3.21 35,328 805 12.77
Intel C 3.25 33,024 828 12.94
Intel C #3 3.31 33,024 769 13.17
Intel C #2 23.89 19,728 412 23.89
Classic Fortran #4 10.27 75,904 626 26.58
Classic Fortran #5 45.21 43,648 528 45.21
Intel C #6   Make Error  
Intel C #8   Bad Output  
pidigits
source secs mem gz cpu secs
Intel C #2 0.81 19,728 422 0.81
Classic Fortran #4 0.87 19,728 987 0.87
Intel C 0.88 19,728 459 0.88
regex-redux
source secs mem gz cpu secs
Intel C #5 0.89 154,688 1403 2.86
Classic Fortran 0.93 176,236 2229 3.04
Intel C #2 3.20 103,808 1121 3.20
Intel C #4 1.03 154,672 1237 3.99
Intel C #3 1.83 105,984 1273 4.40
fasta
source secs mem gz cpu secs
Intel C #9 0.87 19,728 1469 0.87
Intel C #5 1.06 19,728 1286 1.06
Intel C #8 1.51 19,856 1299 1.51
Classic Fortran #4 2.05 19,728 1355 2.05
Intel C #7 0.84 19,728 2018 3.27
Intel C #2 0.83 19,728 2276 3.27
Intel C #3 4.07 19,728 825 4.07
Classic Fortran #3 6.55 19,728 1217 6.55
Classic Fortran 6.85 19,728 1193 6.85
Intel C #4   Make Error  
Intel C   Make Error  
Intel C #6   Bad Output  
k-nucleotide
source secs mem gz cpu secs
Intel C 6.01 130,388 1512 13.22
Classic Fortran   Make Error  
reverse-complement
source secs mem gz cpu secs
Intel C #7 0.44 500,148 1899 0.62
Intel C #8 0.46 500,148 1551 0.69
Intel C #2 1.13 994,688 757 1.64
Intel C #5 2.10 994,560 654 2.10
Intel C #4 3.73 500,864 716 3.73
Classic Fortran 4.15 986,304 1026 4.14
Intel C #6 1.07 718,556 828 4.24
Classic Fortran #2 41.23 769,748 778 41.23
binary-trees
source secs mem gz cpu secs
Intel C #2 1.68 171,264 816 5.32
Intel C #3 1.97 135,168 842 6.03
Classic Fortran #2 2.26 136,704 1155 6.87
Intel C 17.09 264,192 660 17.08
Classic Fortran 31.48 525,824 780 31.48
Intel C #5 8.85 351,616 914 31.83
Classic Fortran

Fortran Compiler Classic
2021.11.1 20231117

Intel C

Intel(R) oneAPI DPC++/C++ Compiler
2024.0.2.20231213