(benchmark_files: Sequence[str | Path])
| 247 | |
| 248 | |
| 249 | def _load_benchmark_index(benchmark_files: Sequence[str | Path]) -> dict[str, dict[str, Any]]: |
| 250 | index: dict[str, dict[str, Any]] = {} |
| 251 | for benchmark_file in benchmark_files: |
| 252 | benchmark_path = Path(benchmark_file) |
| 253 | if not benchmark_path.exists(): |
| 254 | continue |
| 255 | for item in load_benchmarks(benchmark_path): |
| 256 | payload = item.to_dict() |
| 257 | payload["name"] = item.name |
| 258 | index[_benchmark_lookup_key(item.name)] = payload |
| 259 | return index |
| 260 | |
| 261 | |
| 262 | def _merge_benchmark_metadata( |
no test coverage detected