Skip to content

Commit f1e14bb

Browse files
committed
make bench harness internal
1 parent 7b786be commit f1e14bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mx.graalpython/mx_graalpython_bench_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
_graalpython_suite = mx.suite('graalpython')
2929

3030
py = ".py"
31-
_BASE_PATH = os.path.join('graalpython', 'benchmarks', 'src')
31+
_BASE_PATH = os.path.join(_graalpython_suite.dir, 'graalpython', 'benchmarks', 'src')
3232
HARNESS_PATH = os.path.join(_BASE_PATH, 'harness.py')
3333

3434
PATH_BENCH = os.path.join(_BASE_PATH, 'benchmarks')

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def config_name(self):
183183
#
184184
# ----------------------------------------------------------------------------------------------------------------------
185185
class PythonBenchmarkSuite(VmBenchmarkSuite, AveragingBenchmarkMixin):
186-
def __init__(self, name, bench_path, benchmarks, harness_path):
186+
def __init__(self, name, bench_path, benchmarks):
187187
self._name = name
188-
self._harness_path = harness_path
188+
self._harness_path = HARNESS_PATH
189189
self._harness_path = join(_graalpython_suite.dir, self._harness_path)
190190
if not self._harness_path:
191191
mx.abort("python harness path not specified!")
@@ -294,7 +294,7 @@ def get_vm_registry(self):
294294
@classmethod
295295
def get_benchmark_suites(cls, benchmarks):
296296
assert isinstance(benchmarks, dict), "benchmarks must be a dict: {suite: [path, benchmarks], ...}"
297-
return [cls(suite_name, suite_info[0], suite_info[1], HARNESS_PATH)
297+
return [cls(suite_name, suite_info[0], suite_info[1])
298298
for suite_name, suite_info in benchmarks.items()]
299299

300300

0 commit comments

Comments
 (0)