cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Class to invoke functions measuring durations in threads if needed. More...
#include <stat_bench/bench_impl/threadable_invoker.h>
Public Member Functions | |
ThreadableInvoker (std::size_t num_threads, std::size_t iterations, std::size_t samples, std::size_t warm_up_samples) | |
Constructor. | |
template<typename Func> | |
auto | measure (const Func &func) const -> std::vector< std::vector< clock::Duration > > |
Measure time. | |
Class to invoke functions measuring durations in threads if needed.
Definition at line 117 of file threadable_invoker.h.
|
inline |
Constructor.
[in] | num_threads | Number of threads. |
[in] | iterations | Number of iterations. |
[in] | samples | Number of samples (including samples for warming up). |
[in] | warm_up_samples | Number of samples for warming up. |
Definition at line 127 of file threadable_invoker.h.
|
inlinenodiscard |
Measure time.
Func | Type of function. |
[in] | func | Function. |
Definition at line 160 of file threadable_invoker.h.