brintos

brintos / llvm-project-archived public Read only

0
0
Text · 248 B · 131937e Raw
10 lines · plain
1#include "benchmark/benchmark.h"2 3void BM_empty(benchmark::State& state) {4  for (auto _ : state) {5    auto iterations = double(state.iterations()) * double(state.iterations());6    benchmark::DoNotOptimize(iterations);7  }8}9BENCHMARK(BM_empty);10