Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/pytools/commands.py Mon Dec 05 18:15:25 2011 -0800 +++ b/pytools/commands.py Tue Dec 13 21:16:50 2011 -0800 @@ -83,26 +83,34 @@ """run a DaCapo benchmark""" benchmarks = { - 'avrora': ['--preserve', '-n', '20'], - 'batik': ['-n', '20'], - 'eclipse': ['-n', '20'], - 'fop': ['-n', '100'], - 'h2': ['-n', '10'], - 'jython': ['-n', '10'], + 'avrora': ['-n', '5'], + 'batik': ['-n', '5'], + 'eclipse': ['-n', '5'], + 'fop': ['-n', '5'], + 'h2': ['-n', '5'], + 'jython': ['-n', '5'], + 'luindex': ['-n', '5'], 'lusearch': ['-n', '5'], - 'pmd': ['-n', '10'], - 'tradebeans': ['-n', '20'], - 'xalan': ['-n', '20'], + 'pmd': ['-n', '5'], + 'sunflow': ['-n', '5'], + 'tomcat': ['-n', '5'], + 'tradebeans': ['-n', '5'], + 'tradesoap': ['-n', '5'], + 'xalan': ['-n', '5'], } if len(args) == 0: - env.abort('which benchmark?\nselect one of: ' + str(benchmarks.keys())) - bm = args[0] - config = benchmarks.get(bm) - if (config is None): - env.abort('unknown benchmark: ' + bm + '\nselect one of: ' + str(benchmarks.keys())) - args = args[1:] - return env.run_dacapo(args + ['Harness'] + config + [bm]) + args = args[0:] + for bm in benchmarks: + env.run_dacapo(args + ['Harness', '-n', '2'] + [bm]) + return + else: + bm = args[0] + config = benchmarks.get(bm) + if (config is None): + env.abort('unknown benchmark: ' + bm + '\nselect one of: ' + str(benchmarks.keys())) + args = args[1:] + return env.run_dacapo(args + ['Harness'] + config + [bm]) def tests(env, args): """run a selection of the Maxine JTT tests in Graal"""