BloombergLP::bslmt::ThroughputBenchmarkResult::ThroughputBenchmarkResult

Create a ThroughputBenchmarkResult with the given sample layout.

Synopsis

Declared in <bslmt_throughputbenchmarkresult.h>

ThroughputBenchmarkResult(
    int numSamples,
    bsl::vector<int> const& threadGroupSizes,
    bslma::Allocator* basicAllocator = 0);

Description

Create a ThroughputBenchmarkResult object with the specified numSamples the number of samples in the benchmark, and the specified threadGroupSizes, the number of threads in each of the thread groups. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless 0 < numSamples, 0 < threadGroupSizes.size(), and 0 < threadGroupSizes[N] for all valid N.

Parameters

NameDescription
numSamplesnumber of samples in the benchmark
threadGroupSizesnumber of threads in each thread group
basicAllocatorallocator used to supply memory