diff mx/sanitycheck.py @ 7570:2025455e7d80

added collection of compilation speed metric for C1 and C2 to bench command
author Doug Simon <doug.simon@oracle.com>
date Wed, 30 Jan 2013 22:39:51 +0100
parents 7cae58134ff7
children 6078d41cecb2
line wrap: on
line diff
--- a/mx/sanitycheck.py	Wed Jan 30 22:33:04 2013 +0100
+++ b/mx/sanitycheck.py	Wed Jan 30 22:39:51 2013 +0100
@@ -291,10 +291,14 @@
 
         if self.benchmarkCompilationRate:
             opts.append('-XX:+CITime')
-            bps = re.compile(r"ParsedBytecodesPerSecond@final: (?P<rate>[0-9]+)")
-            ibps = re.compile(r"InlinedBytecodesPerSecond@final: (?P<rate>[0-9]+)")
-            parser.addMatcher(ValuesMatcher(bps, {'group' : 'ParsedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'}))
-            parser.addMatcher(ValuesMatcher(ibps, {'group' : 'InlinedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'}))
+            if vm == 'graal':
+                bps = re.compile(r"ParsedBytecodesPerSecond@final: (?P<rate>[0-9]+)")
+                ibps = re.compile(r"InlinedBytecodesPerSecond@final: (?P<rate>[0-9]+)")
+                parser.addMatcher(ValuesMatcher(bps, {'group' : 'ParsedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'}))
+                parser.addMatcher(ValuesMatcher(ibps, {'group' : 'InlinedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'}))
+            else:
+                ibps = re.compile(r"(?P<compiler>[\w]+) compilation speed: +(?P<rate>[0-9]+) bytes/s {standard")
+                parser.addMatcher(ValuesMatcher(ibps, {'group' : 'InlinedBytecodesPerSecond', 'name' : '<compiler>:' + self.name, 'score' : '<rate>'}))
             
         startDelim = 'START: ' + self.name
         endDelim = 'END: ' + self.name