Files
libcxx/utils/google-benchmark/test/link_main_test.cc
Eric Fiselier ffc31db661 Update google-benchark to trunk
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@336635 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-10 04:02:00 +00:00

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);