#include <rw/rwtest/perf/RWQEPerfTestRunner.h>
|
| RWQEPerfTestRunner (T test, std::function< void(const RWQEPerfTestResult &)> resultHandler, std::function< void(std::string &)> exceptionHandler, std::function< bool(uint64_t, uint64_t)> stopTest, std::function< void()> barrier=rwqeNoop) |
|
void | go (const RWQEPerfTestDef &def) |
|
void | runTest (int64_t iteration) |
|
template<typename T>
class RWQEPerfTestRunner< T >
RWQEPerfTestRunner implements the test iteration loop.
Constructs an RWQEPerfTestRunner.
- Parameters
-
test | The test object that will be evaluated. |
resultHandler | The callable object that will be invoked for each completed iteration of the test. |
exceptionHandler | The callable object that will be invoked to capture any exception message information. |
stopTest | A callable object that will be invoked to determine if the test runner should halt execution when one thread has executed all the iterations it can. |
barrier | The callable object that will be invoked in order to synchronize multiple TestRunner objects. |
Executes the test iteration loop, based on the test definition def.
Executes the test for the specified iteration iteration. The test object's run() member function will be invoked, and the time required to execute the function will be captured and sent to the result handler callback.