#include "fibonacci.h" #include #include template void test(benchmark::State &state) { std::size_t t = 0; for (auto _ : state) for (auto i = 0; i < 16; ++i) t += f(i); std::ostream cnull(0); cnull << t; } template void register_benchmark() { BENCHMARK(test>); BENCHMARK(test>); } template struct Init { Init() { register_benchmark(); } }; Init init; BENCHMARK_MAIN();