# HG changeset patch # User Gilles Duboscq # Date 1333638701 -7200 # Node ID 8125c1f6472b62ed9d8e109d2481ca28820306f8 # Parent 20993edddd73b62d756a5752b363000765d07e02 Add DaCapo 1st run as a benchmark group diff -r 20993edddd73 -r 8125c1f6472b mx/commands.py --- a/mx/commands.py Wed Apr 04 09:19:44 2012 +0200 +++ b/mx/commands.py Thu Apr 05 17:11:41 2012 +0200 @@ -847,9 +847,10 @@ benchmarks += [sanitycheck.getSPECjvm2008([specjvm], True, 120, 120)] for test in benchmarks: - if not results.has_key(test.group): - results[test.group] = {} - results[test.group].update(test.bench(vm)) + for (group, res) in test.bench(vm).items(): + if not results.has_key(group): + results[group] = {}; + results[group].update(res) mx.log(json.dumps(results)) if resultFile: with open(resultFile, 'w') as f: diff -r 20993edddd73 -r 8125c1f6472b mx/sanitycheck.py --- a/mx/sanitycheck.py Wed Apr 04 09:19:44 2012 +0200 +++ b/mx/sanitycheck.py Thu Apr 05 17:11:41 2012 +0200 @@ -106,7 +106,7 @@ error = re.compile(r"^Errors in benchmark: ") # The ' ops/m' at the end of the success string is important : it's how you can tell valid and invalid runs apart success = re.compile(r"^(Noncompliant c|C)omposite result: [0-9]+(,|\.)[0-9]+( SPECjvm2008 (Base|Peak))? ops/m$") - matcher = Matcher(score, {'const:name' : 'benchmark', 'const:score' : 'score'}, startNewLine=True) + matcher = Matcher(score, {'const:group' : "const:SPECjvm2008", 'const:name' : 'benchmark', 'const:score' : 'score'}, startNewLine=True) opts = [] if warmupTime is not None: @@ -116,7 +116,7 @@ if skipKitValidation: opts += ['-ikv'] - return Test("SPECjvm2008", "SPECjvm2008", ['-jar', 'SPECjvm2008.jar'] + opts + benchArgs, [success], [error], [matcher], vmOpts=['-Xms3g', '-XX:+UseSerialGC'], defaultCwd=specjvm2008) + return Test("SPECjvm2008", ['-jar', 'SPECjvm2008.jar'] + opts + benchArgs, [success], [error], [matcher], vmOpts=['-Xms3g', '-XX:+UseSerialGC'], defaultCwd=specjvm2008) def getDacapos(level=SanityCheckLevel.Normal, gateBuildLevel=None, dacapoArgs=[]): checks = [] @@ -143,10 +143,12 @@ dacapoSuccess = re.compile(r"^===== DaCapo 9\.12 ([a-zA-Z0-9_]+) PASSED in ([0-9]+) msec =====$") dacapoFail = re.compile(r"^===== DaCapo 9\.12 ([a-zA-Z0-9_]+) FAILED (warmup|) =====$") dacapoTime = re.compile(r"===== DaCapo 9\.12 (?P[a-zA-Z0-9_]+) PASSED in (?P