summaryrefslogtreecommitdiff
path: root/deps/v8/tools/try_perf.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/try_perf.py')
-rwxr-xr-xdeps/v8/tools/try_perf.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/deps/v8/tools/try_perf.py b/deps/v8/tools/try_perf.py
index a0a98ee752..7c450f7bc1 100755
--- a/deps/v8/tools/try_perf.py
+++ b/deps/v8/tools/try_perf.py
@@ -3,6 +3,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# for py2/py3 compatibility
+from __future__ import print_function
+
import argparse
import os
import subprocess
@@ -28,6 +31,8 @@ DEFAULT_BOTS = [
PUBLIC_BENCHMARKS = [
'arewefastyet',
+ 'ares6',
+ 'blazor',
'compile',
'embenchen',
'emscripten',
@@ -67,11 +72,11 @@ def main():
help='Add %s trybot.' % BOTS[option])
options = parser.parse_args()
if not options.bots:
- print 'No trybots specified. Using default %s.' % ','.join(DEFAULT_BOTS)
+ print('No trybots specified. Using default %s.' % ','.join(DEFAULT_BOTS))
options.bots = DEFAULT_BOTS
if not options.benchmarks:
- print 'Please specify the benchmarks to run as arguments.'
+ print('Please specify the benchmarks to run as arguments.')
return 1
for benchmark in options.benchmarks:
@@ -79,7 +84,7 @@ def main():
print ('%s not found in our benchmark list. The respective trybot might '
'fail, unless you run something this script isn\'t aware of. '
'Available public benchmarks: %s' % (benchmark, PUBLIC_BENCHMARKS))
- print 'Proceed anyways? [Y/n] ',
+ print('Proceed anyways? [Y/n] ', end=' ')
answer = sys.stdin.readline().strip()
if answer != "" and answer != "Y" and answer != "y":
return 1
@@ -100,7 +105,7 @@ def main():
cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags]
if options.verbose:
cmd.append('-vv')
- print 'Running %s' % ' '.join(cmd)
+ print('Running %s' % ' '.join(cmd))
subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE)
if __name__ == '__main__': # pragma: no cover