Skip to content

Commit ee09520

Browse files
committed
Reduce number of iterations for SVM interpreter benchmarks
1 parent 018c8a2 commit ee09520

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ def __init__(self, config_name, options=None, virtualenv=None, iterations=None,
266266
super().__init__(VM_NAME_GRAALPYTHON, config_name, options=options, iterations=iterations)
267267
self._extra_polyglot_args = extra_polyglot_args or []
268268

269+
def override_iterations(self, requested_iterations):
270+
# If we are native and without JIT, half as many iterations should be enough
271+
if self.launcher_type == "native" and "interpreter" in self.config_name():
272+
return int(requested_iterations / 2)
273+
else:
274+
return requested_iterations
275+
269276
@property
270277
@functools.lru_cache
271278
def launcher_type(self):

0 commit comments

Comments
 (0)