@@ -278,38 +278,12 @@ class GraalPythonTags(object):
278
278
unittest = 'python-unittest'
279
279
cpyext = 'python-cpyext'
280
280
svmunit = 'python-svm-unittest'
281
- benchmarks = 'python-benchmarks'
282
281
downstream = 'python-downstream'
283
282
graalvm = 'python-graalvm'
284
283
apptests = 'python-apptests'
285
284
license = 'python-license'
286
285
287
286
288
- python_test_benchmarks = {
289
- 'binarytrees3' : '12' ,
290
- 'fannkuchredux3' : '9' ,
291
- 'fasta3' : '250000' ,
292
- 'mandelbrot3' : '600' ,
293
- 'meteor3' : '2098' ,
294
- 'nbody3' : '100000' ,
295
- 'spectralnorm3' : '500' ,
296
- 'richards3' : '3' ,
297
- 'bm-ai' : '0' ,
298
- 'pidigits' : '0' ,
299
- 'pypy-go' : '1' ,
300
- }
301
-
302
-
303
- def _gate_python_benchmarks_tests (name , iterations ):
304
- run_java = mx .run_java
305
- vmargs += ['-cp' , mx .classpath (["com.oracle.graal.python" ]), "com.oracle.graal.python.shell.GraalPythonMain" , name , str (iterations )]
306
- success_pattern = re .compile (r"^(?P<benchmark>[a-zA-Z0-9.\-]+): (?P<score>[0-9]+(\.[0-9]+)?$)" )
307
- out = mx .OutputCapture ()
308
- run_java (vmargs , out = mx .TeeOutputCapture (out ), err = subprocess .STDOUT )
309
- if not re .search (success_pattern , out .data , re .MULTILINE ):
310
- mx .abort ('Benchmark "' + name + '" doesn\' t match success pattern: ' + str (success_pattern ))
311
-
312
-
313
287
def python_gate (args ):
314
288
if not os .environ .get ("JDT" ):
315
289
find_jdt ()
@@ -453,11 +427,6 @@ def is_included(path):
453
427
if success not in out .data :
454
428
mx .abort ('Output from generated SVM image "' + svm_image + '" did not match success pattern:\n ' + success )
455
429
456
- for name , iterations in sorted (python_test_benchmarks .iteritems ()):
457
- with Task ('PythonBenchmarksTest:' + name , tasks , tags = [GraalPythonTags .benchmarks ]) as task :
458
- if task :
459
- _gate_python_benchmarks_tests ("graalpython/benchmarks/src/benchmarks/" + name + ".py" , iterations )
460
-
461
430
462
431
mx_gate .add_gate_runner (_suite , graalpython_gate_runner )
463
432
0 commit comments