BloombergLP::bslmt::ThroughputBenchmarkResult::getPercentile

Load the given percentage throughput for the specified thread group.

Synopsis

Declared in <bslmt_throughputbenchmarkresult.h>

void
getPercentile(
    double* percentile,
    double percentage,
    int threadGroupIndex) const;

Description

Load into the specified percentile the specified percentage throughput (count / second) of the work done by all the threads in the specified threadGroupIndex. A percentage of 0.0 is the minimum, and a percentage of 1.0 is the maximum. The behavior is undefined unless 0 <= threadGroupIndex < numThreadGroups and 0.0 <= percentage <= 1.0.

Parameters

NameDescription
percentileloadable throughput at percentage
percentagepercentile in the range [0.0, 1.0]
threadGroupIndexindex of the thread group