[#BloombergLP-bslmt-ThroughputBenchmark-execute-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThroughputBenchmark.adoc[ThroughputBenchmark]::execute
:relfileprefix: ../../../
:mrdocs:

`execute` overloads

== Synopses

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

Run previously added thread groups and store benchmark results&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslmt/ThroughputBenchmark/execute-0d.adoc[execute](
    xref:BloombergLP/bslmt/ThroughputBenchmarkResult.adoc[ThroughputBenchmarkResult]* result,
    int millisecondsPerSample,
    int numSamples);
----

[.small]#xref:BloombergLP/bslmt/ThroughputBenchmark/execute-0d.adoc[_» more&period;&period;&period;_]#

Run previously added thread groups with sample&hyphen;level hooks&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslmt/ThroughputBenchmark/execute-04.adoc[execute](
    xref:BloombergLP/bslmt/ThroughputBenchmarkResult.adoc[ThroughputBenchmarkResult]* result,
    int millisecondsPerSample,
    int numSamples,
    xref:BloombergLP/bslmt/ThroughputBenchmark/InitializeSampleFunction.adoc[InitializeSampleFunction] const& initializeFunctor,
    xref:BloombergLP/bslmt/ThroughputBenchmark/ShutdownSampleFunction.adoc[ShutdownSampleFunction] const& shutdownFunctor,
    xref:BloombergLP/bslmt/ThroughputBenchmark/CleanupSampleFunction.adoc[CleanupSampleFunction] const& cleanupFunctor);
----

[.small]#xref:BloombergLP/bslmt/ThroughputBenchmark/execute-04.adoc[_» more&period;&period;&period;_]#


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