Skip to content

Commit

Permalink
More robust names for native images created during benchmarking with mx
Browse files Browse the repository at this point in the history
  • Loading branch information
farquet committed Feb 14, 2022
1 parent 6ab8d84 commit 610004d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/mx.vm/mx_vm_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def __init__(self, vm, bm_suite, args):
self.last_stage = self.stages[-1]
self.skip_agent_assertions = bm_suite.skip_agent_assertions(self.benchmark_name, args)
self.root_dir = self.benchmark_output_dir if self.benchmark_output_dir else mx.suite('vm').get_output_root(platformDependent=False, jdkDependent=False)
self.executable_suffix = ('-' + self.benchmark_name) if self.benchmark_name else ''
self.executable_name = (os.path.splitext(basename(self.executable[1]))[0] + self.executable_suffix if self.executable[0] == '-jar' else self.executable[0] + self.executable_suffix).lower()
unique_suite_name = '{}-{}'.format(self.bmSuite.benchSuiteName(), self.bmSuite.version().replace('.', '-')) if self.bmSuite.version() != 'unknown' else self.bmSuite.benchSuiteName()
self.executable_name = (unique_suite_name + '-' + self.benchmark_name).lower() if self.benchmark_name else unique_suite_name.lower()
self.final_image_name = self.executable_name + '-' + vm.config_name()
self.output_dir = mx.join(os.path.abspath(self.root_dir), 'native-image-benchmarks', self.executable_name + '-' + vm.config_name())
self.profile_path_no_extension = os.path.join(self.output_dir, self.executable_name)
Expand Down

0 comments on commit 610004d

Please sign in to comment.