First release of benchmark.f

I just released the first version of benchmark.f. It’ s a KISS library for benchmarking Fortran functions and subroutines with precision.

This project aims at providing an easy interface to benchmark functions and subroutines while taking care of warming up the machine, collecting system information, computing statistics and reporting results.

Running the benchmark could not be simpler.

  1. Start by including the file benchmark.inc into your code
  2. Instantiate a benchmark runner
  3. Run the benchmark
#include <benchmark.inc>
program test
use benchmark_library

type(runner) :: br

benchmark(br, run(1.0d-6, 30, test_function))

and generates this kind of output

For more examples, please refer to the Documentation

14 Likes