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);
Main entry point to nanobench's benchmarking facility.
static void RunAll(const Args &args)
BenchRunner(std::string name, BenchFunction func, PriorityLevel level)
std::map< std::string, std::pair< BenchFunction, PriorityLevel > > BenchmarkMap
static BenchmarkMap & benchmarks()
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
std::string ListPriorities()
std::function< void(Bench &)> BenchFunction
uint8_t StringToPriority(const std::string &str)
std::vector< std::string > setup_args
std::vector< double > asymptote
std::chrono::milliseconds min_time