comparison 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
comparison
equal deleted inserted replaced
7569:7cae58134ff7 7570:2025455e7d80
289 for scoreMatcher in self.scoreMatchers: 289 for scoreMatcher in self.scoreMatchers:
290 parser.addMatcher(scoreMatcher) 290 parser.addMatcher(scoreMatcher)
291 291
292 if self.benchmarkCompilationRate: 292 if self.benchmarkCompilationRate:
293 opts.append('-XX:+CITime') 293 opts.append('-XX:+CITime')
294 bps = re.compile(r"ParsedBytecodesPerSecond@final: (?P<rate>[0-9]+)") 294 if vm == 'graal':
295 ibps = re.compile(r"InlinedBytecodesPerSecond@final: (?P<rate>[0-9]+)") 295 bps = re.compile(r"ParsedBytecodesPerSecond@final: (?P<rate>[0-9]+)")
296 parser.addMatcher(ValuesMatcher(bps, {'group' : 'ParsedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'})) 296 ibps = re.compile(r"InlinedBytecodesPerSecond@final: (?P<rate>[0-9]+)")
297 parser.addMatcher(ValuesMatcher(ibps, {'group' : 'InlinedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'})) 297 parser.addMatcher(ValuesMatcher(bps, {'group' : 'ParsedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'}))
298 parser.addMatcher(ValuesMatcher(ibps, {'group' : 'InlinedBytecodesPerSecond', 'name' : self.name, 'score' : '<rate>'}))
299 else:
300 ibps = re.compile(r"(?P<compiler>[\w]+) compilation speed: +(?P<rate>[0-9]+) bytes/s {standard")
301 parser.addMatcher(ValuesMatcher(ibps, {'group' : 'InlinedBytecodesPerSecond', 'name' : '<compiler>:' + self.name, 'score' : '<rate>'}))
298 302
299 startDelim = 'START: ' + self.name 303 startDelim = 'START: ' + self.name
300 endDelim = 'END: ' + self.name 304 endDelim = 'END: ' + self.name
301 305
302 outputfile = os.environ.get('BENCH_OUTPUT', None) 306 outputfile = os.environ.get('BENCH_OUTPUT', None)