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 21 matching lines...) Expand all Loading... |
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 Name(cls): | 37 def Name(cls): |
38 return 'power.typical_10_mobile' | 38 return 'power.typical_10_mobile' |
39 | 39 |
40 | 40 |
41 @benchmark.Enabled('android') | 41 @benchmark.Enabled('android') |
| 42 class PowerToughAdCases(perf_benchmark.PerfBenchmark): |
| 43 """Android power test with tough ad pages.""" |
| 44 test = power.Power |
| 45 page_set = page_sets.ToughAdCasesPageSet |
| 46 |
| 47 def SetExtraBrowserOptions(self, options): |
| 48 options.full_performance_mode = False |
| 49 |
| 50 @classmethod |
| 51 def Name(cls): |
| 52 return 'power.tough_ad_cases' |
| 53 |
| 54 |
| 55 @benchmark.Enabled('android') |
42 @benchmark.Disabled('all') | 56 @benchmark.Disabled('all') |
43 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): | 57 class PowerTypical10MobileReload(perf_benchmark.PerfBenchmark): |
44 """Android typical 10 mobile power reload test.""" | 58 """Android typical 10 mobile power reload test.""" |
45 test = power.LoadPower | 59 test = power.LoadPower |
46 page_set = page_sets.Typical10MobileReloadPageSet | 60 page_set = page_sets.Typical10MobileReloadPageSet |
47 | 61 |
48 def SetExtraBrowserOptions(self, options): | 62 def SetExtraBrowserOptions(self, options): |
49 options.full_performance_mode = False | 63 options.full_performance_mode = False |
50 | 64 |
51 @classmethod | 65 @classmethod |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 page_set = page_sets.ThrottledPluginsPageSet | 223 page_set = page_sets.ThrottledPluginsPageSet |
210 options = {'pageset_repeat': 5} | 224 options = {'pageset_repeat': 5} |
211 | 225 |
212 def SetExtraBrowserOptions(self, options): | 226 def SetExtraBrowserOptions(self, options): |
213 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) | 227 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
214 options.full_performance_mode = False | 228 options.full_performance_mode = False |
215 | 229 |
216 @classmethod | 230 @classmethod |
217 def Name(cls): | 231 def Name(cls): |
218 return 'power.throttled_plugins_pps_enabled' | 232 return 'power.throttled_plugins_pps_enabled' |
OLD | NEW |