aboutsummaryrefslogtreecommitdiff
path: root/bench/init.cc
blob: 6df8e0e6b3b4de3ac9907eac644acb7c89f8f3f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <benchmark/benchmark.h>

#include <cpuinfo.h>


static void cpuinfo_initialize(benchmark::State& state) {
	while (state.KeepRunning()) {
		cpuinfo_initialize();
	}
}
BENCHMARK(cpuinfo_initialize)->Iterations(1)->Unit(benchmark::kMillisecond);

BENCHMARK_MAIN();