benchmark/test/link_main_test.cc
2023-03-06 14:47:54 +00:00

10 lines
211 B
C++

#include "benchmark/benchmark.h"
void BM_empty(benchmark::State& state) {
for (auto _ : state) {
auto iterations = state.iterations();
benchmark::DoNotOptimize(iterations);
}
}
BENCHMARK(BM_empty);