Skip to content

Commit

Permalink
Only show as minimal if we didn't fail (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior authored Sep 28, 2024
1 parent f1aad80 commit a4fc4d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/csv_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
min_val = defaultdict(lambda: sys.maxsize)
min_impl = {}
for row in reader:
if int(row['nanoseconds']) < min_val[row['name']]:
if int(row['nanoseconds']) < min_val[row['name']] \
and row['exit_status'] == '0':
min_val[row['name']] = int(row['nanoseconds'])
min_impl[row['name']] = row['implementation']

Expand Down

0 comments on commit a4fc4d7

Please sign in to comment.