Python API¶
Top-level re-exports¶
The public surface lives at the package root; all names below are
importable from mew directly:
|
Register a function as a single benchmark. |
|
Register a parametrized benchmark family. |
|
Register a benchmark family from the cartesian product of iterables. |
|
Structural state passed into benchmark targets. |
|
A callable benchmark target. |
|
Run benchmarks via the C++ Google Benchmark backend. |
|
Duck-typed reporter interface consumed by the C++ runner. |
|
Stream one row per benchmark to a terminal as runs complete. |
|
Emit a single |
|
Stream one self-contained JSON object per Run, one per line, flushed as runs land. |
|
Broadcast reporter callbacks to a list of underlying reporters. |
One benchmark run, serialized: the contract every reporter consumes. |
|
|
Time unit used for reported per-iteration durations. |
|
|
|
|
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Set a single value in the global benchmark context. |
|
Set many context values at once. |
Return a deep copy of the current global benchmark context. |
|
Drop every entry from the global benchmark context. |