ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
pm_bench::getTiming Interface Reference

Generate and return an object of type timing_type containing the benchmark timing information and statistics. More...

Detailed Description

Generate and return an object of type timing_type containing the benchmark timing information and statistics.

This procedure is a method of the class bench_type.

Parameters
[in,out]self: The parent object of class bench_type (passed implicitly to the method).
[in]minsec: The input scalar real of kind double precision RKD representing the minimum time in seconds to spend on timing repeatedly.
(optional. The default is set by the constructor of the superclass benchBase_type.)
[in]miniter: The input scalar integer of default kind IK representing the minimum number of iterations (repetitions) of the timing to perform.
(optional. The default is set by the constructor of the superclass benchBase_type.)
Returns
timing : The output object of class timing_type containing the resulting timing vector and statistics.
For convenience, you can assign this output to the timing component of the same bench_type object to which this getTiming method belongs.
See bench_type for example usage.


Possible calling interfaces

use pm_kind, only: RKD
type(bench_type) :: bench
real(RKD) :: minsec
bench = bench_type(name, exec, overhead = overhead, minsec = minsec, timer = timer)
bench%timing = bench%getTiming(minsec = minsec, miniter = miniter)
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
Definition: pm_kind.F90:268
integer, parameter RKD
The double precision real kind in Fortran mode. On most platforms, this is an 64-bit real kind.
Definition: pm_kind.F90:568
subroutine bench(sort, arraySize)
Remarks
This function method of type bench_type has the same functionality as the subroutine interface setTiming with the only difference that the output is explicit.
Note
If the specified benchmark routine is to be called certain number of times, set minsec = 0. and miniter to desired number of times the routine must be timed.
See also
setTiming
bench_type
Remarks
See bench_type for example usage.
Todo:
High Priority: The computation of the median, skewness, and kurtosis of the timing vector in the stat component must be implemented.
Test:
test_pm_bench


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Amir Shahmoradi, Wednesday 4:13 AM, August 13, 2016, Institute for Computational Engineering and Sciences (ICES), The University of Texas at Austin

Definition at line 574 of file pm_bench.F90.


The documentation for this interface was generated from the following file: