(profile: str)
| 115 | |
| 116 | |
| 117 | def cargo_clean(profile: str) -> None: |
| 118 | command = ["cargo", "clean", "--profile", profile] |
| 119 | try: |
| 120 | subprocess.run(command, cwd=REPO_ROOT, check=True) |
| 121 | except subprocess.CalledProcessError as exc: |
| 122 | raise RuntimeError(f"failed to clean cargo artifacts for profile '{profile}'") from exc |
| 123 | |
| 124 | |
| 125 | def run_benchmark(profile: str, data_path: Path) -> float: |