OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import argparse | 6 import argparse |
7 import os | 7 import os |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 'v8_linux64_haswell_perf_try', | 26 'v8_linux64_haswell_perf_try', |
27 'v8_nexus10_perf_try', | 27 'v8_nexus10_perf_try', |
28 ] | 28 ] |
29 | 29 |
30 PUBLIC_BENCHMARKS = [ | 30 PUBLIC_BENCHMARKS = [ |
31 'arewefastyet', | 31 'arewefastyet', |
32 'embenchen', | 32 'embenchen', |
33 'emscripten', | 33 'emscripten', |
34 'compile', | 34 'compile', |
35 'jetstream', | 35 'jetstream', |
| 36 'jetstream-ignition', |
36 'jsbench', | 37 'jsbench', |
37 'jstests', | 38 'jstests', |
38 'kraken_orig', | 39 'kraken_orig', |
| 40 'kraken_orig-ignition', |
39 'massive', | 41 'massive', |
40 'memory', | 42 'memory', |
41 'octane', | 43 'octane', |
| 44 'octane-noopt', |
| 45 'octane-ignition', |
42 'octane-pr', | 46 'octane-pr', |
43 'octane-tf', | 47 'octane-tf', |
44 'octane-tf-pr', | 48 'octane-tf-pr', |
45 'simdjs', | 49 'simdjs', |
46 'sunspider', | 50 'sunspider', |
| 51 'sunspider-ignition', |
47 'wasm', | 52 'wasm', |
48 ] | 53 ] |
49 | 54 |
50 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | 55 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) |
51 | 56 |
52 def main(): | 57 def main(): |
53 parser = argparse.ArgumentParser(description='') | 58 parser = argparse.ArgumentParser(description='') |
54 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.') | 59 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.') |
55 parser.add_argument('--extra-flags', default='', | 60 parser.add_argument('--extra-flags', default='', |
56 help='Extra flags to be passed to the executable.') | 61 help='Extra flags to be passed to the executable.') |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 if options.revision: cmd += ['-r %s' % options.revision] | 98 if options.revision: cmd += ['-r %s' % options.revision] |
94 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] | 99 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] |
95 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] | 100 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] |
96 if options.extra_flags: | 101 if options.extra_flags: |
97 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] | 102 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] |
98 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) | 103 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) |
99 | 104 |
100 | 105 |
101 if __name__ == '__main__': # pragma: no cover | 106 if __name__ == '__main__': # pragma: no cover |
102 sys.exit(main()) | 107 sys.exit(main()) |
OLD | NEW |