Configuration

Resolve [tool.mew] config from the nearest pyproject.toml.

class mew.config.Config(benchpaths=<factory>, python_files=<factory>, benchmark_options=<factory>, auto_session_tag=True, project_root=None)[source]

Bases: object

Parameters:
benchpaths: list[str]
python_files: list[str]
benchmark_options: dict[str, Any]
auto_session_tag: bool
project_root: Path | None
mew.config.load(start=None)[source]
Return type:

Config

Parameters:

start (Path | None)

mew.config.format_benchmark_args(options)[source]

Translate a {key: value} mapping into Google Benchmark CLI flags.

Bool True becomes a bare --benchmark_<key>; False is omitted. Everything else is serialized as --benchmark_<key>=<value>.

Return type:

list[str]

Parameters:

options (dict[str, Any])