* benchmark: update README and add update script * update google benchmark library to 1.9.4 * update tnt CMakeLists to match the library new version
11 lines
296 B
C++
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);
|