Skip to content

Commit

Permalink
Only show as minimal if we didn't fail
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Sep 27, 2024
1 parent f9c6036 commit 37217c7
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 37217c7

Please sign in to comment.