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

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

Issue 1836973002: Disabled more reference builds on the Nexus5X due to the TimeoutException error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/service_worker.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 def SetExtraBrowserOptions(self, options): 52 def SetExtraBrowserOptions(self, options):
53 options.full_performance_mode = False 53 options.full_performance_mode = False
54 54
55 @classmethod 55 @classmethod
56 def Name(cls): 56 def Name(cls):
57 return 'power.tough_ad_cases' 57 return 'power.tough_ad_cases'
58 58
59 @classmethod 59 @classmethod
60 def ShouldDisable(cls, possible_browser): 60 def ShouldDisable(cls, possible_browser):
61 return cls.IsSvelte(possible_browser) # http://crbug.com/593973 61 # http://crbug.com/563968, http://crbug.com/593973
62 return (cls.IsSvelte(possible_browser) or
63 (possible_browser.browser_type == 'reference' and
64 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X'))
62 65
63 66
64 @benchmark.Enabled('android') 67 @benchmark.Enabled('android')
65 @benchmark.Disabled('all') 68 @benchmark.Disabled('all')
66 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): 69 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark):
67 """Android typical 10 mobile power reload test.""" 70 """Android typical 10 mobile power reload test."""
68 test = power.LoadPower 71 test = power.LoadPower
69 page_set = page_sets.Typical10MobileReloadPageSet 72 page_set = page_sets.Typical10MobileReloadPageSet
70 73
71 def SetExtraBrowserOptions(self, options): 74 def SetExtraBrowserOptions(self, options):
(...skipping 14 matching lines...) Expand all
86 def SetExtraBrowserOptions(self, options): 89 def SetExtraBrowserOptions(self, options):
87 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 90 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
88 options.full_performance_mode = False 91 options.full_performance_mode = False
89 92
90 @classmethod 93 @classmethod
91 def Name(cls): 94 def Name(cls):
92 return 'power.gpu_rasterization.typical_10_mobile' 95 return 'power.gpu_rasterization.typical_10_mobile'
93 96
94 @classmethod 97 @classmethod
95 def ShouldDisable(cls, possible_browser): 98 def ShouldDisable(cls, possible_browser):
96 return cls.IsSvelte(possible_browser) # http://crbug.com/563968 99 # http://crbug.com/563968, http://crbug.com/593973
100 return (cls.IsSvelte(possible_browser) or
101 (possible_browser.browser_type == 'reference' and
102 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X'))
97 103
98 104
99 @benchmark.Enabled('mac') 105 @benchmark.Enabled('mac')
100 class PowerTop10(perf_benchmark.PerfBenchmark): 106 class PowerTop10(perf_benchmark.PerfBenchmark):
101 """Top 10 quiescent power test.""" 107 """Top 10 quiescent power test."""
102 test = power.QuiescentPower 108 test = power.QuiescentPower
103 page_set = page_sets.Top10PageSet 109 page_set = page_sets.Top10PageSet
104 110
105 def SetExtraBrowserOptions(self, options): 111 def SetExtraBrowserOptions(self, options):
106 options.full_performance_mode = False 112 options.full_performance_mode = False
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return 'power.gpu_rasterization.top_25' 171 return 'power.gpu_rasterization.top_25'
166 172
167 def CreateStorySet(self, _): 173 def CreateStorySet(self, _):
168 # Exclude techcrunch.com. It is not suitable for this benchmark because it 174 # Exclude techcrunch.com. It is not suitable for this benchmark because it
169 # does not consistently become quiescent within 60 seconds. 175 # does not consistently become quiescent within 60 seconds.
170 stories = self.page_set() 176 stories = self.page_set()
171 found = next((x for x in stories if 'techcrunch.com' in x.url), None) 177 found = next((x for x in stories if 'techcrunch.com' in x.url), None)
172 if found: 178 if found:
173 stories.RemoveStory(found) 179 stories.RemoveStory(found)
174 return stories 180 return stories
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/page_cycler.py ('k') | tools/perf/benchmarks/service_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698