|
libwreport
3.29
|
Base class for all benchmarks. More...
#include <benchmark.h>
Public Member Functions | |
| Benchmark (const std::string &name) | |
| virtual void | setup_main () |
| Set up the environment for this benchmark. More... | |
| virtual void | teardown_main () |
| Tear down the environment for this benchmark. More... | |
| virtual void | setup_iteration () |
| Set up the environment for an iteration of this benchmark. More... | |
| virtual void | teardown_iteration () |
| Tear down the environment for an iteration of this benchmark. More... | |
| void | run (Progress &progress) |
| Run the benchmark and collect timings. | |
| void | print_timings () |
| Print timings to stdout. | |
| virtual void | main ()=0 |
| Main body of this benchmark. | |
Data Fields | |
| std::string | name |
| unsigned | repetitions = 10 |
| std::vector< Task * > | tasks |
| Task | task_main |
Base class for all benchmarks.
|
inlinevirtual |
Set up the environment for an iteration of this benchmark.
This is run outside of timings. By default it does nothing.
|
inlinevirtual |
Set up the environment for this benchmark.
This is run outside of timings. By default it does nothing.
|
inlinevirtual |
Tear down the environment for an iteration of this benchmark.
This is run outside of timings. By default it does nothing.
|
inlinevirtual |
Tear down the environment for this benchmark.
This is run outside of timings. By default it does nothing.