BloombergLP::bslmt::ThroughputBenchmarkResult

Repository for multi-threaded throughput benchmark results.

Synopsis

Declared in <bslmt_throughputbenchmarkresult.h>

class ThroughputBenchmarkResult;

Description

This class provides support for output of multi-threaded performance benchmark results. The results are counts of work done during the benchmark time period divided by the time period.

Type Aliases

NameDescription
DoubleVector Vector of double values used to store throughput measurements.
Int64 Signed 64-bit integer type used for result counts.

Member Functions

NameDescription
ThroughputBenchmarkResult [constructor]Constructors
operator= Assignment operators
allocator Return the allocator used by this object.
getMedian Load the median throughput for the specified thread group.
getPercentile Load the given percentage throughput for the specified thread group.
getPercentiles Load a uniform percentile breakdown for the specified thread group.
getThreadPercentiles Load per-thread percentile throughputs for the specified group.
getValue Return the throughput for the given thread, group, and sample.
initialize Initialize this object with the given samples and thread groups.
numSamples Return the number of test samples.
numThreadGroups Return the number of thread groups.
numThreads Return the number of threads in the specified threadGroupIndex.
setThroughput Set the throughput for the given thread, group, and sample.
totalNumThreads Return the total number of threads.
operator BloombergLP::bslmf::NestedTraitDeclaration<ThroughputBenchmarkResult, UsesBslmaAllocator> Declare that this type uses a bslma allocator.

Friends

NameDescription
BloombergLP::bslmt::ThroughputBenchmarkResult_TestUtilTest utility for accessing private throughput result attributes.