Distinguish slower, same and faster comparisons (#190)

Fixes: #178
This commit is contained in:
Bernhard Manfred Gruber
2024-11-15 18:41:47 +01:00
committed by GitHub
parent 0ce45af043
commit f52aa4b0aa

View File

@@ -247,10 +247,13 @@ def compare_benches(ref_benches, cmp_benches, threshold, plot):
status = Fore.YELLOW + "????" + Fore.RESET
elif abs(frac_diff) <= min_noise:
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:
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))