mirror of
https://github.com/google/benchmark.git
synced 2024-11-28 05:44:40 +00:00
10 lines
211 B
C++
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);
|