libdballe
9.11
|
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< Progress > | progress |
Progress indicator. | |
std::vector< Timeit > | timeit_tasks |
Tasks for which we time their duration. | |
std::vector< Throughput > | throughput_tasks |
Tasks for which we time their throughput. | |
Base class for all benchmarks.