Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 4540:f1d3800b59e1
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 09 Feb 2012 11:46:10 +0100 |
parents | 8caa4f2df081 43b4e9201c29 |
children | 723df37192d6 |
comparison
equal
deleted
inserted
replaced
4539:98b3b255913c | 4540:f1d3800b59e1 |
---|---|
657 if resultFile: | 657 if resultFile: |
658 with open(resultFile, 'w') as f: | 658 with open(resultFile, 'w') as f: |
659 f.write(json.dumps(results)) | 659 f.write(json.dumps(results)) |
660 | 660 |
661 def specjvm2008(args): | 661 def specjvm2008(args): |
662 benchArgs = [a[1:] for a in args if a[0] == '@'] | 662 """run one or all SPECjvm2008 benchmarks |
663 vmArgs = [a for a in args if a[0] != '@'] | 663 |
664 sanitycheck.getSPECjvm2008(benchArgs).bench('graal', opts=vmArgs) | 664 All options begining with - will be passed to the vm except for -ikv -wt and -it. |
665 Other options are supposed to be benchmark names and will be passed to SPECjvm2008.""" | |
666 benchArgs = [a for a in args if a[0] != '-'] | |
667 vmArgs = [a for a in args if a[0] == '-'] | |
668 wt = None | |
669 it = None | |
670 skipValid = False | |
671 if '-ikv' in vmArgs: | |
672 skipValid = True | |
673 vmArgs.remove('-ikv') | |
674 if '-wt' in vmArgs: | |
675 wtIdx = args.index('-wt') | |
676 try: | |
677 wt = int(args[wtIdx+1]) | |
678 except: | |
679 mx.abort('-wt (Warmup time) needs a numeric value (seconds)') | |
680 vmArgs.remove('-wt') | |
681 benchArgs.remove(args[wtIdx+1]) | |
682 if '-it' in vmArgs: | |
683 itIdx = args.index('-it') | |
684 try: | |
685 it = int(args[itIdx+1]) | |
686 except: | |
687 mx.abort('-it (Iteration time) needs a numeric value (seconds)') | |
688 vmArgs.remove('-it') | |
689 benchArgs.remove(args[itIdx+1]) | |
690 sanitycheck.getSPECjvm2008(benchArgs, skipValid, wt, it).bench('graal', opts=vmArgs) | |
665 | 691 |
666 def hsdis(args): | 692 def hsdis(args): |
667 """Installs the hsdis library | 693 """Installs the hsdis library |
668 | 694 |
669 This is needed to support HotSpot's assembly dumping features. | 695 This is needed to support HotSpot's assembly dumping features. |