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%
fasta
source secs mem gz cpu cpu load
Fortran Intel 2.91 8 1351 2.90 100% 0% 1% 2%
C++ g++ 1.35 1,952 2711 4.18 79% 78% 78% 79%
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.51 25,704 1791 5.99 99% 100% 100% 100%
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%
reverse-complement
source secs mem gz cpu cpu load
Fortran Intel   Make Error
C++ g++ 0.03 ? 2280 0.04 100% 25% 33% 75%
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