|
Chebyshev
Unit testing for scientific software
|
A structure holding the options of a benchmark. More...
#include <benchmark_structures.h>
Public Member Functions | |
| benchmark_options () | |
| Default constructor for benchmark options. | |
| benchmark_options (unsigned int runs, unsigned int iterations, bool quiet=false) | |
| Construct benchmark options from the number of runs and iterations and whether to print the case to output (defaults to false). | |
| benchmark_options (unsigned int runs, unsigned int iterations, InputGenerator< InputType > gen, bool quiet=false) | |
| Construct benchmark options from the number of runs and iterations, the input generator to use and whether to write the result to output. | |
Public Attributes | |
| unsigned int | runs = CHEBYSHEV_BENCHMARK_RUNS |
| Number of runs (run with the same input values). | |
| unsigned int | iterations = CHEBYSHEV_BENCHMARK_ITER |
| Number of iterations. | |
| InputGenerator< InputType > | inputGenerator = generator::uniform1D(0, 1) |
| The function to use to generate input for the benchmark. | |
| bool | quiet = false |
| Whether to print to standard output or not. | |
| uint64_t | seed = 0 |
| The seed to use for randomized input generation (by default, a random seed is generated using the random context). | |
A structure holding the options of a benchmark.