5 #ifndef BITCOIN_BENCH_BENCH_H 6 #define BITCOIN_BENCH_BENCH_H 70 typedef std::map<std::string, std::pair<BenchFunction, PriorityLevel>>
BenchmarkMap;
81 #define BENCHMARK(n, priority_level) \ 82 benchmark::BenchRunner PASTE2(bench_, PASTE2(__LINE__, n))(STRINGIZE(n), n, priority_level); 84 #endif // BITCOIN_BENCH_BENCH_H std::chrono::milliseconds min_time
std::vector< double > asymptote
uint8_t StringToPriority(const std::string &str)
static BenchmarkMap & benchmarks()
std::string ListPriorities()
std::function< void(Bench &)> BenchFunction
static void RunAll(const Args &args)
std::map< std::string, std::pair< BenchFunction, PriorityLevel > > BenchmarkMap
Main entry point to nanobench's benchmarking facility.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
std::vector< std::string > setup_args
BenchRunner(std::string name, BenchFunction func, PriorityLevel level)