llvm-for-llvmta/utils/benchmark/test/link_main_test.cc

9 lines
177 B
C++
Raw Normal View History

2022-04-25 10:02:23 +02:00
#include "benchmark/benchmark.h"
void BM_empty(benchmark::State& state) {
for (auto _ : state) {
benchmark::DoNotOptimize(state.iterations());
}
}
BENCHMARK(BM_empty);