The Computer Language
Benchmarks Game

Fortran Intel programs versus C++ g++

by benchmark task performance

spectral-norm
source secs mem gz cpu cpu load
Fortran Intel 1.98 2,944 638 7.88 100% 100% 100% 99%
C++ g++ 2.02 1,332 1044 7.91 99% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
Fortran Intel 8.21 8 1524 8.21 0% 100% 1% 0%
C++ g++ 8.23 1,856 1763 8.23 100% 1% 1% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Fortran Intel 12.93 10,848 1158 51.60 100% 100% 100% 100%
C++ g++ 10.61 2,044 980 41.90 100% 96% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
Fortran Intel 1.17 121,864 1019 1.16 100% 0% 1% 2%
C++ g++ 0.64 247,800 2280 1.03 89% 22% 31% 30%
fasta
source secs mem gz cpu cpu load
Fortran Intel 2.91 8 1351 2.90 100% 0% 1% 2%
C++ g++ 1.49 4,372 2324 5.28 89% 88% 90% 90%
binary-trees
source secs mem gz cpu cpu load
Fortran Intel 5.84 115,892 1148 17.30 63% 68% 66% 100%
C++ g++ 2.55 135,568 809 7.99 85% 96% 69% 66%
mandelbrot
source secs mem gz cpu cpu load
Fortran Intel 6.16 59,724 661 20.76 79% 80% 79% 100%
C++ g++ 1.64 27,636 1002 6.51 100% 99% 100% 99%
regex-redux
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.02 ? 1315 0.06 100% 50% 67% 100%
k-nucleotide
source secs mem gz cpu cpu load
Fortran Intel   Failed
C++ g++ 0.41 740 1276 0.73 30% 38% 93% 28%
pidigits
source secs mem gz cpu cpu load
Fortran Intel   Failed
C++ g++ 0.07 ? 513 0.07 0% 0% 86% 13%
Fortran Intel

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

C++ g++

g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0