From 99082d1473601d76c4eedddd4c9720dd9a42ea24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Fri, 16 Dec 2022 09:59:34 +0100 Subject: [PATCH] chore(ci): use name field instead of run_name in benchmark results In case of benchmark_repetitions > 1 using 'run_name' will return always the same name for a given benchmark case. It won't make the distinction between the iterations and the aggregated values like mean, median or stdev. Using 'name' field fix this behavior. --- ci/benchmark_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/benchmark_parser.py b/ci/benchmark_parser.py index 7388cef5f..47c0fca59 100644 --- a/ci/benchmark_parser.py +++ b/ci/benchmark_parser.py @@ -40,7 +40,7 @@ def parse_results(raw_results): """ raw_results = json.loads(raw_results.read_text()) return [ - {"value": res["cpu_time"], "test": res["run_name"]} + {"value": res["cpu_time"], "test": res["name"]} for res in raw_results["benchmarks"] ]