#include <rw/rwtest/perf/RWQEPerfTestDef.h>
RWQEPerfTestDef encapsulates the parameters that describe a specific test instance.
RWQEPerfTestDef::RWQEPerfTestDef |
( |
| ) |
|
|
inline |
Constructs a default TestDef instance. All values are initialized to 0.
RWQEPerfTestDef::RWQEPerfTestDef |
( |
const std::string & |
desc, |
|
|
size_t |
threads, |
|
|
uint64_t |
maxMilliseconds, |
|
|
uint64_t |
minIterations, |
|
|
uint64_t |
maxIterations, |
|
|
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. |
minIterations | The minimum number of iterations required for a successful test. This value is not used by the test execution framework, however may be useful to any data analysis performed. |
maxIterations | The maximum number of iterations that should be performed. |
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 & RWQEPerfTestDef::getDescription |
( |
| ) |
const |
|
inline |
The description of the test.
uint64_t RWQEPerfTestDef::getMaxIterations |
( |
| ) |
const |
|
inline |
The maximum number of iterations that should be performed.
uint64_t RWQEPerfTestDef::getMaxTime |
( |
| ) |
const |
|
inline |
The maximum amount of time allowed for all iterations.
uint64_t RWQEPerfTestDef::getMinIterations |
( |
| ) |
const |
|
inline |
The minimum number of iterations required to consider the test valid.
uint64_t RWQEPerfTestDef::getOperations |
( |
| ) |
const |
|
inline |
The number of operations to perform for each iteration.
size_t RWQEPerfTestDef::getThreads |
( |
| ) |
const |
|
inline |
The number of threads that are executed concurrently.
uint64_t RWQEPerfTestDef::getUID |
( |
| ) |
const |
|
inline |
The uid value for this test execution.
int64_t RWQEPerfTestDef::getWarmupIterations |
( |
| ) |
const |
|
inline |
The number of warmup iterations that should be executed before timing information is gathered.