The Computer Language
Benchmarks Game

Intel Fortran versus C gcc fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

n-body
source secs mem gz busy cpu load
Intel Fortran 4.22 12 1524 4.34 100% 1% 1% 2%
C gcc 4.30 8 1391 4.32 100% 0% 0% 0%
spectral-norm
source secs mem gz busy cpu load
Intel Fortran 0.72 1,776 638 2.85 100% 100% 99% 99%
C gcc 0.72 1,216 569 2.85 99% 100% 100% 99%
pidigits
source secs mem gz busy cpu load
Intel Fortran 0.74 4,004 981 0.75 0% 0% 100% 1%
C gcc 0.73 2,844 416 0.78 0% 100% 6% 0%
mandelbrot
source secs mem gz busy cpu load
Intel Fortran 1.42 36,184 957 5.63 99% 100% 99% 99%
C gcc 1.27 31,480 1135 5.08 100% 99% 100% 100%
regex-redux
source secs mem gz busy cpu load
Intel Fortran 0.99 176,200 2225 3.06 68% 73% 71% 98%
C gcc 0.80 152,244 1397 2.02 48% 53% 100% 53%
binary-trees
source secs mem gz busy cpu load
Intel Fortran 2.38 133,752 1148 7.45 100% 70% 70% 73%
C gcc 1.78 168,764 809 5.23 63% 69% 100% 62%
fannkuch-redux
source secs mem gz busy cpu load
Intel Fortran 10.16 11,048 1158 40.55 100% 100% 100% 100%
C gcc 7.53 892 910 29.41 99% 98% 100% 93%
fasta
source secs mem gz busy cpu load
Intel Fortran 2.06 12 1351 2.06 0% 0% 0% 100%
C gcc 0.82 2,900 2268 3.28 100% 99% 100% 100%
reverse-complement
source secs mem gz busy cpu load
Intel Fortran 3.90 985,352 1019 4.11 1% 100% 4% 1%
C gcc 0.87 694,780 820 1.36 18% 99% 12% 28%
k-nucleotide
source secs mem gz busy cpu load
Intel Fortran   Make Error
C gcc 3.71 130,048 1506 12.15 100% 90% 82% 55%
Intel Fortran

Intel(R) Fortran Intel(R) 64 Compiler
for applications runn304 Build 20200925_0ing on Intel(R) 64,
Version 19.1.3.304 Build 20200925_000000
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

C gcc

gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0