Skip to content

Commit bf8b440

Browse files
committed
Run benchmarks with experimental splitting.
This includes: - add vm args to graalpythonvm - add experimental splitting configuration
1 parent 90b23dd commit bf8b440

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
overlay: "9a364f9b9ae34629919679b5edefb803ad27fbb7",
2+
overlay: "09dd9dc962677472fb7582a8f9ce2054ab4ae14f",
33

44
// ======================================================================================================
55
//

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from mx_gate import Task
3939
from mx_graalpython_bench_param import PATH_MESO, BENCHMARKS
4040
from mx_graalpython_benchmark import PythonBenchmarkSuite, python_vm_registry, CPythonVm, PyPyVm, GraalPythonVm, \
41-
CONFIGURATION_DEFAULT
41+
CONFIGURATION_DEFAULT, CONFIGURATION_EXPERIMENTAL_SPLITTING
4242
from mx_unittest import unittest
4343

4444
SUITE = mx.suite('graalpython')
@@ -826,6 +826,10 @@ def _register_vms(namespace):
826826
python_vm_registry.add_vm(CPythonVm(CONFIGURATION_DEFAULT), SUITE)
827827
python_vm_registry.add_vm(PyPyVm(CONFIGURATION_DEFAULT), SUITE)
828828
python_vm_registry.add_vm(GraalPythonVm(config_name=CONFIGURATION_DEFAULT), SUITE, 10)
829+
python_vm_registry.add_vm(GraalPythonVm(config_name=CONFIGURATION_EXPERIMENTAL_SPLITTING, extra_vm_args=[
830+
'-Dgraal.TruffleExperimentalSplitting=true',
831+
'-Dgraal.TruffleExperimentalSplittingAllowForcedSplits=false'
832+
]), SUITE, 10)
829833

830834

831835
def _register_bench_suites(namespace):

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
SUBGROUP_GRAAL_PYTHON = "graalpython"
5555
PYTHON_VM_REGISTRY_NAME = "Python"
5656
CONFIGURATION_DEFAULT = "default"
57+
CONFIGURATION_EXPERIMENTAL_SPLITTING = "experimental_splitting"
5758

5859
DEFAULT_ITERATIONS = 10
5960

@@ -186,12 +187,13 @@ def name(self):
186187

187188
class GraalPythonVm(GuestVm):
188189
def __init__(self, config_name=CONFIGURATION_DEFAULT, distributions=None, cp_suffix=None, cp_prefix=None,
189-
host_vm=None):
190+
host_vm=None, extra_vm_args=None):
190191
super(GraalPythonVm, self).__init__(host_vm=host_vm)
191192
self._config_name = config_name
192193
self._distributions = distributions
193194
self._cp_suffix = cp_suffix
194195
self._cp_prefix = cp_prefix
196+
self._extra_vm_args = extra_vm_args
195197

196198
def hosting_registry(self):
197199
return java_vm_registry
@@ -215,6 +217,8 @@ def run(self, cwd, args):
215217
dists.append('SULONG_MANAGED')
216218

217219
vm_args = mx.get_runtime_jvm_args(dists, cp_suffix=self._cp_suffix, cp_prefix=self._cp_prefix)
220+
if isinstance(self._extra_vm_args, list):
221+
vm_args += self._extra_vm_args
218222
vm_args += [
219223
"-Dpython.home=%s" % join(SUITE.dir, "graalpython"),
220224
"com.oracle.graal.python.shell.GraalPythonMain"

0 commit comments

Comments
 (0)