Skip to content

Commit

Permalink
ci: report embedded CoreMark/MHz score (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathales authored Dec 14, 2023
1 parent 6e41bc8 commit 4e3f470
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab-ci/scripts/report_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 4e3f470

Please sign in to comment.