From 51102af121f988249fd17338ff50b041be344125 Mon Sep 17 00:00:00 2001 From: Klimentieva Date: Tue, 12 Aug 2025 16:24:01 +0300 Subject: [PATCH] fix perf stats Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICTXNX Change-Id: I49a46e34ac37b0e71de1b6504bc9dde6bc905005 Signed-off-by: Klimentieva --- ets2panda/test/benchmarks/runner/benchmark_comparator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ets2panda/test/benchmarks/runner/benchmark_comparator.py b/ets2panda/test/benchmarks/runner/benchmark_comparator.py index 4e521f82f5..6ad4a97c94 100644 --- a/ets2panda/test/benchmarks/runner/benchmark_comparator.py +++ b/ets2panda/test/benchmarks/runner/benchmark_comparator.py @@ -117,6 +117,12 @@ def _check_regression( if success: print(f"\n✅ {metric_name} regression check for {perf_name} finished!") + msg = ( + f"[UPDATE REQUIRED] Perf statistics for {perf_name}: {metric_name} exceeded lower threshold.\n" + f"\tLimit: {regression:.1%}, Actual: +{((new_sum / base_sum) - 1) * 100:.2f}%\n" + f"\tBase: {format_func(base_sum)}, New: {format_func(new_sum)}\n" + ) + _print_and_log("Info", msg, log_dir) def compare_perf_files( -- Gitee