libdballe  7.29
Public Member Functions | Public Attributes | List of all members
dballe::benchmark::Benchmark Struct Referenceabstract

Base class for all benchmarks. More...

#include <benchmark.h>

Inheritance diagram for dballe::benchmark::Benchmark:
dballe::benchmark::DBBenchmark

Public Member Functions

 Benchmark (const std::string &name)
 
virtual void setup ()
 
virtual void teardown ()
 
void run (Progress &progress)
 Run the benchmark and collect timings.
 
void print_timings (const std::string &prefix)
 Print timings to stdout.
 
virtual void register_tasks ()=0
 Register tasks to run on this benchmark.
 

Public Attributes

std::string name
 Name of this benchmark.
 
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: