42
42
from mx_gate import Task
43
43
from mx_graalpython_bench_param import PATH_MESO , BENCHMARKS
44
44
from mx_graalpython_benchmark import PythonBenchmarkSuite , python_vm_registry , CPythonVm , PyPyVm , GraalPythonVm , \
45
- CONFIGURATION_DEFAULT , CONFIG_EXPERIMENTAL_SPLITTING , CONFIGURATION_SANDBOXED
45
+ CONFIGURATION_DEFAULT , CONFIG_EXPERIMENTAL_SPLITTING , CONFIGURATION_SANDBOXED , CONFIGURATION_NATIVE
46
46
47
47
SUITE = mx .suite ('graalpython' )
48
48
SUITE_COMPILER = mx .suite ("compiler" , fatalIfMissing = False )
@@ -903,10 +903,14 @@ def import_python_sources(args):
903
903
# post init
904
904
#
905
905
# ----------------------------------------------------------------------------------------------------------------------
906
-
907
906
def _register_vms (namespace ):
908
- python_vm_registry .add_vm (CPythonVm (CONFIGURATION_DEFAULT ), SUITE )
909
- python_vm_registry .add_vm (PyPyVm (CONFIGURATION_DEFAULT ), SUITE )
907
+ # cpython
908
+ python_vm_registry .add_vm (CPythonVm (config_name = CONFIGURATION_DEFAULT ), SUITE )
909
+
910
+ # pypy
911
+ python_vm_registry .add_vm (PyPyVm (config_name = CONFIGURATION_DEFAULT ), SUITE )
912
+
913
+ # graalpython
910
914
python_vm_registry .add_vm (GraalPythonVm (config_name = CONFIGURATION_DEFAULT ), SUITE , 10 )
911
915
python_vm_registry .add_vm (GraalPythonVm (config_name = CONFIG_EXPERIMENTAL_SPLITTING , extra_vm_args = [
912
916
'-Dgraal.TruffleExperimentalSplitting=true' ,
@@ -915,6 +919,9 @@ def _register_vms(namespace):
915
919
python_vm_registry .add_vm (GraalPythonVm (config_name = CONFIGURATION_SANDBOXED , extra_polyglot_args = [
916
920
'--llvm.sandboxed' ,
917
921
]), SUITE , 10 )
922
+ python_vm_registry .add_vm (GraalPythonVm (config_name = CONFIGURATION_NATIVE , extra_polyglot_args = [
923
+ "--llvm.sandboxed=false"
924
+ ]), SUITE , 10 )
918
925
919
926
920
927
def _register_bench_suites (namespace ):
@@ -934,7 +941,6 @@ def python_coverage(args):
934
941
mx .command_function ("jacocoreport" )(["--omit-excluded" , "--format=html" ])
935
942
936
943
937
-
938
944
# ----------------------------------------------------------------------------------------------------------------------
939
945
#
940
946
# register the suite commands (if any)
0 commit comments