SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
List of all members | Public Member Functions
RWQEPerfTestSuite< H > Class Template Reference

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

Public Member Functions

 RWQEPerfTestSuite (const std::string &desc, const H &handler=H(), std::function< void(std::string &)> exceptionHandler=rwqeExceptionMessageHandler)
 
 ~RWQEPerfTestSuite ()
 
const std::string & getDescription () const
 
template<typename T >
void run (const RWQEDynamicPerfTestDef &def, T test)
 

Detailed Description

template<typename H>
class RWQEPerfTestSuite< H >

RWQEPerfTestSuite encapsulates a performance tests suite. It is responsible for associating a Result Handler and a RWQEPerfTestRunner with each test object, based on the test definition provided.

Constructor & Destructor Documentation

template<typename H >
RWQEPerfTestSuite< H >::RWQEPerfTestSuite ( const std::string &  desc,
const H &  handler = H(),
std::function< void(std::string &)>  exceptionHandler = rwqeExceptionMessageHandler 
)
inline

Constructs the TestSuite with the specified result handler handler.

Parameters
descA description of the test.
handlerFunction to handle result reporting.
exceptionHandlerFunction to invoke when an exception occurs.
template<typename H >
RWQEPerfTestSuite< H >::~RWQEPerfTestSuite ( )
inline

Destructor.

Member Function Documentation

template<typename H >
const std::string& RWQEPerfTestSuite< H >::getDescription ( ) const

The description of the test suite.

template<typename H >
template<typename T >
void RWQEPerfTestSuite< H >::run ( const RWQEDynamicPerfTestDef def,
test 
)

Runs the test object test given the test definition def. This function evaluates the number of threads requested, and either spawns that number of threads, or if threads < 1 runs the test in the current thread. It also dynamically determines an approximate number of operations that should be executed to hit the target execution time.

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.