Skip to content

Commit 78b93a2

Browse files
committed
Capture end of warmup iteration
1 parent aa1f8a3 commit 78b93a2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,22 @@ def rules(self, output, benchmarks, bm_suite_args):
357357
"config.run-flags": "".join(arg),
358358
}
359359
),
360+
# secondary metric(s)
361+
StdOutRule(
362+
r"### WARMUP detected at iteration: (?P<endOfWarmup>[0-9]+$)",
363+
{
364+
"benchmark": '{}.{}'.format(self._name, bench_name),
365+
"metric.name": "end-of-warmup",
366+
"metric.iteration": 0,
367+
"metric.type": "numeric",
368+
"metric.value": ("<endOfWarmup>", int),
369+
"metric.unit": "s",
370+
"metric.score-function": "id",
371+
"metric.better": "lower",
372+
"config.run-flags": "".join(arg),
373+
}
374+
),
375+
360376
# no warmups
361377
StdOutRule(
362378
r"^@@@ name=(?P<benchmark>[a-zA-Z0-9._\-]+), duration=(?P<time>[0-9]+(\.[0-9]+)?$)", # pylint: disable=line-too-long

0 commit comments

Comments
 (0)