From 4e3f470a75c027be5b2c03145e074ebd073256f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me?= <124148386+cathales@users.noreply.github.com> Date: Thu, 14 Dec 2023 13:29:31 +0100 Subject: [PATCH] ci: report embedded CoreMark/MHz score (#1710) --- .gitlab-ci/scripts/report_benchmark.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/scripts/report_benchmark.py b/.gitlab-ci/scripts/report_benchmark.py index d1cb3f3910..ad6e0e2834 100644 --- a/.gitlab-ci/scripts/report_benchmark.py +++ b/.gitlab-ci/scripts/report_benchmark.py @@ -24,10 +24,12 @@ for arg in sys.argv[1:]: if arg == '--dhrystone': mode = 'dhrystone' + # Standard value for Dhrystone iterations = 500 elif arg == '--coremark': mode = 'coremark' - # Too few iterations to consider a score + # Defined in verif/regress/coremark.sh + iterations = 2 else: path = arg @@ -54,6 +56,8 @@ if mode == 'dhrystone': score_metric.add_value('Dhrystone/MHz', ipmhz) score_metric.add_value('DMIPS/MHz', ipmhz / 1757) + if mode == 'coremark': + score_metric.add_value('CoreMark/MHz', ipmhz) diff = cycles - valid_cycles[mode] if diff != 0: