The Computer Language
Benchmarks Game

Fortran Intel 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.

pidigits
source secs mem gz busy cpu load
Fortran Intel 1.74 4,040 981 1.77 1% 0% 100% 1%
C gcc 1.75 2,804 452 1.77 0% 100% 0% 1%
spectral-norm
source secs mem gz busy cpu load
Fortran Intel 1.98 3,000 638 7.91 99% 99% 100% 100%
C gcc 1.98 1,236 569 7.87 99% 99% 99% 99%
n-body
source secs mem gz busy cpu load
Fortran Intel 8.29 8 1524 8.40 100% 0% 0% 1%
C gcc 7.30 8 1391 7.33 0% 0% 1% 100%
regex-redux
source secs mem gz busy cpu load
Fortran Intel 1.79 172,936 2225 4.90 60% 59% 56% 99%
C gcc 1.47 152,156 1397 3.46 47% 100% 43% 45%
fannkuch-redux
source secs mem gz busy cpu load
Fortran Intel 12.54 10,976 1158 50.05 100% 100% 100% 100%
C gcc 8.74 936 910 34.47 100% 95% 100% 100%
binary-trees
source secs mem gz busy cpu load
Fortran Intel 5.48 113,176 1148 15.91 63% 90% 75% 63%
C gcc 3.53 168,764 809 11.64 74% 99% 72% 85%
fasta
source secs mem gz busy cpu load
Fortran Intel 3.35 8 1351 3.39 1% 0% 100% 0%
C gcc 1.46 2,976 2268 5.82 99% 100% 99% 99%
reverse-complement
source secs mem gz busy cpu load
Fortran Intel 4.88 985,368 1019 4.94 100% 1% 1% 0%
C gcc 1.91 532,932 820 2.59 21% 16% 99% 0%
mandelbrot
source secs mem gz busy cpu load
Fortran Intel 6.76 61,868 661 23.26 82% 81% 82% 100%
C gcc 1.64 27,016 1135 6.54 100% 99% 100% 100%
k-nucleotide
source secs mem gz busy cpu load
Fortran Intel 98.50 175,060 2238 100.11 1% 30% 70% 0%
C gcc 5.09 130,092 1506 16.69 100% 86% 60% 82%
Fortran Intel

Intel(R) Fortran Intel(R) 64 Compiler
for applications running on Intel(R) 64,
Version 19.1.0.166 Build 20191121
Copyright (C) 1985-2019 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

C gcc

gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008