Skip to content

Commit f63f86e

Browse files
committed
Re-add GraalVM version info to benchmark dims
1 parent 726e834 commit f63f86e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,15 @@ def extract_vm_info(self, args):
273273
out_version = subprocess.check_output([self.interpreter, '--version'], universal_newlines=True)
274274
# The benchmark data goes back a ways, we modify the reported dims for
275275
# continuity with the historical queries
276+
graalvm_version_match = re.search(r"\(([^\)]+ ((?:\d+\.?)+))\)", out_version)
276277
dims = {
277278
'guest-vm': self.name(),
278279
'guest-vm-config': self.config_name(),
279280
'host-vm': 'graalvm-' + ('ee' if 'Oracle GraalVM' in out_version else 'ce'),
280281
'host-vm-config': self.launcher_type,
282+
"platform.graalvm-edition": 'EE' if 'Oracle GraalVM' in out_version else 'CE',
283+
"platform.graalvm-version": graalvm_version_match[2],
284+
"platform.graalvm-version-string": graalvm_version_match[1],
281285
}
282286
if dims['guest-vm-config'].endswith('-3-compiler-threads'):
283287
dims['guest-vm-config'] = dims['guest-vm-config'].replace('-3-compiler-threads', '')

0 commit comments

Comments
 (0)