diff --git a/RTCP/Cobalt/GPUProc/test/SubbandProcs/tSubbandProcPerformance_compare.py b/RTCP/Cobalt/GPUProc/test/SubbandProcs/tSubbandProcPerformance_compare.py index f712804a51371b4098436c82c9f7d9b2d62d989e..395a80dda3d531f5ac6d3ad3019a07b13beac013 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)