BENCHMARK_SUSPEND

Allows execution of code that doesn't count toward the benchmark's time budget. Example:

Synopsis

Declared in <folly/Benchmark.h>

#define BENCHMARK_SUSPEND

Description

BENCHMARK_START_GROUP(insertVectorBegin, n) { vector<int> v; BENCHMARK_SUSPEND { v.reserve(n); } for (unsigned int i = 0; i < n; ++i) { v.insert(v.begin(), 42); } }