mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-28 18:51:13 +00:00
committed by
GitHub
parent
0ce45af043
commit
f52aa4b0aa
@@ -247,10 +247,13 @@ def compare_benches(ref_benches, cmp_benches, threshold, plot):
|
|||||||
status = Fore.YELLOW + "????" + Fore.RESET
|
status = Fore.YELLOW + "????" + Fore.RESET
|
||||||
elif abs(frac_diff) <= min_noise:
|
elif abs(frac_diff) <= min_noise:
|
||||||
pass_count += 1
|
pass_count += 1
|
||||||
status = Fore.GREEN + "PASS" + Fore.RESET
|
status = Fore.BLUE + "SAME" + Fore.RESET
|
||||||
|
elif diff < 0:
|
||||||
|
failure_count += 1
|
||||||
|
status = Fore.GREEN + "FAST" + Fore.RESET
|
||||||
else:
|
else:
|
||||||
failure_count += 1
|
failure_count += 1
|
||||||
status = Fore.RED + "FAIL" + Fore.RESET
|
status = Fore.RED + "SLOW" + Fore.RESET
|
||||||
|
|
||||||
if abs(frac_diff) >= threshold:
|
if abs(frac_diff) >= threshold:
|
||||||
row.append(format_duration(ref_time))
|
row.append(format_duration(ref_time))
|
||||||
|
|||||||
Reference in New Issue
Block a user