[#BloombergLP-bslmt-ThroughputBenchmarkResult-2constructor-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThroughputBenchmarkResult.adoc[ThroughputBenchmarkResult]::ThroughputBenchmarkResult
:relfileprefix: ../../../
:mrdocs:

Create a `ThroughputBenchmarkResult` with the given sample layout&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;throughputbenchmarkresult&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ThroughputBenchmarkResult(
    int numSamples,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;int&gt;] const& threadGroupSizes,
    xref:BloombergLP/bslma/Allocator.adoc[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&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `0 &lt; numSamples`, `0 &lt; threadGroupSizes&period;size()`, and `0 &lt; threadGroupSizes&lsqb;N&rsqb;` for all valid `N`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numSamples*
| number of samples in the benchmark
| *threadGroupSizes*
| number of threads in each thread group
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
