Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 4335:0d661161fa24
Add possibility to run individual DaCapo & SPECjvm2008 benchmarks, small fix in success and score regular expressions for SPECjvm2008
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 26 Jan 2012 23:35:08 +0100 |
parents | d13bfce7b3dd |
children | b5c12b21879c |
comparison
equal
deleted
inserted
replaced
4334:0893aef10ed4 | 4335:0d661161fa24 |
---|---|
536 results = {} | 536 results = {} |
537 benchmarks = [] | 537 benchmarks = [] |
538 #DaCapo | 538 #DaCapo |
539 if ('dacapo' in args or 'all' in args): | 539 if ('dacapo' in args or 'all' in args): |
540 benchmarks += sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Benchmark) | 540 benchmarks += sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Benchmark) |
541 else: | |
542 dacapos = [a[7:] for a in args if a.startswith('dacapo:')] | |
543 for dacapo in dacapos: | |
544 if dacapo not in sanitycheck.dacapoSanityWarmup.keys(): | |
545 mx.abort('Unknown dacapo : ' + dacapo) | |
546 benchmarks += [sanitycheck.getDacapo(dacapo, sanitycheck.dacapoSanityWarmup[dacapo][sanitycheck.SanityCheckLevel.Benchmark])] | |
547 | |
541 #Bootstrap | 548 #Bootstrap |
542 if ('bootstrap' in args or 'all' in args): | 549 if ('bootstrap' in args or 'all' in args): |
543 benchmarks += sanitycheck.getBootstraps() | 550 benchmarks += sanitycheck.getBootstraps() |
544 #SPECjvm2008 | 551 #SPECjvm2008 |
545 if ('specjvm2008' in args or 'all' in args): | 552 if ('specjvm2008' in args or 'all' in args): |
546 benchmarks += [sanitycheck.getSPECjvm2008(None, True, 120, 120)] | 553 benchmarks += [sanitycheck.getSPECjvm2008(None, True, 120, 120)] |
554 else: | |
555 specjvms = [a[12:] for a in args if a.startswith('specjvm2008:')] | |
556 for specjvm in specjvms: | |
557 benchmarks += [sanitycheck.getSPECjvm2008([specjvm], True, 120, 120)] | |
547 | 558 |
548 for test in benchmarks: | 559 for test in benchmarks: |
549 if not results.has_key(test.group): | 560 if not results.has_key(test.group): |
550 results[test.group] = {} | 561 results[test.group] = {} |
551 results[test.group].update(test.bench('-' + vm)) | 562 results[test.group].update(test.bench('-' + vm)) |