Skip to content

Commit 7ad1034

Browse files
eregonbjfish
authored andcommitted
Remember the warmup iteration
1 parent 533f385 commit 7ad1034

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mx.truffleruby/mx_truffleruby_benchmark.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,12 @@ def filterLines(self, lines):
264264
data = []
265265
for line in lines:
266266
try:
267-
data.append(float(line))
267+
data.append(int(line))
268268
except ValueError:
269-
mx.log_error(line)
269+
try:
270+
data.append(float(line))
271+
except ValueError:
272+
mx.log_error(line)
270273
if len(data) % 3 != 0:
271274
raise AssertionError("Number of values not a multiple of 3")
272275
return data
@@ -341,6 +344,7 @@ def runBenchmark(self, benchmark, bmSuiteArgs):
341344
return [{
342345
'benchmark': benchmark,
343346
'metric.name': iteration_config[iteration],
347+
'metric.iteration': iteration,
344348
'metric.value': e,
345349
'metric.unit': 's',
346350
'metric.better': 'lower'

0 commit comments

Comments
 (0)