bench.collect_run
def collect_run(results_root: Path, slug: str | None = None, tests_dir: Path | None = None, extra_pytest_args: Sequence[str] = (), run_id: str | None = None) -> PathRun the benchmark sweep and write a scrubbed JSON to the slug dir.
``slug`` defaults to a unique directory under ``results_root``
containing a ``machine.json`` (auto-detection). ``tests_dir`` defaults
to ``/tests``. Returns the path of the written file.
Source: torchmatch/bench/_collect.py:35