A Simple Computer Benchmark

SUM_MILLION is a FORTRAN77 program which sums the numbers from 1 to 1,000,000, times the comutation, and computes the corresponding MegaFLOPS rate.


sum_million runs the program.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


SUM_MILLION is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

LINPACK_BENCH, a FORTRAN77 program which measures the time needed to factor and solve a linear system.

MATMUL, a FORTRAN77 program which is an interactive matrix multiplication benchmark program.

MDBNCH, a FORTRAN77 program which is a benchmark code for a molecular dynamics calculation.

MEMORY_TEST, a FORTRAN90 program which declares and uses a sequence of larger and larger vectors, to see how big a vector can be used on a given machine and compiler.

MXM, a FORTRAN77 program which sets up a matrix multiplication problem A=B*C of arbitrary size, and compares the time required for IJK, IKJ, JIK, JKI, KIJ and KJI orderings of the loops.

MXV, a FORTRAN77 program which compares the performance of (DO I, DO J) loops, (DO J, DO I ) loops, and MATMUL for computing the product of an MxN matrix A and an N vector X.

TIMER, a FORTRAN77 library which demonstrates how to measure CPU time or elapsed time.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN77 source codes.

Last revised on 18 July 2008.