benchmark/test/link_main_test.cc

10 lines
248 B
C++
Raw Normal View History

#include "benchmark/benchmark.h"
void BM_empty(benchmark::State& state) {
for (auto _ : state) {
auto iterations = double(state.iterations()) * double(state.iterations());
2023-03-06 14:47:54 +00:00
benchmark::DoNotOptimize(iterations);
}
}
BENCHMARK(BM_empty);