Skip to content

Commit

Permalink
Distinguish slower, same and faster comparisons
Browse files Browse the repository at this point in the history
Fixes: #178
  • Loading branch information
bernhardmgruber committed Nov 12, 2024
1 parent 92286e1 commit 6b9f369
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/nvbench_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,13 @@ def extract_value(summary):
status = Fore.YELLOW + "????" + Fore.RESET
elif abs(frac_diff) <= min_noise:
pass_count += 1
status = Fore.GREEN + "PASS" + Fore.RESET
status = Fore.GREEN + "SAME" + Fore.RESET
elif diff < 0:
failure_count += 1
status = Fore.BLUE + "FAST" + Fore.RESET
else:
failure_count += 1
status = Fore.RED + "FAIL" + Fore.RESET
status = Fore.RED + "SLOW" + Fore.RESET

if abs(frac_diff) >= threshold:
row.append(format_duration(ref_time))
Expand Down

0 comments on commit 6b9f369

Please sign in to comment.