From 6b9f369c81f60ec9c2cf3310373cfb044c7c72e3 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..2ffbb88 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.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))