BENCHMARK_IMPL

Introduces a benchmark function. Used internally, see BENCHMARK and friends below.

Synopsis

Declared in <folly/Benchmark.h>

#define BENCHMARK_IMPL(funName, stringName, rv, paramType, paramName)

Parameters

NameDescription
funNameThe generated benchmark function's identifier.
stringNameThe benchmark's display name.
rvThe value the benchmark lambda returns as its iteration count.
paramTypeThe type of the benchmark's iteration parameter.
paramNameThe name of the benchmark's iteration parameter.