From ae4389d7060ac278ba36aaf28c358c7216166bf9 Mon Sep 17 00:00:00 2001 From: Pavel Marek Date: Mon, 8 Jan 2024 16:40:49 +0100 Subject: [PATCH] bench_download.py script takes the last score data, not the smallest one --- tools/performance/engine-benchmarks/bench_download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/performance/engine-benchmarks/bench_download.py b/tools/performance/engine-benchmarks/bench_download.py index 138dff3b5718..7743adb5627a 100755 --- a/tools/performance/engine-benchmarks/bench_download.py +++ b/tools/performance/engine-benchmarks/bench_download.py @@ -280,8 +280,8 @@ def _parse_bench_report_from_xml(bench_report_xml_path: str, bench_run: JobRun) scores_float = [float(score.text.strip()) for score in scores] if len(scores_float) > 1: logging.warning(f"More than one score for benchmark {label}, " - f"using the best one (the smallest one).") - label_score_dict[label] = min(scores_float) + f"using the last one (the newest one).") + label_score_dict[label] = scores_float[len(scores_float) - 1] return JobReport( label_score_dict=label_score_dict, bench_run=bench_run