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

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

Issue 1826273002: Disable some tests on Nexus 5X reference again (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 16 matching lines...) Expand all
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 def SetExtraBrowserOptions(self, options): 33 def SetExtraBrowserOptions(self, options):
34 options.full_performance_mode = False 34 options.full_performance_mode = False
35 35
36 @classmethod 36 @classmethod
37 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656
38 return (possible_browser.browser_type == 'reference' and
39 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X')
40
41 @classmethod
37 def Name(cls): 42 def Name(cls):
38 return 'power.typical_10_mobile' 43 return 'power.typical_10_mobile'
39 44
40 45
41 @benchmark.Enabled('android') 46 @benchmark.Enabled('android')
42 class PowerToughAdCases(perf_benchmark.PerfBenchmark): 47 class PowerToughAdCases(perf_benchmark.PerfBenchmark):
43 """Android power test with tough ad pages.""" 48 """Android power test with tough ad pages."""
44 test = power.Power 49 test = power.Power
45 page_set = page_sets.ToughAdCasesPageSet 50 page_set = page_sets.ToughAdCasesPageSet
46 51
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 return 'power.gpu_rasterization.top_25' 165 return 'power.gpu_rasterization.top_25'
161 166
162 def CreateStorySet(self, _): 167 def CreateStorySet(self, _):
163 # Exclude techcrunch.com. It is not suitable for this benchmark because it 168 # Exclude techcrunch.com. It is not suitable for this benchmark because it
164 # does not consistently become quiescent within 60 seconds. 169 # does not consistently become quiescent within 60 seconds.
165 stories = self.page_set() 170 stories = self.page_set()
166 found = next((x for x in stories if 'techcrunch.com' in x.url), None) 171 found = next((x for x in stories if 'techcrunch.com' in x.url), None)
167 if found: 172 if found:
168 stories.RemoveStory(found) 173 stories.RemoveStory(found)
169 return stories 174 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