libdballe
7.19
|
Base class for all benchmarks. More...
#include <benchmark.h>
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< 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.