From 4bc41fbe9b08ba7bff712083c5fcbcfe5ab3eb20 Mon Sep 17 00:00:00 2001
From: Bram Veenboer <bram.veenboer@gmail.com>
Date: Wed, 28 Apr 2021 11:49:23 +0000
Subject: [PATCH] COB-121: Reverse performance metric for
 tSubbandProcPerformance

---
 .../test/SubbandProcs/tSubbandProcPerformance_compare.py      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/RTCP/Cobalt/GPUProc/test/SubbandProcs/tSubbandProcPerformance_compare.py b/RTCP/Cobalt/GPUProc/test/SubbandProcs/tSubbandProcPerformance_compare.py
index f712804a513..395a80dda3d 100755
--- a/RTCP/Cobalt/GPUProc/test/SubbandProcs/tSubbandProcPerformance_compare.py
+++ b/RTCP/Cobalt/GPUProc/test/SubbandProcs/tSubbandProcPerformance_compare.py
@@ -79,9 +79,9 @@ for name, runtime_reference in measurements_reference.items():
         runtime_candidate = measurements_candidate[name]
 
         # Compare the two measurements
-        performance = runtime_reference / runtime_candidate * 100
+        performance = runtime_candidate / runtime_reference * 100
         result = "\"{}\", reference: {:.2f}, candidate: {:.2f} ({:.1f} %)".format(name, runtime_reference, runtime_candidate, performance)
-        if (performance > (100 - tolerance)):
+        if (performance < (100 + tolerance)):
             passed.append(result)
         else:
             failed.append(result)
-- 
GitLab