◆ iteration()
benchmark ubench::benchmark::iteration |
( |
const size_t | iteration | ) |
const |
|
inline |
Sets iteration count.
- Parameters
-
iteration | Iteration count to use |
- Returns
- Changed benchmark object
◆ operator()() [1/3]
entry ubench::benchmark::operator() |
( |
arg | arg | ) |
const |
|
nodiscard |
Runs operation with given argument.
- Parameters
-
- Returns
- Benchmark result entry
◆ operator()() [2/3]
duration ubench::benchmark::operator() |
( |
arg | arg, |
|
|
size_t | iter ) const |
|
nodiscard |
Runs operation with given argument and iteration count.
- Parameters
-
arg | Argument to be passed |
iter | Iteration count |
- Returns
- Elapsed time per operation
◆ operator()() [3/3]
void ubench::benchmark::operator() |
( |
std::vector< entry > & | entries | ) |
const |
Runs whole benchmark.
- Parameters
-
entries | Entry vector to store results |
◆ prepare()
benchmark ubench::benchmark::prepare |
( |
const prepare_fn | fn | ) |
const |
|
inline |
Register a routine as preparing routine.
- Parameters
-
fn | Preparing routine to register |
- Returns
- Changed benchmark object
◆ step()
benchmark ubench::benchmark::step |
( |
const size_t | step | ) |
const |
|
inline |
Sets step count for iteration.
- Parameters
-
- Returns
- Changed benchmark object
◆ warm_up()
void ubench::benchmark::warm_up |
( |
arg | arg | ) |
const |
Warms up this benchmark.
- Parameters
-
◆ warmup()
benchmark ubench::benchmark::warmup |
( |
const bool | light | ) |
const |
|
inline |
Set whether that warm-up should be light
- Light : Just iterates constant times
- Heavy : Reducing fluctuation of the coefficient of variation below the threshold (10%)
The documentation for this class was generated from the following file: