MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _load_benchmark_index

Function _load_benchmark_index

analysis/loader.py:249–259  ·  view source on GitHub ↗
(benchmark_files: Sequence[str | Path])

Source from the content-addressed store, hash-verified

247
248
249def _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
262def _merge_benchmark_metadata(

Callers 1

iter_normalized_resultsFunction · 0.85

Calls 3

load_benchmarksFunction · 0.90
_benchmark_lookup_keyFunction · 0.85
to_dictMethod · 0.45

Tested by

no test coverage detected