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

Side by Side Diff: tools/perf/benchmarks/kraken.py

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 years, 9 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 | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698