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

Side by Side Diff: tools/perf/benchmarks/sunspider.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/startup.py ('k') | tools/perf/benchmarks/task_execution_time.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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import collections 4 import collections
5 import json 5 import json
6 import os 6 import os
7 7
8 from metrics import power
9 from telemetry import benchmark 8 from telemetry import benchmark
10 from telemetry import page as page_module 9 from telemetry import page as page_module
11 from telemetry.page import page_set 10 from telemetry.page import page_set
12 from telemetry.page import page_test 11 from telemetry.page import page_test
13 from telemetry.value import list_of_scalar_values 12 from telemetry.value import list_of_scalar_values
14 13
14 from metrics import power
15
15 16
16 _URL = 'http://www.webkit.org/perf/sunspider-1.0.2/sunspider-1.0.2/driver.html' 17 _URL = 'http://www.webkit.org/perf/sunspider-1.0.2/sunspider-1.0.2/driver.html'
17 18
18 DESCRIPTIONS = { 19 DESCRIPTIONS = {
19 '3d-cube': 20 '3d-cube':
20 'Pure JavaScript computations of the kind you might use to do 3d ' 21 'Pure JavaScript computations of the kind you might use to do 3d '
21 'rendering, but without the rendering. This ends up mostly hitting ' 22 'rendering, but without the rendering. This ends up mostly hitting '
22 'floating point math and array access.', 23 'floating point math and array access.',
23 '3d-morph': 24 '3d-morph':
24 'Pure JavaScript computations of the kind you might use to do 3d ' 25 'Pure JavaScript computations of the kind you might use to do 3d '
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return 'sunspider' 137 return 'sunspider'
137 138
138 def CreatePageSet(self, options): 139 def CreatePageSet(self, options):
139 ps = page_set.PageSet( 140 ps = page_set.PageSet(
140 archive_data_file='../page_sets/data/sunspider.json', 141 archive_data_file='../page_sets/data/sunspider.json',
141 file_path=os.path.abspath(__file__), 142 file_path=os.path.abspath(__file__),
142 bucket=page_set.PARTNER_BUCKET) 143 bucket=page_set.PARTNER_BUCKET)
143 ps.AddUserStory(page_module.Page( 144 ps.AddUserStory(page_module.Page(
144 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) 145 _URL, ps, ps.base_dir, make_javascript_deterministic=False))
145 return ps 146 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/startup.py ('k') | tools/perf/benchmarks/task_execution_time.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698