Skip to content

Commit

Permalink
Disable rendering report
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed Nov 30, 2023
1 parent f703052 commit 4e222de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions substratevm/mx.substratevm/mx_substratevm_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ class SpecJVM2008NativeImageBenchmarkSuite(mx_java_benchmarks.SpecJvm2008Benchma
"""
SpecJVM2008 for Native Image
"""
# disables formatted report generation since chart generation with JFreeChart loads fonts from disk (from java.home) to compute string width
disable_rendered_report = ["-ctf", "false", "-chf", "false"]

def name(self):
return 'specjvm2008-native-image'
Expand All @@ -636,6 +638,7 @@ def benchSuiteName(self, bmSuiteArgs=None):

def createCommandLineArgs(self, benchmarks, bmSuiteArgs):
args = super().createCommandLineArgs(benchmarks, bmSuiteArgs)

if benchmarks is None:
mx.abort("Suite can only run a single benchmark per VM instance.")
elif len(benchmarks) != 1:
Expand All @@ -646,7 +649,7 @@ def createCommandLineArgs(self, benchmarks, bmSuiteArgs):

@staticmethod
def short_run_args():
return ["-wt", "1", "-it", "5"]
return SpecJVM2008NativeImageBenchmarkSuite.disable_rendered_report + ["-wt", "1", "-it", "5"]

def extra_agent_run_arg(self, benchmark, args, image_run_args):
return super().extra_agent_run_arg(benchmark, args, image_run_args) + self.short_run_args() + ["-ikv"]
Expand All @@ -659,9 +662,7 @@ def extra_image_build_argument(self, benchmark, args):
return super().extra_image_build_argument(benchmark, args) + ['-H:-ParseRuntimeOptions']

def extra_run_arg(self, benchmark, args, image_run_args):
# disables formatted report generation since chart generation with JFreeChart loads fonts from disk (from java.home) to compute string width
disable_rendered_report = ["-ctf", "false", "-chf", "false"]
return super().extra_run_arg(benchmark, args, image_run_args) + disable_rendered_report + ["-ikv", "-wt", "5", "-it", "15"]
return super().extra_run_arg(benchmark, args, image_run_args) + SpecJVM2008NativeImageBenchmarkSuite.disable_rendered_report + ["-ikv", "-wt", "5", "-it", "15"]

def successPatterns(self):
return super().successPatterns() + [_successful_stage_pattern]
Expand Down

0 comments on commit 4e222de

Please sign in to comment.