MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetupBenchArgs

Function SetupBenchArgs

src/bench/bench_bitcoin.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static constexpr int64_t DEFAULT_MIN_TIME_MS{10};
21
22static void SetupBenchArgs(ArgsManager& argsman)
23{
24 SetupHelpOptions(argsman);
25
26 argsman.AddArg("-asymptote=<n1,n2,n3,...>", "Test asymptotic growth of the runtime of an algorithm, if supported by the benchmark", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
27 argsman.AddArg("-filter=<regex>", strprintf("Regular expression filter to select benchmark by name (default: %s)", DEFAULT_BENCH_FILTER), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
28 argsman.AddArg("-list", "List benchmarks without executing them", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
29 argsman.AddArg("-min_time=<milliseconds>", strprintf("Minimum runtime per benchmark, in milliseconds (default: %d)", DEFAULT_MIN_TIME_MS), ArgsManager::ALLOW_ANY | ArgsManager::DISALLOW_NEGATION, OptionsCategory::OPTIONS);
30 argsman.AddArg("-output_csv=<output.csv>", "Generate CSV file with the most important benchmark results", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
31 argsman.AddArg("-output_json=<output.json>", "Generate JSON file with all benchmark results", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
32}
33
34// parses a comma separated list like "10,20,30,50"
35static std::vector<double> parseAsymptote(const std::string& str) {

Callers 1

mainFunction · 0.85

Calls 2

SetupHelpOptionsFunction · 0.85
AddArgMethod · 0.80

Tested by

no test coverage detected