| 20 | static constexpr int64_t DEFAULT_MIN_TIME_MS{10}; |
| 21 | |
| 22 | static 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" |
| 35 | static std::vector<double> parseAsymptote(const std::string& str) { |
no test coverage detected