OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Runs Mozilla's Kraken JavaScript benchmark.""" | 5 """Runs Mozilla's Kraken JavaScript benchmark.""" |
6 | 6 |
7 import os | 7 import os |
8 | 8 |
9 from metrics import power | |
10 from telemetry import benchmark | 9 from telemetry import benchmark |
11 from telemetry import page as page_module | 10 from telemetry import page as page_module |
12 from telemetry.page import page_set | 11 from telemetry.page import page_set |
13 from telemetry.page import page_test | 12 from telemetry.page import page_test |
14 from telemetry.value import list_of_scalar_values | 13 from telemetry.value import list_of_scalar_values |
15 from telemetry.value import scalar | 14 from telemetry.value import scalar |
16 | 15 |
| 16 from metrics import power |
| 17 |
| 18 |
17 DESCRIPTIONS = { | 19 DESCRIPTIONS = { |
18 'ai-astar': | 20 'ai-astar': |
19 'This benchmark uses the [A* search algorithm]' | 21 'This benchmark uses the [A* search algorithm]' |
20 '(http://en.wikipedia.org/wiki/A*_search_algorithm) to automatically ' | 22 '(http://en.wikipedia.org/wiki/A*_search_algorithm) to automatically ' |
21 'plot an efficient path between two points, in the presence of ' | 23 'plot an efficient path between two points, in the presence of ' |
22 'obstacles. Adapted from code by [Brian Gringstead]' | 24 'obstacles. Adapted from code by [Brian Gringstead]' |
23 '(http://www.briangrinstead.com/blog/astar-search-algorithm-in-' | 25 '(http://www.briangrinstead.com/blog/astar-search-algorithm-in-' |
24 'javascript).', | 26 'javascript).', |
25 'audio-beat-detection': | 27 'audio-beat-detection': |
26 'This benchmark performs [beat detection]' | 28 'This benchmark performs [beat detection]' |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 126 |
125 def CreatePageSet(self, options): | 127 def CreatePageSet(self, options): |
126 ps = page_set.PageSet( | 128 ps = page_set.PageSet( |
127 archive_data_file='../page_sets/data/kraken.json', | 129 archive_data_file='../page_sets/data/kraken.json', |
128 file_path=os.path.abspath(__file__), | 130 file_path=os.path.abspath(__file__), |
129 bucket=page_set.PARTNER_BUCKET) | 131 bucket=page_set.PARTNER_BUCKET) |
130 ps.AddUserStory(page_module.Page( | 132 ps.AddUserStory(page_module.Page( |
131 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', | 133 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', |
132 ps, ps.base_dir)) | 134 ps, ps.base_dir)) |
133 return ps | 135 return ps |
OLD | NEW |