Skip to content

Commit

Permalink
- changed to indicate where a statistic is missing, if any;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Oct 27, 2023
1 parent 44018e3 commit ab8eafa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmarks/plot_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def load_data():
assert common_cases == set(v2r[python_versions[0]].keys())

# check that requested benchmark is available everywhere
benchmarks = set.intersection(*(set(b.keys()) for r in v2r.values() for b in r.values()))
if args.bench not in benchmarks:
print(f"Benchmark {args.bench} not in common benchmarks {benchmarks}")
sys.exit(1)
for v, b in ((v, b) for v in v2r for b in v2r[v].values()):
if args.bench not in b:
print(f"Benchmark {args.bench} not available for {v}")
sys.exit(1)

# compute the median
from statistics import median
Expand Down

0 comments on commit ab8eafa

Please sign in to comment.