Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: tools/try_perf.py

Issue 1931293005: [tools] added wasm to the list of benchmarks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 'jstests', 37 'jstests',
38 'kraken_orig', 38 'kraken_orig',
39 'massive', 39 'massive',
40 'memory', 40 'memory',
41 'octane', 41 'octane',
42 'octane-pr', 42 'octane-pr',
43 'octane-tf', 43 'octane-tf',
44 'octane-tf-pr', 44 'octane-tf-pr',
45 'simdjs', 45 'simdjs',
46 'sunspider', 46 'sunspider',
47 'wasm',
47 ] 48 ]
48 49
49 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 50 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
50 51
51 def main(): 52 def main():
52 parser = argparse.ArgumentParser(description='') 53 parser = argparse.ArgumentParser(description='')
53 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.') 54 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.')
54 parser.add_argument('--extra-flags', default='', 55 parser.add_argument('--extra-flags', default='',
55 help='Extra flags to be passed to the executable.') 56 help='Extra flags to be passed to the executable.')
56 parser.add_argument('-r', '--revision', type=str, default=None, 57 parser.add_argument('-r', '--revision', type=str, default=None,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if options.revision: cmd += ['-r %s' % options.revision] 93 if options.revision: cmd += ['-r %s' % options.revision]
93 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] 94 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks]
94 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] 95 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)]
95 if options.extra_flags: 96 if options.extra_flags:
96 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] 97 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags]
97 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) 98 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE)
98 99
99 100
100 if __name__ == '__main__': # pragma: no cover 101 if __name__ == '__main__': # pragma: no cover
101 sys.exit(main()) 102 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698