5 #ifndef BITCOIN_BENCH_BENCH_H 6 #define BITCOIN_BENCH_BENCH_H 15 #include <boost/preprocessor/cat.hpp> 16 #include <boost/preprocessor/stringize.hpp> 51 static BenchmarkMap& benchmarks();
56 static void RunAll(
const Args& args);
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
std::vector< double > asymptote
std::function< void(Bench &)> BenchFunction
std::map< std::string, BenchFunction > BenchmarkMap
Main entry point to nanobench's benchmarking facility.