Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
14 lines
271 B
C++
14 lines
271 B
C++
#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();
|