The Computer Language
Benchmarks Game

Fortran Intel programs versus C++ g++

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Fortran Intel 8.11 8 1518 8.11 0% 1% 100% 1%
C++ g++ 9.30 1,712 1763 9.29 100% 1% 1% 0%
spectral-norm
source secs mem gz cpu cpu load
Fortran Intel 1.99 4,876 638 7.91 100% 99% 100% 100%
C++ g++ 2.01 1,792 1044 8.00 100% 100% 100% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Fortran Intel 12.45 12,236 1148 49.60 100% 100% 100% 100%
C++ g++ 10.39 2,592 980 40.76 95% 99% 98% 100%
fasta
source secs mem gz cpu cpu load
Fortran Intel 2.50 8 1327 2.50 1% 0% 100% 2%
C++ g++ 1.47 9,484 2291 5.13 88% 88% 87% 88%
reverse-complement
source secs mem gz cpu cpu load
Fortran Intel 1.02 149,936 1013 1.01 0% 1% 1% 99%
C++ g++ 0.59 217,564 2275 0.84 26% 78% 12% 34%
binary-trees
source secs mem gz cpu cpu load
Fortran Intel 5.32 123,092 1148 15.82 68% 74% 92% 67%
C++ g++ 2.34 104,212 809 7.58 85% 88% 83% 70%
mandelbrot
source secs mem gz cpu cpu load
Fortran Intel 18.89 64,588 611 48.78 92% 42% 92% 33%
C++ g++ 5.82 33,952 726 22.40 96% 95% 95% 100%
k-nucleotide
source secs mem gz cpu cpu load
Fortran Intel 86.93 203,808 2238 86.86 100% 1% 0% 0%
C++ g++ 7.15 164,080 1252 24.21 82% 83% 80% 96%
regex-redux
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.09 ? 848 0.09 22% 100% 11% 13%
pidigits
source secs mem gz cpu cpu load
Fortran Intel   Failed
C++ g++ 0.07 ? 508 0.07 0% 13% 100% 0%
Fortran Intel

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

C++ g++

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609