[#BENCHMARK_MULTI]
= BENCHMARK&lowbar;MULTI
:mrdocs:

Like BENCHMARK above, but allows the user to return the actual number of iterations executed in the function body&period; This can be useful if the benchmark function doesn&apos;t know upfront how many iterations it&apos;s going to run or if it runs through a certain number of test cases, e&period;g&period;&colon;

== Synopsis

Declared in `&lt;folly&sol;Benchmark&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define BENCHMARK&lowbar;MULTI(name, ...)

----

== Description

BENCHMARK&lowbar;MULTI(benchmarkSomething) &lcub; std&colon;&colon;vector&lt;int&gt; testCases &lcub; 0, 1, 1, 2, 3, 5 &rcub;&semi; for (int c &colon; testCases) &lcub; doSomething(c)&semi; &rcub; return testCases&period;size()&semi; &rcub;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The benchmark&apos;s name, also used as its function identifier&period;
|===


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