Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 5195:8125c1f6472b
Add DaCapo 1st run as a benchmark group
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 05 Apr 2012 17:11:41 +0200 |
parents | 6fbf12b8e572 |
children | e91f0761c56d |
comparison
equal
deleted
inserted
replaced
5192:20993edddd73 | 5195:8125c1f6472b |
---|---|
845 specjvms = [a[12:] for a in args if a.startswith('specjvm2008:')] | 845 specjvms = [a[12:] for a in args if a.startswith('specjvm2008:')] |
846 for specjvm in specjvms: | 846 for specjvm in specjvms: |
847 benchmarks += [sanitycheck.getSPECjvm2008([specjvm], True, 120, 120)] | 847 benchmarks += [sanitycheck.getSPECjvm2008([specjvm], True, 120, 120)] |
848 | 848 |
849 for test in benchmarks: | 849 for test in benchmarks: |
850 if not results.has_key(test.group): | 850 for (group, res) in test.bench(vm).items(): |
851 results[test.group] = {} | 851 if not results.has_key(group): |
852 results[test.group].update(test.bench(vm)) | 852 results[group] = {}; |
853 results[group].update(res) | |
853 mx.log(json.dumps(results)) | 854 mx.log(json.dumps(results)) |
854 if resultFile: | 855 if resultFile: |
855 with open(resultFile, 'w') as f: | 856 with open(resultFile, 'w') as f: |
856 f.write(json.dumps(results)) | 857 f.write(json.dumps(results)) |
857 | 858 |