MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / run_all_benchmarks

Function run_all_benchmarks

benchmark/__main__.py:117–127  ·  view source on GitHub ↗
(detector: str | None, dataset: str | None, detailed: bool)

Source from the content-addressed store, hash-verified

115
116
117def run_all_benchmarks(detector: str | None, dataset: str | None, detailed: bool):
118 detectors = {detector: _DETECTORS[detector]} if detector else _DETECTORS
119 datasets = {dataset: _DATASETS[dataset]} if dataset else _DATASETS
120 print(
121 "Running benchmarks for:\n"
122 f" - Detectors: {', '.join(detectors.keys())}\n"
123 f" - Datasets: {', '.join(datasets.keys())}\n"
124 )
125 for detector in detectors:
126 for dataset in datasets:
127 run_benchmark(detector=detector, dataset=dataset, detailed=detailed)
128
129
130def main():

Callers 1

mainFunction · 0.85

Calls 1

run_benchmarkFunction · 0.85

Tested by

no test coverage detected