ZeroErr
zeroerr::BenchResult Struct Reference

BenchResult is a result of running the benchmark. More...

#include <benchmark.h>

Collaboration diagram for zeroerr::BenchResult:

Public Types

enum  Measure {
  time_elapsed = 1 << 0 , iterations = 1 << 1 , page_faults = 1 << 2 , cpu_cycles = 1 << 3 ,
  context_switches = 1 << 4 , instructions = 1 << 5 , branch_instructions = 1 << 6 , branch_misses = 1 << 7 ,
  all = (1 << 8) - 1
}
 

Public Member Functions

PerfCountSet< double > average () const
 
PerfCountSet< double > min () const
 
PerfCountSet< double > max () const
 
PerfCountSet< double > mean () const
 

Public Attributes

std::string name
 
std::vector< PerfCountSet< double > > epoch_details
 
PerfCountSet< bool > has
 

Detailed Description

BenchResult is a result of running the benchmark.

Member Enumeration Documentation

◆ Measure

Enumerator
time_elapsed 
iterations 
page_faults 
cpu_cycles 
context_switches 
instructions 
branch_instructions 
branch_misses 
all 

Member Function Documentation

◆ average()

PerfCountSet< double > zeroerr::BenchResult::average ( ) const

◆ max()

PerfCountSet< double > zeroerr::BenchResult::max ( ) const

◆ mean()

PerfCountSet< double > zeroerr::BenchResult::mean ( ) const

◆ min()

PerfCountSet< double > zeroerr::BenchResult::min ( ) const

Member Data Documentation

◆ epoch_details

std::vector<PerfCountSet<double> > zeroerr::BenchResult::epoch_details

◆ has

PerfCountSet<bool> zeroerr::BenchResult::has

◆ name

std::string zeroerr::BenchResult::name

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