BloombergLP::bslmt::ThroughputBenchmarkResult::setThroughput

Set the throughput for the given thread, group, and sample.

Synopsis

Declared in <bslmt_throughputbenchmarkresult.h>

void
setThroughput(
    int threadGroupIndex,
    int threadIndex,
    int sampleIndex,
    double value);

Description

Set the throughput related to the specified threadIndex thread, in the specified threadGroupIndex, and the specified sampleIndex to the specified value. The behavior is undefined unless 0 <= value, 0 <= threadIndex < numThreads(threadGroupIndex), 0 <= threadGroupIndex < numThreadGroups(), and 0 <= sampleIndex < numSamples().

Parameters

NameDescription
threadGroupIndexindex of the thread group
threadIndexindex of the thread within the group
sampleIndexindex of the sample
valuethroughput value to store