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);
Main entry point to nanobench's benchmarking facility.
static BenchmarkMap & benchmarks()
static void RunAll(const Args &args)
std::map< std::string, BenchFunction > BenchmarkMap
BenchRunner(std::string name, BenchFunction func)
std::function< void(Bench &)> BenchFunction
std::vector< double > asymptote