Skip to content

Commit c25de2e

Browse files
committed
Override iterations number if insufficient
1 parent f2ea779 commit c25de2e

File tree

1 file changed

+4
-2
lines changed
  • graalpython/com.oracle.graal.python.benchmarks/python

1 file changed

+4
-2
lines changed

graalpython/com.oracle.graal.python.benchmarks/python/harness.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,10 @@ def run_benchmark(args):
429429
bench_args.append(arg)
430430
i += 1
431431

432-
if startup and iterations < max(startup):
433-
print("### WARNING: you've specified less iterations than required to measure the startup")
432+
min_required_iterations = max(startup)
433+
if startup and iterations < min_required_iterations:
434+
print("### WARNING: you've specified less iterations than required to measure the startup. Overriding iterations with %d" % min_required_iterations)
435+
iterations = min_required_iterations
434436

435437
# set the paths if specified
436438
print(_HRULE)

0 commit comments

Comments
 (0)