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

Side by Side Diff: test/simdjs/generate.py

Issue 1149723002: [test] Fix simdjs perf tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Keep old name Created 5 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 | « test/simdjs/SimdJs.json ('k') | 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/python 1 #!/usr/bin/python
2 # Copyright 2015 the V8 project authors. All rights reserved. 2 # Copyright 2015 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 # Script to re-generate SimdJs.json from a SimdJs.json.template. 6 # Script to re-generate SimdJs.json from a SimdJs.json.template.
7 7
8 import json 8 import json
9 import os 9 import os
10 import re 10 import re
(...skipping 10 matching lines...) Expand all
21 ] 21 ]
22 22
23 run_js = open( 23 run_js = open(
24 os.path.join(SCRIPT_DIR, 'data', 'src', 'benchmarks', 'run.js')).read() 24 os.path.join(SCRIPT_DIR, 'data', 'src', 'benchmarks', 'run.js')).read()
25 tests = re.findall("load \\(\\'([^']+)[.]js\\'\\)", run_js) 25 tests = re.findall("load \\(\\'([^']+)[.]js\\'\\)", run_js)
26 tests = [t for t in tests if t not in SKIP_FILES] 26 tests = [t for t in tests if t not in SKIP_FILES]
27 27
28 output = { 28 output = {
29 'name': 'SIMDJS', 29 'name': 'SIMDJS',
30 'run_count': 5, 30 'run_count': 5,
31 'run_count_arm': 3,
32 'run_count_android_arm': 3,
33 'run_count_android_arm64': 3,
34 'timeout_arm': 120,
35 'timeout_android_arm': 120,
36 'timeout_android_arm64': 120,
31 'units': 'ms', 37 'units': 'ms',
32 'total': True,
33 'resources': [ 38 'resources': [
34 'test/simdjs/data/src/benchmarks/base.js', 39 'test/simdjs/data/src/benchmarks/base.js',
35 'test/simdjs/data/src/ecmascript_simd.js' 40 'test/simdjs/data/src/ecmascript_simd.js',
41 'test/simdjs/harness-adapt.js',
42 'test/simdjs/harness-finish.js'
36 ] + ['test/simdjs/data/src/benchmarks/%s.js' % t for t in tests], 43 ] + ['test/simdjs/data/src/benchmarks/%s.js' % t for t in tests],
37 'flags': ['--harmony-object', 'test/simdjs/harness-adapt.js'], 44 'flags': ['--harmony-object', 'test/simdjs/harness-adapt.js'],
38 'path': ['../../'], 45 'path': ['../../'],
39 'tests': [ 46 'tests': [
40 { 47 {
41 'name': test, 48 'name': test,
42 'main': 'test/simdjs/harness-finish.js', 49 'main': 'test/simdjs/harness-finish.js',
43 'flags': ['test/simdjs/data/src/benchmarks/%s.js' % test], 50 'flags': ['test/simdjs/data/src/benchmarks/%s.js' % test],
44 'results_regexp': '%s\\([ ]*([0-9.]+)(ms)?\\)', 51 'results_regexp': '%s\\([ ]*([0-9.]+)(ms)?\\)',
45 'tests': [ 52 'tests': [
46 {'name': 'SIMD'}, 53 {'name': 'SIMD'},
47 {'name': 'Non-SIMD'}, 54 {'name': 'Non-SIMD'},
48 {'name': 'Speedup', 'units': 'score'}, 55 {'name': 'Speedup', 'units': 'score'},
49 {'name': 'Iterations', 'units': 'count'} 56 {'name': 'Iterations', 'units': 'count'}
50 ] 57 ]
51 } 58 }
52 for test in tests], 59 for test in tests],
53 } 60 }
54 61
55 with open(os.path.join(SCRIPT_DIR, 'SimdJS.json'), 'w') as fh: 62 with open(os.path.join(SCRIPT_DIR, 'SimdJs.json'), 'w') as fh:
bradn 2015/05/20 18:29:31 wow, how'd manage that!
56 fh.write(json.dumps(output, separators=(',',': '), indent=2, sort_keys=True)) 63 fh.write(json.dumps(output, separators=(',',': '), indent=2, sort_keys=True))
OLDNEW
« no previous file with comments | « test/simdjs/SimdJs.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698