BloombergLP::bslmt::ThroughputBenchmark::execute

execute overloads

Synopses

Declared in <bslmt_throughputbenchmark.h>

Run previously added thread groups and store benchmark results.

void
execute(
    ThroughputBenchmarkResult* result,
    int millisecondsPerSample,
    int numSamples);
» more...

Run previously added thread groups with sample-level hooks.

void
execute(
    ThroughputBenchmarkResult* result,
    int millisecondsPerSample,
    int numSamples,
    InitializeSampleFunction const& initializeFunctor,
    ShutdownSampleFunction const& shutdownFunctor,
    CleanupSampleFunction const& cleanupFunctor);
» more...

Parameters

NameDescription
resultrepository that receives the sample throughputs
millisecondsPerSampleduration of each sample in milliseconds
numSamplesnumber of times the test is executed
initializeFunctorfunctor run at the start of each sample
shutdownFunctorfunctor run before joining sample threads
cleanupFunctorfunctor run after joining sample threads