Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance CLI options to filter and sort benchmarks #3

Open
harendra-kumar opened this issue Feb 10, 2019 · 1 comment
Open

Enhance CLI options to filter and sort benchmarks #3

harendra-kumar opened this issue Feb 10, 2019 · 1 comment

Comments

@harendra-kumar
Copy link
Member

The library supports filtering and sorting of benchmarks. However, this is not yet supported by the CLI. It could be very useful to tune presentation especially when there are many benchmarks in the csv file. We could possibly have two CLI options to enable something like this:

--filter-by "column-name:regex"
--sort-by "column-name:ascending|descending|enumeration"

We can use a grep like regex for filtering. Enumeration can be a comma separated list of values to specify a custom presentation order. This can only be useful to order the benchmark column. Note that filtering and sorting can also be done by an external awk script but that won't be convenient.

Also note that multiple of these options can be given on the command line and they can be combined to provide multiple level filtering/sorting.

In addition to the above, it is nice to have options to represent grouping, sorting and filtering of groups. However this is not required as often as the options above:

--group-by "group-name:regex"
--filter-groups-by "regex"
--sort-groups-by "ascending|descending|enumeration"

The regex determines the benchmarks that will be placed in the given group name.

cc: @SanchayanMaity

@SanchayanMaity
Copy link
Contributor

@harendra-kumar I will take a look. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants