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

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

Issue 816353008: [Telemetry] Explicitly define Name() method for all perf benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 8 from metrics import power
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry import page as page_module 10 from telemetry import page as page_module
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 'in sunspider')) 125 'in sunspider'))
126 126
127 127
128 class Sunspider(benchmark.Benchmark): 128 class Sunspider(benchmark.Benchmark):
129 """Apple's SunSpider JavaScript benchmark. 129 """Apple's SunSpider JavaScript benchmark.
130 130
131 http://www.webkit.org/perf/sunspider/sunspider.html 131 http://www.webkit.org/perf/sunspider/sunspider.html
132 """ 132 """
133 test = _SunspiderMeasurement 133 test = _SunspiderMeasurement
134 134
135 @classmethod
136 def Name(cls):
137 return 'sunspider'
138
135 def CreatePageSet(self, options): 139 def CreatePageSet(self, options):
136 ps = page_set.PageSet( 140 ps = page_set.PageSet(
137 archive_data_file='../page_sets/data/sunspider.json', 141 archive_data_file='../page_sets/data/sunspider.json',
138 file_path=os.path.abspath(__file__), 142 file_path=os.path.abspath(__file__),
139 bucket=page_set.PARTNER_BUCKET) 143 bucket=page_set.PARTNER_BUCKET)
140 ps.AddUserStory(page_module.Page( 144 ps.AddUserStory(page_module.Page(
141 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) 145 _URL, ps, ps.base_dir, make_javascript_deterministic=False))
142 return ps 146 return ps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698