SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
List of all members | Public Member Functions
RWQEDynamicPerfTestDef Struct Reference

#include <rw/rwtest/perf/RWQEDynamicPerfTestDef.h>

Public Member Functions

 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)
 
const std::string & getDescription () const
 
uint64_t getIterations () const
 
uint64_t getIterationTime () const
 
uint64_t getMaxTime () const
 
uint64_t getOperations () const
 
size_t getThreads () const
 
uint64_t getUID () const
 
int64_t getWarmupIterations () const
 

Detailed Description

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.

Constructor & Destructor Documentation

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
descA description of the test.
threadsThe number of threads that should concurrently execute the test function.
maxMillisecondsThe 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.
iterationsThe number of iterations a test will run.
iterationMillisecondsThe target wall time that each iteration should take.
warmupIterationsThe number of iterations that should be performed before timing data is gathered. These iterations will occur regardless of any limits set by maxMilliseconds.
operationsThe number of operations that each iteration will perform.
uidA unique identifier for each thread of test execution.

Member Function Documentation

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.

Copyright © 2016 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.