zeek/auxil/spicy/3rdparty/benchmark/test/link_main_test.cc
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
296 B
C++

#include "benchmark/benchmark.h"
void BM_empty(benchmark::State& state) {
for (auto _ : state) {
auto iterations = static_cast<double>(state.iterations()) *
static_cast<double>(state.iterations());
benchmark::DoNotOptimize(iterations);
}
}
BENCHMARK(BM_empty);