| 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 """ | 6 """ |
| 7 Performance runner for d8. | 7 Performance runner for d8. |
| 8 | 8 |
| 9 Call e.g. with tools/run-perf.py --arch ia32 some_suite.json | 9 Call e.g. with tools/run-perf.py --arch ia32 some_suite.json |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 import re | 104 import re |
| 105 import sys | 105 import sys |
| 106 | 106 |
| 107 from testrunner.local import commands | 107 from testrunner.local import commands |
| 108 from testrunner.local import utils | 108 from testrunner.local import utils |
| 109 | 109 |
| 110 ARCH_GUESS = utils.DefaultArch() | 110 ARCH_GUESS = utils.DefaultArch() |
| 111 SUPPORTED_ARCHS = ["android_arm", | 111 SUPPORTED_ARCHS = ["android_arm", |
| 112 "android_arm64", | 112 "android_arm64", |
| 113 "android_ia32", | 113 "android_ia32", |
| 114 "android_x64", |
| 114 "arm", | 115 "arm", |
| 115 "ia32", | 116 "ia32", |
| 116 "mips", | 117 "mips", |
| 117 "mipsel", | 118 "mipsel", |
| 118 "nacl_ia32", | 119 "nacl_ia32", |
| 119 "nacl_x64", | 120 "nacl_x64", |
| 120 "x64", | 121 "x64", |
| 121 "arm64"] | 122 "arm64"] |
| 122 | 123 |
| 123 GENERIC_RESULTS_RE = re.compile(r"^RESULT ([^:]+): ([^=]+)= ([^ ]+) ([^ ]*)$") | 124 GENERIC_RESULTS_RE = re.compile(r"^RESULT ([^:]+): ([^=]+)= ([^ ]+) ([^ ]*)$") |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 711 |
| 711 if options.json_test_results: | 712 if options.json_test_results: |
| 712 results.WriteToFile(options.json_test_results) | 713 results.WriteToFile(options.json_test_results) |
| 713 else: # pragma: no cover | 714 else: # pragma: no cover |
| 714 print results | 715 print results |
| 715 | 716 |
| 716 return min(1, len(results.errors)) | 717 return min(1, len(results.errors)) |
| 717 | 718 |
| 718 if __name__ == "__main__": # pragma: no cover | 719 if __name__ == "__main__": # pragma: no cover |
| 719 sys.exit(Main(sys.argv[1:])) | 720 sys.exit(Main(sys.argv[1:])) |
| OLD | NEW |