| 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 |
| 11 | 11 |
| 12 | 12 |
| 13 @benchmark.Enabled('android') | 13 @benchmark.Enabled('android') |
| 14 class PowerAndroidAcceptance(perf_benchmark.PerfBenchmark): | 14 class PowerAndroidAcceptance(perf_benchmark.PerfBenchmark): |
| 15 """Android power acceptance test.""" | 15 """Android power acceptance test.""" |
| 16 test = power.Power | 16 test = power.Power |
| 17 page_set = page_sets.AndroidAcceptancePageSet | 17 page_set = page_sets.AndroidAcceptancePageSet |
| 18 | 18 |
| 19 def SetExtraBrowserOptions(self, options): | 19 def SetExtraBrowserOptions(self, options): |
| 20 options.full_performance_mode = False | 20 options.full_performance_mode = False |
| 21 | 21 |
| 22 @classmethod | 22 @classmethod |
| 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.Disabled('all') # http://crbug.com/597290 |
| 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 Name(cls): | 37 def Name(cls): |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 return 'power.gpu_rasterization.top_25' | 160 return 'power.gpu_rasterization.top_25' |
| 161 | 161 |
| 162 def CreateStorySet(self, _): | 162 def CreateStorySet(self, _): |
| 163 # Exclude techcrunch.com. It is not suitable for this benchmark because it | 163 # Exclude techcrunch.com. It is not suitable for this benchmark because it |
| 164 # does not consistently become quiescent within 60 seconds. | 164 # does not consistently become quiescent within 60 seconds. |
| 165 stories = self.page_set() | 165 stories = self.page_set() |
| 166 found = next((x for x in stories if 'techcrunch.com' in x.url), None) | 166 found = next((x for x in stories if 'techcrunch.com' in x.url), None) |
| 167 if found: | 167 if found: |
| 168 stories.RemoveStory(found) | 168 stories.RemoveStory(found) |
| 169 return stories | 169 return stories |
| OLD | NEW |