6daf2dff6f
* Split the benchmark monolithic header * src uses modular headers * updated tests to use split headers * clang-format * clang-format mistake * fix exports * suppress warnings on msvc * fixing double pops and some more missing exports
15 lines
389 B
C++
15 lines
389 B
C++
#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
|