Skip to content

Commit

Permalink
[GR-50987] Unify bench-suite name in data collection
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed Jan 31, 2024
1 parent f105a80 commit 9c8633f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions java-benchmarks/mx.java-benchmarks/mx_java_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,9 @@ class SpecJvm2008BenchmarkSuite(mx_benchmark.JavaBenchmarkSuite, mx_benchmark.Te
def name(self):
return "specjvm2008"

def benchSuiteName(self, bmSuiteArgs=None):
return self.name()

def group(self):
return "Graal"

Expand Down Expand Up @@ -1364,9 +1367,8 @@ def flakySuccessPatterns(self):
return []

def rules(self, out, benchmarks, bmSuiteArgs):
suite_name = self.name()
if benchmarks and len(benchmarks) == 1:
suite_name = suite_name + "-single"
# For historical reasons, we have the suffix. Dropping the suffix would require data migration.
suite_name = self.benchSuiteName() + "-single"
return [
mx_benchmark.StdOutRule(
r"^Score on (?P<benchmark>[a-zA-Z0-9\._]+): (?P<score>[0-9]+((,|\.)[0-9]+)?) ops/m$", # pylint: disable=line-too-long
Expand Down

0 comments on commit 9c8633f

Please sign in to comment.