Skip to content

Commit 2209769

Browse files
committed
set both pypy and graalvm to and Xmx of 8G
1 parent 182a83a commit 2209769

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mx.graalpython/mx_graalpython_python_benchmarks.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ def interpreter(self):
316316
return join(home, "bin", "pypy3")
317317

318318
def run(self, cwd, args):
319-
return mx.run([self.interpreter()] + args, cwd=cwd)
319+
env = os.environ.copy()
320+
env["PYPY_GC_MAX"] = "8GB"
321+
return mx.run([self.interpreter()] + args, cwd=cwd, env=env)
320322

321323

322324
class Python3Vm(mx_benchmark.Vm):
@@ -409,7 +411,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
409411
join(vm_venv, "bin", "pyperformance"),
410412
"run",
411413
"--inherit-environ",
412-
"PIP_INDEX_URL,PIP_TRUSTED_HOST,PIP_TIMEOUT,PIP_RETRIES,LD_LIBRARY_PATH,LIBRARY_PATH,CPATH,PATH",
414+
"PIP_INDEX_URL,PIP_TRUSTED_HOST,PIP_TIMEOUT,PIP_RETRIES,LD_LIBRARY_PATH,LIBRARY_PATH,CPATH,PATH,PYPY_GC_MAX",
413415
"-m",
414416
"-o",
415417
json_file,
@@ -620,7 +622,7 @@ def register_python_benchmarks():
620622
python_vm_registry.add_vm(PyPyVm())
621623
python_vm_registry.add_vm(Python3Vm())
622624
for config_name, options, priority in [
623-
("launcher", [], 5),
625+
("launcher", ["--vm.Xmx8G"], 5),
624626
]:
625627
python_vm_registry.add_vm(GraalPyVm(config_name, options), SUITE, priority)
626628

0 commit comments

Comments
 (0)