cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
stat_bench::stat Namespace Reference

Namespace of statistics. More...

Classes

class  CustomStatOutput
 Class of custom outputs with statistics. More...
 
class  Statistics
 Class to calculate statistics. More...
 

Enumerations

enum class  CustomOutputAnalysisType : std::uint8_t { mean , rate_per_sec }
 Enumeration of types of analysis applied to custom outputs. More...
 

Functions

auto calc_stat (const std::vector< std::vector< clock::Duration > > &durations, std::size_t iterations) -> stat::Statistics
 Calculate statistics.
 
auto calc_stat (const std::vector< std::vector< double > > &values) -> stat::Statistics
 Calculate statistics.
 

Detailed Description

Namespace of statistics.

Enumeration Type Documentation

◆ CustomOutputAnalysisType

enum class stat_bench::stat::CustomOutputAnalysisType : std::uint8_t
strong

Enumeration of types of analysis applied to custom outputs.

Enumerator
mean 

Mean per sample.

rate_per_sec 

Rate per sec.

Definition at line 39 of file custom_stat_output.h.

Function Documentation

◆ calc_stat() [1/2]

auto stat_bench::stat::calc_stat ( const std::vector< std::vector< clock::Duration > > & durations,
std::size_t iterations ) -> stat::Statistics
nodiscard

Calculate statistics.

Parameters
[in]durationsDurations.
[in]iterationsNumber of iterations.
Returns
Statistics.

Definition at line 31 of file calc_stat.cpp.

◆ calc_stat() [2/2]

auto stat_bench::stat::calc_stat ( const std::vector< std::vector< double > > & values) -> stat::Statistics
nodiscard

Calculate statistics.

Parameters
[in]valuesSample values.
Returns
Statistics.

Definition at line 77 of file calc_stat.cpp.