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

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

Issue 2744723003: Adding owners to benchmark tests (Closed)
Patch Set: rebasing Created 3 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/start_with_url.py ('k') | tools/perf/benchmarks/system_health.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 benchmark
10 from telemetry import page as page_module 11 from telemetry import page as page_module
11 from telemetry.page import legacy_page_test 12 from telemetry.page import legacy_page_test
12 from telemetry import story 13 from telemetry import story
13 from telemetry.value import list_of_scalar_values 14 from telemetry.value import list_of_scalar_values
14 15
15 from metrics import power 16 from metrics import power
16 17
17 18
18 _URL = 'http://www.webkit.org/perf/sunspider-1.0.2/sunspider-1.0.2/driver.html' 19 _URL = 'http://www.webkit.org/perf/sunspider-1.0.2/sunspider-1.0.2/driver.html'
19 20
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 for key, values in r.iteritems(): 120 for key, values in r.iteritems():
120 results.AddValue(list_of_scalar_values.ListOfScalarValues( 121 results.AddValue(list_of_scalar_values.ListOfScalarValues(
121 results.current_page, key, 'ms', values, important=False, 122 results.current_page, key, 'ms', values, important=False,
122 description=DESCRIPTIONS.get(key))) 123 description=DESCRIPTIONS.get(key)))
123 results.AddValue(list_of_scalar_values.ListOfScalarValues( 124 results.AddValue(list_of_scalar_values.ListOfScalarValues(
124 results.current_page, 'Total', 'ms', totals, 125 results.current_page, 'Total', 'ms', totals,
125 description='Totals of run time for each different type of benchmark ' 126 description='Totals of run time for each different type of benchmark '
126 'in sunspider')) 127 'in sunspider'))
127 128
128 129
130 @benchmark.Owner(emails=['bmeurer@chromium.org', 'mvstanton@chromium.org'])
129 class Sunspider(perf_benchmark.PerfBenchmark): 131 class Sunspider(perf_benchmark.PerfBenchmark):
130 """Apple's SunSpider JavaScript benchmark. 132 """Apple's SunSpider JavaScript benchmark.
131 133
132 http://www.webkit.org/perf/sunspider/sunspider.html 134 http://www.webkit.org/perf/sunspider/sunspider.html
133 """ 135 """
134 test = _SunspiderMeasurement 136 test = _SunspiderMeasurement
135 137
136 @classmethod 138 @classmethod
137 def Name(cls): 139 def Name(cls):
138 return 'sunspider' 140 return 'sunspider'
139 141
140 def CreateStorySet(self, options): 142 def CreateStorySet(self, options):
141 ps = story.StorySet( 143 ps = story.StorySet(
142 archive_data_file='../page_sets/data/sunspider.json', 144 archive_data_file='../page_sets/data/sunspider.json',
143 base_dir=os.path.dirname(os.path.abspath(__file__)), 145 base_dir=os.path.dirname(os.path.abspath(__file__)),
144 cloud_storage_bucket=story.PARTNER_BUCKET) 146 cloud_storage_bucket=story.PARTNER_BUCKET)
145 ps.AddStory(page_module.Page( 147 ps.AddStory(page_module.Page(
146 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) 148 _URL, ps, ps.base_dir, make_javascript_deterministic=False))
147 return ps 149 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/start_with_url.py ('k') | tools/perf/benchmarks/system_health.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698