comparison pytools/commands.py @ 3713:d6a0c46a73b2

Add all DaCapo benchmarks, allow batch execution of all DaCapo benchmarks, add -d flag to start HotSpot under the debugger
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 13 Dec 2011 21:16:50 -0800
parents 60d31b1fada5
children
comparison
equal deleted inserted replaced
3710:4e037604f6ee 3713:d6a0c46a73b2
81 81
82 def dacapo(env, args): 82 def dacapo(env, args):
83 """run a DaCapo benchmark""" 83 """run a DaCapo benchmark"""
84 84
85 benchmarks = { 85 benchmarks = {
86 'avrora': ['--preserve', '-n', '20'], 86 'avrora': ['-n', '5'],
87 'batik': ['-n', '20'], 87 'batik': ['-n', '5'],
88 'eclipse': ['-n', '20'], 88 'eclipse': ['-n', '5'],
89 'fop': ['-n', '100'], 89 'fop': ['-n', '5'],
90 'h2': ['-n', '10'], 90 'h2': ['-n', '5'],
91 'jython': ['-n', '10'], 91 'jython': ['-n', '5'],
92 'luindex': ['-n', '5'],
92 'lusearch': ['-n', '5'], 93 'lusearch': ['-n', '5'],
93 'pmd': ['-n', '10'], 94 'pmd': ['-n', '5'],
94 'tradebeans': ['-n', '20'], 95 'sunflow': ['-n', '5'],
95 'xalan': ['-n', '20'], 96 'tomcat': ['-n', '5'],
97 'tradebeans': ['-n', '5'],
98 'tradesoap': ['-n', '5'],
99 'xalan': ['-n', '5'],
96 } 100 }
97 101
98 if len(args) == 0: 102 if len(args) == 0:
99 env.abort('which benchmark?\nselect one of: ' + str(benchmarks.keys())) 103 args = args[0:]
100 bm = args[0] 104 for bm in benchmarks:
101 config = benchmarks.get(bm) 105 env.run_dacapo(args + ['Harness', '-n', '2'] + [bm])
102 if (config is None): 106 return
103 env.abort('unknown benchmark: ' + bm + '\nselect one of: ' + str(benchmarks.keys())) 107 else:
104 args = args[1:] 108 bm = args[0]
105 return env.run_dacapo(args + ['Harness'] + config + [bm]) 109 config = benchmarks.get(bm)
110 if (config is None):
111 env.abort('unknown benchmark: ' + bm + '\nselect one of: ' + str(benchmarks.keys()))
112 args = args[1:]
113 return env.run_dacapo(args + ['Harness'] + config + [bm])
106 114
107 def tests(env, args): 115 def tests(env, args):
108 """run a selection of the Maxine JTT tests in Graal""" 116 """run a selection of the Maxine JTT tests in Graal"""
109 117
110 def jtt(name): 118 def jtt(name):