libdballe  9.11
Public Member Functions | Public Attributes | List of all members
dballe::benchmark::Benchmark Struct Reference

Base class for all benchmarks. More...

#include <benchmark.h>

Public Member Functions

void timeit (Task &task, unsigned repetitions=1)
 Run the benchmark and collect timings.
 
void throughput (Task &task, double run_time=0.5)
 Run the benchmark and collect timings.
 
void print_timings ()
 Print timings to stdout.
 

Public Attributes

std::shared_ptr< Progressprogress
 Progress indicator.
 
std::vector< Timeittimeit_tasks
 Tasks for which we time their duration.
 
std::vector< Throughputthroughput_tasks
 Tasks for which we time their throughput.
 

Detailed Description

Base class for all benchmarks.


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