LINPACK_BENCH is a JAVA script, using double precision arithmetic, which carries out the LINPACK benchmark.
The LINPACK benchmark tests the speed of a computer on a particular computational task, namely the factorization of a large dense matrix, and the solution of a related linear system.
The test problem requires the user to set up a random dense matrix A of size N = 1000, and a right hand side vector B which is the product of A and a vector X of all 1's. The first task is to compute an LU factorization of A. The second task is to use the LU factorization to solve the linear system
A * X = B.
The number of floating point operations required for these two tasks is roughly
ops = 2 * N*N*N / 3 + 2 * N * N,therefore, the "MegaFLOPS" rating, or millions of floating point operations per second, can be found as
mflops = ops / ( cpu * 1000000 ).
| Language | Precision | Type | Machine | Comment | MegaFLOPS |
|---|---|---|---|---|---|
| Java | Double | Real | DHCP95 (Apple G5) | 227 |
LINPACK is a FORTRAN90 library which supplies the solvers used by LINPACK_BENCH.
LINPACK_BENCH is also available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.
MATMUL is an executable FORTRAN90 program which is an interactive matrix multiplication benchmark program.
MDBNCH is an executable FORTRAN77 program which is a benchmark code for a molecular dynamics calculation.
MEMORY_TEST is 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.
TIMER is a FORTRAN90 example which demonstrates how to measure CPU time or elapsed time.
You can go up one level to the JAVA source codes.