#include <rw/rwtest/perf/RWQEDynamicPerfTestDef.h>
RWQEDynamicPerfTestDef encapsulates the parameters that describe a specific test instance using minimum wall time. The test instance will auto adjust number of operations based on the wall time.
RWQEDynamicPerfTestDef::RWQEDynamicPerfTestDef |
( |
| ) |
|
|
inline |
Constructs a default minimum wall time based TestDef instance. All values are initialized to 0.
RWQEDynamicPerfTestDef::RWQEDynamicPerfTestDef |
( |
const std::string & |
desc, |
|
|
size_t |
threads, |
|
|
uint64_t |
maxMilliseconds, |
|
|
uint64_t |
iterations, |
|
|
uint64_t |
iterationMilliseconds, |
|
|
int64_t |
warmupIterations, |
|
|
uint64_t |
operations = 1 , |
|
|
uint64_t |
uid = 0 |
|
) |
| |
|
inline |
Constructs a TestDef instance.
- Parameters
-
desc | A description of the test. |
threads | The number of threads that should concurrently execute the test function. |
maxMilliseconds | The maximum time (in milliseconds) the test should execute. This does not limit the execution of a single iteration, however it may limit the total number of iterations. |
iterations | The number of iterations a test will run. |
iterationMilliseconds | The target wall time that each iteration should take. |
warmupIterations | The number of iterations that should be performed before timing data is gathered. These iterations will occur regardless of any limits set by maxMilliseconds. |
operations | The number of operations that each iteration will perform. |
uid | A unique identifier for each thread of test execution. |
const std::string & RWQEDynamicPerfTestDef::getDescription |
( |
| ) |
const |
|
inline |
The description of the test.
uint64_t RWQEDynamicPerfTestDef::getIterations |
( |
| ) |
const |
|
inline |
The number of iterations a test will run.
uint64_t RWQEDynamicPerfTestDef::getIterationTime |
( |
| ) |
const |
|
inline |
The target wall time for each iteration.
uint64_t RWQEDynamicPerfTestDef::getMaxTime |
( |
| ) |
const |
|
inline |
The maximum time (in milliseconds) the test should execute. This does not limit the execution of a single iteration, however it may limit the total number of iterations.
uint64_t RWQEDynamicPerfTestDef::getOperations |
( |
| ) |
const |
|
inline |
The number of operations to perform for each iteration.
size_t RWQEDynamicPerfTestDef::getThreads |
( |
| ) |
const |
|
inline |
The number of threads that are executed concurrently.
uint64_t RWQEDynamicPerfTestDef::getUID |
( |
| ) |
const |
|
inline |
The uid value for this test execution.
int64_t RWQEDynamicPerfTestDef::getWarmupIterations |
( |
| ) |
const |
|
inline |
The number of warmup iterations that should be executed before timing information is gathered.