Bug 1876888 - Try estimate percentiles as "shortest 5%" instead of "top 95%". r=ahal,perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D199789
This commit is contained in:
Kelsey Gilbert 2024-01-29 21:57:32 +00:00
parent bddf934e04
commit 51b6a1de86
3 changed files with 7 additions and 7 deletions

View File

@ -174,7 +174,7 @@ In the future, this section will be populated dynamically. If you are wondering
Executing queries: 'browsertime 'benchmark, !android 'shippable !-32 !clang, !live, !profil, !chrom
estimates: Runs 66 tasks (54 selected, 12 dependencies)
estimates: Total task duration 8:45:58
estimates: In the top 62% of durations
estimates: In the shortest 38% of durations (thanks!)
estimates: Should take about 1:04:58 (Finished around 2022-11-22 15:08)
Commit message:
Perf selections=Benchmarks desktop (queries='browsertime 'benchmark&!android 'shippable !-32 !clang&!live&!profil&!chrom)

View File

@ -174,7 +174,7 @@ In the future, this section will be populated dynamically. If you are wondering
Executing queries: 'browsertime 'benchmark, !android 'shippable !-32 !clang, !live, !profil, !chrom
estimates: Runs 66 tasks (54 selected, 12 dependencies)
estimates: Total task duration 8:45:58
estimates: In the top 62% of durations
estimates: In the shortest 38% of durations (thanks!)
estimates: Should take about 1:04:58 (Finished around 2022-11-22 15:08)
Commit message:
Perf selections=Benchmarks desktop (queries='browsertime 'benchmark&!android 'shippable !-32 !clang&!live&!profil&!chrom)

View File

@ -157,11 +157,11 @@ def display_push_estimates(try_task_config):
)
)
if "percentile" in durations:
print(
"estimates: In the top {}% of durations".format(
100 - durations["percentile"]
)
)
percentile = durations["percentile"]
if percentile > 50:
print("estimates: In the longest {}% of durations".format(100 - percentile))
else:
print("estimates: In the shortest {}% of durations".format(percentile))
print(
"estimates: Should take about {} (Finished around {})".format(
durations["wall_duration_seconds"],