From 6a9b828adad3a7d63d11bef9fd26097c1e4702e4 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 11 May 2025 00:51:35 +0100 Subject: [PATCH] Sort benchmark sizes numerically in HTML report generation --- .github/scripts/custom_benchmark_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/custom_benchmark_report.py b/.github/scripts/custom_benchmark_report.py index 90c2562..f255d98 100644 --- a/.github/scripts/custom_benchmark_report.py +++ b/.github/scripts/custom_benchmark_report.py @@ -247,7 +247,8 @@ def generate_html_table_with_links( {html_doc_end}""" all_sizes = sorted( - list(set(size for test_data in results.values() for size in test_data.keys())) + list(set(size for test_data in results.values() for size in test_data.keys())), + key=(lambda x: int(x.split("x")[0])), ) all_test_names = sorted(list(results.keys()))