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 telemetry import benchmark | 5 from telemetry import 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 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 @benchmark.Enabled('mac') | 45 @benchmark.Enabled('mac') |
46 class PowerTop10(benchmark.Benchmark): | 46 class PowerTop10(benchmark.Benchmark): |
47 """Top 10 quiescent power test.""" | 47 """Top 10 quiescent power test.""" |
48 test = power.QuiescentPower | 48 test = power.QuiescentPower |
49 page_set = page_sets.Top10PageSet | 49 page_set = page_sets.Top10PageSet |
50 @classmethod | 50 @classmethod |
51 def Name(cls): | 51 def Name(cls): |
52 return 'power.top_10' | 52 return 'power.top_10' |
53 | 53 |
54 | 54 |
55 @benchmark.Disabled() # crbug.com/489214 | 55 @benchmark.Enabled('mac') |
56 class PowerTop25(benchmark.Benchmark): | 56 class PowerTop25(benchmark.Benchmark): |
57 """Top 25 quiescent power test.""" | 57 """Top 25 quiescent power test.""" |
58 test = power.QuiescentPower | 58 test = power.QuiescentPower |
59 page_set = page_sets.Top25PageSet | 59 page_set = page_sets.Top25PageSet |
60 @classmethod | 60 @classmethod |
61 def Name(cls): | 61 def Name(cls): |
62 return 'power.top_25' | 62 return 'power.top_25' |
| 63 |
| 64 def CreateUserStorySet(self, _): |
| 65 # Exclude techcrunch.com. It is not suitable for this benchmark because it |
| 66 # does not consistently become quiescent within 60 seconds. |
| 67 user_stories = self.page_set() |
| 68 found = next((x for x in user_stories if 'techcrunch.com' in x.url), None) |
| 69 if found: |
| 70 user_stories.RemoveUserStory(found) |
| 71 return user_stories |
OLD | NEW |