5 #ifndef BITCOIN_BENCH_BENCH_H
6 #define BITCOIN_BENCH_BENCH_H
15 #include <boost/preprocessor/cat.hpp>
16 #include <boost/preprocessor/stringize.hpp>
60 #define BENCHMARK(n) \
61 benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n);
63 #endif // BITCOIN_BENCH_BENCH_H
BenchRunner(std::string name, BenchFunction func)
std::vector< double > asymptote
std::function< void(Bench &)> BenchFunction
std::map< std::string, BenchFunction > BenchmarkMap
static void RunAll(const Args &args)
static BenchmarkMap & benchmarks()
Main entry point to nanobench's benchmarking facility.