From f52aa4b0aaef6dcbc044b39f9e09df639341b1ae Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Fri, 15 Nov 2024 18:41:47 +0100 Subject: [PATCH] Distinguish slower, same and faster comparisons (#190) Fixes: #178 --- scripts/nvbench_compare.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/nvbench_compare.py b/scripts/nvbench_compare.py index e4f9b93..2f4fae1 100755 --- a/scripts/nvbench_compare.py +++ b/scripts/nvbench_compare.py @@ -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))