Registry¶
The registry is the process-global collection of registered benchmarks. Decorators add to it; the runner reads from it.
- class mew.Registry[source]¶
Bases:
object- filter(pattern=None, *, tags=None)[source]¶
Filter by
pattern(a regex matched against the name) and/ortags.A
patternthat matches only some cases of a parametrized family narrows that family to those cases (seenarrow_entry()). Tags use OR semantics: an entry passes when it has any of the requested tags; entries with no tags are excluded whenevertagsis non-empty. RaisesValueErrorifpatternis not a valid regex.
- class mew.Entry(name, fn, module=None, file=None, options=<factory>, tags=<factory>, case_labels=None, cases=None)[source]¶
Bases:
object- Parameters:
- fn: BenchmarkFn¶
- options: BenchmarkOptions¶