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

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

Issue 1824623002: Revert of [Telemetry] Disable some tests on Nexus 5X reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/page_cycler.py ('k') | tools/perf/benchmarks/smoothness.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from benchmarks import silk_flags 7 from benchmarks import silk_flags
8 from measurements import power 8 from measurements import power
9 import page_sets 9 import page_sets
10 from telemetry import benchmark 10 from telemetry import benchmark
(...skipping 12 matching lines...) Expand all
23 def Name(cls): 23 def Name(cls):
24 return 'power.android_acceptance' 24 return 'power.android_acceptance'
25 25
26 26
27 @benchmark.Enabled('android') 27 @benchmark.Enabled('android')
28 class PowerTypical10Mobile(perf_benchmark.PerfBenchmark): 28 class PowerTypical10Mobile(perf_benchmark.PerfBenchmark):
29 """Android typical 10 mobile power test.""" 29 """Android typical 10 mobile power test."""
30 test = power.Power 30 test = power.Power
31 page_set = page_sets.Typical10MobilePageSet 31 page_set = page_sets.Typical10MobilePageSet
32 32
33 @classmethod
34 def ShouldDisable(cls, possible_browser): # http://crbug.com/593152
35 return (possible_browser.browser_type == 'reference' and
36 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X')
37
38 def SetExtraBrowserOptions(self, options): 33 def SetExtraBrowserOptions(self, options):
39 options.full_performance_mode = False 34 options.full_performance_mode = False
40 35
41 @classmethod 36 @classmethod
42 def Name(cls): 37 def Name(cls):
43 return 'power.typical_10_mobile' 38 return 'power.typical_10_mobile'
44 39
45 40
46 @benchmark.Enabled('android') 41 @benchmark.Enabled('android')
47 class PowerToughAdCases(perf_benchmark.PerfBenchmark): 42 class PowerToughAdCases(perf_benchmark.PerfBenchmark):
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 return 'power.gpu_rasterization.top_25' 156 return 'power.gpu_rasterization.top_25'
162 157
163 def CreateStorySet(self, _): 158 def CreateStorySet(self, _):
164 # Exclude techcrunch.com. It is not suitable for this benchmark because it 159 # Exclude techcrunch.com. It is not suitable for this benchmark because it
165 # does not consistently become quiescent within 60 seconds. 160 # does not consistently become quiescent within 60 seconds.
166 stories = self.page_set() 161 stories = self.page_set()
167 found = next((x for x in stories if 'techcrunch.com' in x.url), None) 162 found = next((x for x in stories if 'techcrunch.com' in x.url), None)
168 if found: 163 if found:
169 stories.RemoveStory(found) 164 stories.RemoveStory(found)
170 return stories 165 return stories
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/page_cycler.py ('k') | tools/perf/benchmarks/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698