Mercurial > hg > truffle
comparison mx/commands.py @ 4329:4aacce9c9cb9
Add posibility to give arguments for a SPECjvm2008 run
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 26 Jan 2012 12:22:36 +0100 |
parents | 600cbdce9805 |
children | d13bfce7b3dd |
comparison
equal
deleted
inserted
replaced
4328:60c48d99c28b | 4329:4aacce9c9cb9 |
---|---|
540 #Bootstrap | 540 #Bootstrap |
541 if ('bootstrap' in args or 'all' in args): | 541 if ('bootstrap' in args or 'all' in args): |
542 benchmarks += sanitycheck.getBootstraps() | 542 benchmarks += sanitycheck.getBootstraps() |
543 #SPECjvm2008 | 543 #SPECjvm2008 |
544 if ('specjvm2008' in args or 'all' in args): | 544 if ('specjvm2008' in args or 'all' in args): |
545 benchmarks += [sanitycheck.getSPECjvm2008(True, 120, 120)] | 545 benchmarks += [sanitycheck.getSPECjvm2008(None, True, 120, 120)] |
546 | 546 |
547 for test in benchmarks: | 547 for test in benchmarks: |
548 if not results.has_key(test.group): | 548 if not results.has_key(test.group): |
549 results[test.group] = {} | 549 results[test.group] = {} |
550 results[test.group].update(test.bench('-' + vm)) | 550 results[test.group].update(test.bench('-' + vm)) |
552 if resultFile: | 552 if resultFile: |
553 with open(resultFile, 'w') as f: | 553 with open(resultFile, 'w') as f: |
554 f.write(json.dumps(results)) | 554 f.write(json.dumps(results)) |
555 | 555 |
556 def specjvm2008(args): | 556 def specjvm2008(args): |
557 sanitycheck.getSPECjvm2008().bench('-graal') | 557 benchArgs = [a[1:] for a in args if a[0] == '@'] |
558 vmArgs = [a for a in args if a[0] != '@'] | |
559 sanitycheck.getSPECjvm2008(benchArgs).bench('-graal', opts=vmArgs) | |
558 | 560 |
559 def mx_init(): | 561 def mx_init(): |
560 _vmbuild = 'product' | 562 _vmbuild = 'product' |
561 commands = { | 563 commands = { |
562 'build': [build, '[-options]'], | 564 'build': [build, '[-options]'], |