libpnicore
Data Structures | Functions
Benchmark classes

Data Structures

class  pni::core::benchmark_result
 result of a single benchmark More...
 
class  pni::core::benchmark_runner
 benchmark runner class More...
 
struct  pni::core::duration_unit_map< DTYPE >
 unit map More...
 
class  pni::core::chrono_timer< CLKT, DTYPE >
 timer class using chrono More...
 
class  pni::core::clock_timer
 clock() timer More...
 

Functions

std::ostream & pni::core::operator<< (std::ostream &o, const benchmark_result &r)
 output operator for benchmark result
 
benchmark_result pni::core::average (const benchmark_runner &bm)
 compute the average result More...
 
benchmark_result pni::core::standard_deviation (const benchmark_runner &bm)
 compute result standard deviation More...
 

Detailed Description

Classes to set up benchmarks.

Function Documentation

benchmark_result pni::core::average ( const benchmark_runner &  bm)

Computes the average of the results of each individual run. The result is returned as an instance of benchmark_result.

Parameters
bmbenchmark run
Returns
average benchmark result
benchmark_result pni::core::standard_deviation ( const benchmark_runner &  bm)

Computes the standard deviation for all individual results in the original benchmark run.

Parameters
bmbenchmark run
Returns
standard deviation of the result