bench: various args improvements

- use ALLOW_BOOL for -list arg instead of ALLOW_ANY
- touch up `-asymptote=<n1,n2,n3...>` help
- pack Args struct a bit more efficiently
- handle args in alphabetical order
This commit is contained in:
Jon Atack
2021-09-16 15:08:58 +02:00
committed by Martin Ankerl
parent d312fd94a1
commit da4e2f1da0
2 changed files with 5 additions and 5 deletions

View File

@@ -41,12 +41,12 @@ using ankerl::nanobench::Bench;
typedef std::function<void(Bench&)> BenchFunction;
struct Args {
std::string regex_filter;
bool is_list_only;
std::chrono::milliseconds min_time;
std::vector<double> asymptote;
std::string output_csv;
std::string output_json;
std::string regex_filter;
};
class BenchRunner