blob: 538f8070203248b9b9a25ed23122847c8b92e3a5 [file]
#include "benchmark/registration.h"
#include "benchmark/state.h"
#include "benchmark/utils.h"
namespace {
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);
} // end namespace