@@ -394,19 +394,7 @@ def __iter__(self):
394
394
395
395
396
396
class PySuite (mx_benchmark .TemporaryWorkdirMixin , mx_benchmark .VmBenchmarkSuite ):
397
- def runAndReturnStdOut (self , benchmarks , bmSuiteArgs ):
398
- ret_code , out , dims = super ().runAndReturnStdOut (benchmarks , bmSuiteArgs )
399
-
400
- def _replace_host_vm (old , new ):
401
- host_vm = dims .get ("host-vm" )
402
- if host_vm and old in host_vm :
403
- dims ['host-vm' ] = host_vm .replace (old , new )
404
- mx .logv (f"[DEBUG] replace 'host-vm': '{ host_vm } ' -> '{ dims ['host-vm' ]} '" )
405
-
406
- _replace_host_vm ('graalvm-ce-python' , 'graalvm-ce' )
407
- _replace_host_vm ('graalvm-ee-python' , 'graalvm-ee' )
408
-
409
- return ret_code , out , dims
397
+ pass
410
398
411
399
412
400
class PyPerformanceSuite (PySuite ):
@@ -436,6 +424,7 @@ def get_vm_registry(self):
436
424
def _vmRun (self , vm , workdir , command , benchmarks , bmSuiteArgs ):
437
425
workdir = abspath (workdir )
438
426
vm_venv = f"{ self .name ()} -{ vm .name ()} -{ vm .config_name ()} "
427
+ _ , _ , vm_dims = vm .run (workdir , ["--version" ])
439
428
440
429
if not hasattr (self , "prepared" ):
441
430
self .prepared = True
@@ -488,7 +477,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
488
477
mx .log (f"Return code of benchmark harness: { retcode } " )
489
478
shutil .copy (join (workdir , json_file ), join (SUITE .dir , "raw_results.json" ))
490
479
shutil .copy (join (workdir , json_file_memory ), join (SUITE .dir , "raw_results_memory.json" ))
491
- return retcode , "," .join ([join (workdir , json_file ), join (workdir , json_file_memory )])
480
+ return retcode , "," .join ([join (workdir , json_file ), join (workdir , json_file_memory )]), vm_dims
492
481
493
482
494
483
class PyPySuite (PySuite ):
@@ -518,6 +507,7 @@ def get_vm_registry(self):
518
507
def _vmRun (self , vm , workdir , command , benchmarks , bmSuiteArgs ):
519
508
workdir = abspath (workdir )
520
509
vm_venv = f"{ self .name ()} -{ vm .name ()} -{ vm .config_name ()} "
510
+ _ , _ , vm_dims = vm .run (workdir , ["--version" ])
521
511
522
512
if not hasattr (self , "prepared" ):
523
513
self .prepared = True
@@ -569,7 +559,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
569
559
)
570
560
shutil .copy (join (workdir , json_file ), join (SUITE .dir , "raw_results.json" ))
571
561
mx .log (f"Return code of benchmark harness: { retcode } " )
572
- return retcode , join (workdir , json_file )
562
+ return retcode , join (workdir , json_file ), vm_dims
573
563
574
564
575
565
class NumPySuite (PySuite ):
@@ -611,6 +601,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
611
601
workdir = abspath (workdir )
612
602
benchdir = join (workdir , "numpy" , "benchmarks" )
613
603
vm_venv = f"{ self .name ()} -{ vm .name ()} -{ vm .config_name ()} "
604
+ _ , _ , vm_dims = vm .run (workdir , ["--version" ])
614
605
615
606
if not hasattr (self , "prepared" ):
616
607
self .prepared = True
@@ -671,9 +662,9 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
671
662
if json_file :
672
663
json_file = json_file [0 ]
673
664
shutil .copy (json_file , join (SUITE .dir , "raw_results.json" ))
674
- return retcode , json_file
665
+ return retcode , json_file , vm_dims
675
666
else :
676
- return - 1 , ""
667
+ return - 1 , "" , vm_dims
677
668
678
669
679
670
class PandasSuite (PySuite ):
@@ -720,6 +711,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
720
711
workdir = abspath (workdir )
721
712
benchdir = join (workdir , "pandas" , "asv_bench" )
722
713
vm_venv = f"{ self .name ()} -{ vm .name ()} -{ vm .config_name ()} "
714
+ _ , _ , vm_dims = vm .run (workdir , ["--version" ])
723
715
724
716
if not hasattr (self , "prepared" ):
725
717
self .prepared = True
@@ -798,9 +790,9 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
798
790
if json_file :
799
791
json_file = json_file [0 ]
800
792
shutil .copy (json_file , join (SUITE .dir , "raw_results.json" ))
801
- return retcode , json_file
793
+ return retcode , json_file , vm_dims
802
794
else :
803
- return - 1 , ""
795
+ return - 1 , "" , vm_dims
804
796
805
797
806
798
def register_python_benchmarks ():
0 commit comments