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);

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);

Parameters

Name

Description

result

repository that receives the sample throughputs

millisecondsPerSample

duration of each sample in milliseconds

numSamples

number of times the test is executed

initializeFunctor

functor run at the start of each sample

shutdownFunctor

functor run before joining sample threads

cleanupFunctor

functor run after joining sample threads

Created with MrDocs