chore: safer bench script

This commit is contained in:
Sebastian Ullrich 2023-07-19 08:31:22 +02:00
parent 634193328b
commit d62fca4e9c

View file

@ -17,7 +17,7 @@ settings.Settings().load_file("cross.yaml")
def single(bench, cat, prop):
f = f"bench/{bench}{cat}.bench"
with open(f, "r") as f:
runs = yaml.load(f, Loader=yaml.CLoader)
runs = yaml.safe_load(f)
stats_helper = rundata.RunDataStatsHelper.init_from_dicts(runs)
stat = stats.TestedPairsAndSingles(stats_helper.valid_runs())
if stat.singles: