The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Classic Fortran versus Fortran gfortran

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
Classic Fortran 1,636 599 38.94
Classic Fortran #3 11,084 1158 41.57
Fortran gfortran #3 10,308 1158 42.93
Fortran gfortran 1,456 599 44.17
n-body
source mem gz cpu
Classic Fortran #6 628 1524 4.22
Fortran gfortran 1,484 1393 5.23
Classic Fortran #2 612 1500 5.37
Fortran gfortran #6 1,540 1524 5.43
Classic Fortran 1,344 1393 5.49
Fortran gfortran #3 1,540 1305 5.64
Classic Fortran #4 1,344 1179 6.18
Classic Fortran #5 1,344 1664 6.19
Classic Fortran #3 1,344 1305 6.31
Fortran gfortran #2 1,420 1500 6.32
Fortran gfortran #5 1,480 1664 6.36
Fortran gfortran #4   Bad Output  
spectral-norm
source mem gz cpu
Classic Fortran #2 1,972 513 2.66
Classic Fortran #3 1,800 638 2.86
Fortran gfortran #2 2,532 513 5.35
Fortran gfortran #3 1,528 638 5.68
mandelbrot
source mem gz cpu
Fortran gfortran #8 34,588 957 4.06
Classic Fortran #8 35,968 957 5.60
Fortran gfortran #6 34,220 661 6.23
Classic Fortran #6 76,148 661 10.63
Fortran gfortran #4 33,732 618 26.28
Classic Fortran #4 75,660 618 26.45
Fortran gfortran #5 1,424 520 35.20
Classic Fortran #5 43,800 520 45.10
pidigits
source mem gz cpu
Classic Fortran #4 4,360 981 0.73
Fortran gfortran #4 3,764 981 0.74
regex-redux
source mem gz cpu
Classic Fortran 175,968 2225 3.07
Fortran gfortran   Failed  
fasta
source mem gz cpu
Fortran gfortran #4 1,536 1351 1.68
Classic Fortran #4 672 1351 2.07
Fortran gfortran 1,536 1190 4.72
Classic Fortran #3 1,404 1215 6.36
Classic Fortran 1,400 1190 6.80
Fortran gfortran #3   Make Error  
k-nucleotide
source mem gz cpu
Classic Fortran   Make Error  
Fortran gfortran   Make Error  
reverse-complement
source mem gz cpu
Classic Fortran 985,592 1019 4.02
Fortran gfortran #2 765,948 772 15.23
Classic Fortran #2 752,488 772 38.53
Fortran gfortran   Bad Output  
binary-trees
source mem gz cpu
Fortran gfortran #2 135,140 1148 4.57
Classic Fortran #2 136,860 1148 6.74
Fortran gfortran 264,580 773 17.12
Classic Fortran 525,944 773 32.50
Classic Fortran

Fortran Intel(R) 64 Classic
Version 2021.5.0
Build 20211109_000000

Fortran gfortran

Ubuntu 11.2.0-19ubuntu1