summaryrefslogtreecommitdiff
path: root/scripts/perf/profile_cmp.py
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-09-23 11:23:39 -0400
committerGitHub <noreply@github.com>2024-09-23 11:23:39 -0400
commitdb013ab0cb7dafb964b149a36b6963770f7427e5 (patch)
treeeb49e677d64e960a4c1d1c5b1f10f64918318962 /scripts/perf/profile_cmp.py
parent60947eebafe7c7ef707e7e1d05d2179e17404104 (diff)
parent4fc8f2ed98b5ea80f763e1b6910b7bc3843ee7e2 (diff)
Merge pull request #2636 from secondlife/profile-cmp-rev
Reverse the sort order for profile_cmp.py
Diffstat (limited to 'scripts/perf/profile_cmp.py')
-rw-r--r--scripts/perf/profile_cmp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/perf/profile_cmp.py b/scripts/perf/profile_cmp.py
index 9dbfa3145b..34281b8d01 100644
--- a/scripts/perf/profile_cmp.py
+++ b/scripts/perf/profile_cmp.py
@@ -60,8 +60,9 @@ def compare(baseline, test, epsilon=DEFAULT_EPSILON):
if abs(delta) > epsilon:
deltas.append((delta, shader, bthruput, tthruput))
- # descending order of performance gain
- deltas.sort(reverse=True)
+ # ascending order of performance gain: put the most egregious performance
+ # hits at the top of the list
+ deltas.sort()
print(f'{len(deltas)} shaders showed nontrivial performance differences '
'(millon samples/sec):')
namelen = max(len(s[1]) for s in deltas) if deltas else 0