Bug 1813515 - Use the run metric as the twitch-animation summary value. r=perftest-reviewers,afinder

This patch fixes an issue with twitch-animation where the summary value was being calculated as the geomean of all the subtests when it should only display the geomean of the `run` metric.

Differential Revision: https://phabricator.services.mozilla.com/D169089
This commit is contained in:
Greg Mierzwinski 2023-02-09 13:59:42 +00:00
parent c4b12f7aba
commit 259d27f2a9

View File

@ -442,6 +442,9 @@ class PerftestOutput(object):
# pylint: disable=W1633
return round(filters.mean(_filter(vals)), 2)
if "twitch-animation" in testname:
return round(filters.geometric_mean(_filter(vals, "run")), 2)
if testname.startswith("supporting_data"):
if not unit:
return sum(_filter(vals))