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

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

Issue 1217813005: [Telemetry] Modify CreatePageSet to CreateStorySet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ethan's comments Created 5 years, 5 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/speedometer.py ('k') | tools/perf/benchmarks/tab_switching.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 core import perf_benchmark 8 from core import perf_benchmark
9 9
10 from telemetry import page as page_module 10 from telemetry import page as page_module
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 """Apple's SunSpider JavaScript benchmark. 130 """Apple's SunSpider JavaScript benchmark.
131 131
132 http://www.webkit.org/perf/sunspider/sunspider.html 132 http://www.webkit.org/perf/sunspider/sunspider.html
133 """ 133 """
134 test = _SunspiderMeasurement 134 test = _SunspiderMeasurement
135 135
136 @classmethod 136 @classmethod
137 def Name(cls): 137 def Name(cls):
138 return 'sunspider' 138 return 'sunspider'
139 139
140 def CreatePageSet(self, options): 140 def CreateStorySet(self, options):
141 ps = page_set.PageSet( 141 ps = page_set.PageSet(
142 archive_data_file='../page_sets/data/sunspider.json', 142 archive_data_file='../page_sets/data/sunspider.json',
143 base_dir=os.path.dirname(os.path.abspath(__file__)), 143 base_dir=os.path.dirname(os.path.abspath(__file__)),
144 bucket=page_set.PARTNER_BUCKET) 144 bucket=page_set.PARTNER_BUCKET)
145 ps.AddUserStory(page_module.Page( 145 ps.AddUserStory(page_module.Page(
146 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) 146 _URL, ps, ps.base_dir, make_javascript_deterministic=False))
147 return ps 147 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/speedometer.py ('k') | tools/perf/benchmarks/tab_switching.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698