OLD | NEW |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 def CreateStorySet(self, _): | 113 def CreateStorySet(self, _): |
114 # Exclude techcrunch.com. It is not suitable for this benchmark because it | 114 # Exclude techcrunch.com. It is not suitable for this benchmark because it |
115 # does not consistently become quiescent within 60 seconds. | 115 # does not consistently become quiescent within 60 seconds. |
116 stories = self.page_set() | 116 stories = self.page_set() |
117 found = next((x for x in stories if 'techcrunch.com' in x.url), None) | 117 found = next((x for x in stories if 'techcrunch.com' in x.url), None) |
118 if found: | 118 if found: |
119 stories.RemoveStory(found) | 119 stories.RemoveStory(found) |
120 return stories | 120 return stories |
121 | 121 |
122 @benchmark.Enabled('mac') | 122 @benchmark.Enabled('mac') |
| 123 @benchmark.Disabled('reference') # crbug.com/549302 |
123 class PowerGpuRasterizationTop25(perf_benchmark.PerfBenchmark): | 124 class PowerGpuRasterizationTop25(perf_benchmark.PerfBenchmark): |
124 """Top 25 quiescent power test with GPU rasterization enabled.""" | 125 """Top 25 quiescent power test with GPU rasterization enabled.""" |
125 tag = 'gpu_rasterization' | 126 tag = 'gpu_rasterization' |
126 test = power.QuiescentPower | 127 test = power.QuiescentPower |
127 page_set = page_sets.Top25PageSet | 128 page_set = page_sets.Top25PageSet |
128 | 129 |
129 def SetExtraBrowserOptions(self, options): | 130 def SetExtraBrowserOptions(self, options): |
130 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 131 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
131 options.full_performance_mode = False | 132 options.full_performance_mode = False |
132 | 133 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 page_set = page_sets.ThrottledPluginsPageSet | 205 page_set = page_sets.ThrottledPluginsPageSet |
205 options = {'pageset_repeat': 5} | 206 options = {'pageset_repeat': 5} |
206 | 207 |
207 def SetExtraBrowserOptions(self, options): | 208 def SetExtraBrowserOptions(self, options): |
208 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) | 209 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
209 options.full_performance_mode = False | 210 options.full_performance_mode = False |
210 | 211 |
211 @classmethod | 212 @classmethod |
212 def Name(cls): | 213 def Name(cls): |
213 return 'power.throttled_plugins_pps_enabled' | 214 return 'power.throttled_plugins_pps_enabled' |
OLD | NEW |