From 8731c833ae86674804fd5388fc515311057a0c1b Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Tue, 12 Nov 2024 15:18:05 +0100 Subject: [PATCH] Distinguish slower, same and faster comparisons 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 5c3449b..1eb060d 100755 --- a/scripts/nvbench_compare.py +++ b/scripts/nvbench_compare.py @@ -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.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))