[#BloombergLP-bslmt-ThroughputBenchmarkResult-initialize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThroughputBenchmarkResult.adoc[ThroughputBenchmarkResult]::initialize
:relfileprefix: ../../../
:mrdocs:

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&period; If any data was previously kept, it is lost&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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
initialize(
    int numSamples,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;int&gt;] const& threadGroupSizes);
----


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