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 7.95 8 1518 7.94 1% 0% 1% 100%
C++ g++ 9.31 1,052 1544 9.30 1% 1% 1% 100%
spectral-norm
source secs mem gz cpu cpu load
Fortran Intel 1.99 4,928 638 7.90 100% 99% 100% 100%
C++ g++ 1.99 1,880 1044 7.89 100% 99% 99% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Fortran Intel 12.74 12,832 1148 50.79 100% 100% 100% 100%
C++ g++ 10.35 2,624 980 40.60 99% 99% 100% 95%
reverse-complement
source secs mem gz cpu cpu load
Fortran Intel 1.02 150,284 1013 1.01 100% 1% 1% 0%
C++ g++ 0.60 211,852 2275 0.98 38% 25% 82% 27%
fasta
source secs mem gz cpu cpu load
Fortran Intel 2.53 8 1327 2.53 0% 1% 0% 100%
C++ g++ 1.48 4,176 2313 5.25 89% 90% 88% 89%
binary-trees
source secs mem gz cpu cpu load
Fortran Intel 5.50 119,140 1148 16.35 64% 64% 100% 71%
C++ g++ 2.36 114,404 809 7.69 86% 71% 87% 85%
mandelbrot
source secs mem gz cpu cpu load
Fortran Intel 4.60 34,204 698 18.28 100% 100% 100% 100%
C++ g++ 1.73 34,064 1002 6.80 98% 98% 98% 99%
k-nucleotide
source secs mem gz cpu cpu load
Fortran Intel 87.62 203,604 2238 87.57 1% 0% 100% 0%
C++ g++ 7.18 164,052 1252 24.28 83% 83% 93% 83%
regex-redux
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.21 1,540 853 0.27 9% 5% 77% 64%
pidigits
source secs mem gz cpu cpu load
Fortran Intel   Failed
C++ g++ 0.07 ? 508 0.07 0% 0% 89% 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 6.3.0-12ubuntu2) 6.3.0 20170406