Skip to content

Add more sophisticated benchmark filter/selector #4

Description

@seriyps

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions