mirror of
https://github.com/google/benchmark.git
synced 2024-11-27 02:44:34 +00:00
9 lines
177 B
C++
9 lines
177 B
C++
|
#include "benchmark/benchmark.h"
|
||
|
|
||
|
void BM_empty(benchmark::State& state) {
|
||
|
for (auto _ : state) {
|
||
|
benchmark::DoNotOptimize(state.iterations());
|
||
|
}
|
||
|
}
|
||
|
BENCHMARK(BM_empty);
|