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

Add more sophisticated benchmark filter/selector #4

Open
seriyps opened this issue Sep 15, 2019 · 0 comments
Open

Add more sophisticated benchmark filter/selector #4

seriyps opened this issue Sep 15, 2019 · 0 comments

Comments

@seriyps
Copy link
Owner

seriyps commented Sep 15, 2019

Right now we use basic -m module -b bench options. Would be nice to have something more flexible.

My suggestion is to introduce -f / --filter <rules> key:

match := [0-9a-z_-*]+
rule := match : match
rules := rule
rules := rules ',' rule

so, some examples:

--filter 'bench_my_mod:bench_my_fun'
--filter 'bench_my_mod:bench_my_*'
--filter 'bench_my_mod:*'
--filter 'bench_my_*:*'
--filter '*:*'
--filter 'bench_my_mod:bench_my_fun, bench_my_mod:bench_other_fun'
--filter 'bench_my_mod:*, bench_other_mod:*'
  • Not sure if we want to support wildcard at any position. Maybe only in the end of the word?
  • Shuld we allow to skip bench_ in function and module names?
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

1 participant