The Computer Language
Benchmarks Game

Fortran Intel programs versus C++ g++

by benchmark task performance

fasta
source secs mem gz cpu cpu load
Fortran Intel 2.99 260 1327 2.99 1% 1% 1% 100%
C++ g++ 4.21 1,336 1105 4.20 1% 1% 0% 100%
reverse-complement
source secs mem gz cpu cpu load
Fortran Intel 0.93 247,724 1013 0.93 0% 1% 3% 100%
C++ g++ 1.02 247,604 2275 1.01 2% 0% 0% 100%
spectral-norm
source secs mem gz cpu cpu load
Fortran Intel 7.86 1,296 638 7.85 0% 1% 1% 100%
C++ g++ 7.93 2,288 1044 7.92 1% 1% 0% 100%
n-body
source secs mem gz cpu cpu load
Fortran Intel 10.74 520 1659 10.74 1% 1% 1% 100%
C++ g++ 8.96 816 1545 8.95 1% 1% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Fortran Intel 47.80 57,848 611 47.78 1% 1% 1% 100%
C++ g++ 20.11 33,768 726 20.10 0% 1% 1% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Fortran Intel 67.93 7,456 1148 67.91 1% 0% 1% 100%
C++ g++ 24.65 556 1150 24.64 1% 1% 0% 100%
binary-trees
source secs mem gz cpu cpu load
Fortran Intel 19.19 99,624 1199 19.17 0% 1% 1% 100%
C++ g++ 6.86 76,616 846 6.85 0% 1% 0% 100%
k-nucleotide
source secs mem gz cpu cpu load
Fortran Intel 109.49 168,420 2238 109.43 0% 0% 1% 100%
C++ g++ 24.04 137,908 1252 23.98 1% 1% 0% 100%
pidigits
source secs mem gz cpu cpu load
Fortran Intel   Make Error
C++ g++ 0.09 ? 508 0.09 0% 0% 10% 100%
Fortran Intel

Intel(R) Fortran Compiler XE for applications running on IA-32, Version 15.0.2.164 Build 20150121
Copyright (C) 1985-2015 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