Initialize this object with the given samples and thread groups.

Synopsis

Declared in <bslmt_throughputbenchmarkresult.h>

void
initialize(
    int numSamples,
    bsl::vector<int> const& threadGroupSizes);

Description

Initialize a default constructed ThroughputBenchmarkResult object with the specified numSamples number of samples in the benchmark, and the specified threadGroupSizes, the number of threads in each of the thread groups. If any data was previously kept, it is lost. The behavior is undefined unless 0 < numSamples, 0 < threadGroupSizes.size(), and 0 < threadGroupSizes[N] for all valid N.

Parameters

Name

Description

numSamples

number of samples in the benchmark

threadGroupSizes

number of threads in each thread group

Created with MrDocs