Public Member Functions | Private Attributes
hayai::TestResult Struct Reference

Test result descriptor. More...

#include <hayai_test_result.hpp>

List of all members.

Public Member Functions

double IterationsPerSecondAverage () const
 Average iterations per second.
double IterationsPerSecondMaximum () const
 Maximum iterations per second.
double IterationsPerSecondMinimum () const
 Minimum iterations per second.
double IterationTimeAverage () const
 Average time per iteration.
double IterationTimeMaximum () const
 Maximum time per iteration.
double IterationTimeMinimum () const
 Minimum time per iteration.
double RunsPerSecondAverage () const
 Average runs per second.
double RunsPerSecondMaximum () const
 Maximum runs per second.
double RunsPerSecondMinimum () const
 Minimum runs per second.
double RunTimeAverage () const
 Average time per run.
double RunTimeMaximum () const
 Maximum time per run.
double RunTimeMinimum () const
 Minimum time per run.
const std::vector< uint64_t > & RunTimes () const
 Run times.
 TestResult (const std::vector< uint64_t > &runTimes, std::size_t iterations)
 Initialize test result descriptor.
double TimeTotal () const
 Total time.

Private Attributes

std::size_t _iterations
std::vector< uint64_t > _runTimes
uint64_t _timeRunMax
uint64_t _timeRunMin
uint64_t _timeTotal

Detailed Description

Test result descriptor.

All durations are expressed in nanoseconds.

Definition at line 15 of file hayai_test_result.hpp.


Constructor & Destructor Documentation

hayai::TestResult::TestResult ( const std::vector< uint64_t > &  runTimes,
std::size_t  iterations 
) [inline]

Initialize test result descriptor.

Parameters:
runTimesTiming for the individual runs.
iterationsNumber of iterations per run.

Definition at line 22 of file hayai_test_result.hpp.


Member Function Documentation

Average iterations per second.

Definition at line 133 of file hayai_test_result.hpp.

Maximum iterations per second.

Definition at line 147 of file hayai_test_result.hpp.

Minimum iterations per second.

Definition at line 140 of file hayai_test_result.hpp.

double hayai::TestResult::IterationTimeAverage ( ) const [inline]

Average time per iteration.

Definition at line 112 of file hayai_test_result.hpp.

double hayai::TestResult::IterationTimeMaximum ( ) const [inline]

Maximum time per iteration.

Definition at line 126 of file hayai_test_result.hpp.

double hayai::TestResult::IterationTimeMinimum ( ) const [inline]

Minimum time per iteration.

Definition at line 119 of file hayai_test_result.hpp.

double hayai::TestResult::RunsPerSecondAverage ( ) const [inline]

Average runs per second.

Definition at line 91 of file hayai_test_result.hpp.

double hayai::TestResult::RunsPerSecondMaximum ( ) const [inline]

Maximum runs per second.

Definition at line 98 of file hayai_test_result.hpp.

double hayai::TestResult::RunsPerSecondMinimum ( ) const [inline]

Minimum runs per second.

Definition at line 105 of file hayai_test_result.hpp.

double hayai::TestResult::RunTimeAverage ( ) const [inline]

Average time per run.

Definition at line 70 of file hayai_test_result.hpp.

double hayai::TestResult::RunTimeMaximum ( ) const [inline]

Maximum time per run.

Definition at line 77 of file hayai_test_result.hpp.

double hayai::TestResult::RunTimeMinimum ( ) const [inline]

Minimum time per run.

Definition at line 84 of file hayai_test_result.hpp.

const std::vector<uint64_t>& hayai::TestResult::RunTimes ( ) const [inline]

Run times.

Definition at line 63 of file hayai_test_result.hpp.

double hayai::TestResult::TimeTotal ( ) const [inline]

Total time.

Definition at line 56 of file hayai_test_result.hpp.


Member Data Documentation

std::size_t hayai::TestResult::_iterations [private]

Definition at line 153 of file hayai_test_result.hpp.

std::vector<uint64_t> hayai::TestResult::_runTimes [private]

Definition at line 152 of file hayai_test_result.hpp.

uint64_t hayai::TestResult::_timeRunMax [private]

Definition at line 156 of file hayai_test_result.hpp.

uint64_t hayai::TestResult::_timeRunMin [private]

Definition at line 155 of file hayai_test_result.hpp.

uint64_t hayai::TestResult::_timeTotal [private]

Definition at line 154 of file hayai_test_result.hpp.


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


hayai
Author(s): Nick Bruun
autogenerated on Thu Jun 6 2019 18:13:44