Mercurial > hg > truffle
diff mx/commands.py @ 9157:a38d748d4130
Add support for the 'optimized' build in mx
Add some CompileTheWorld benchmarks
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 16 Apr 2013 14:31:00 +0200 |
parents | fb73538b57c6 |
children | 43223d3f5dcd |
line wrap: on
line diff
--- a/mx/commands.py Tue Apr 16 15:27:22 2013 +0200 +++ b/mx/commands.py Tue Apr 16 14:31:00 2013 +0200 @@ -46,7 +46,7 @@ _vm = _vmChoices[0] """ The VM builds that will be run by the 'vm' command - default is first in list """ -_vmbuildChoices = ['product', 'fastdebug', 'debug'] +_vmbuildChoices = ['product', 'fastdebug', 'debug', 'optimized'] """ The VM build that will be run by the 'vm' command. This can be set via the global '--product', '--fastdebug' and '--debug' options. """ @@ -1167,6 +1167,13 @@ if ('specjbb2013' in args): # or 'all' in args //currently not in default set benchmarks += [sanitycheck.getSPECjbb2013()] + + if ('ctw-full' in args): + benchmarks.append(sanitycheck.getCTW(vm, sanitycheck.CTWMode.Full)) + if ('ctw-noinline' in args): + benchmarks.append(sanitycheck.getCTW(vm, sanitycheck.CTWMode.NoInline)) + if ('ctw-nocomplex' in args): + benchmarks.append(sanitycheck.getCTW(vm, sanitycheck.CTWMode.NoComplex)) for test in benchmarks: for (groupName, res) in test.bench(vm, opts=vmArgs).items():