| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 measurements import page_cycler | 7 from measurements import page_cycler |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 @classmethod | 109 @classmethod |
| 110 def ShouldDisable(cls, possible_browser): | 110 def ShouldDisable(cls, possible_browser): |
| 111 # http://crbug.com/597656 (Android Nexus 5X). | 111 # http://crbug.com/597656 (Android Nexus 5X). |
| 112 # http://crbug.com/605543 (Mac Snow Leopard). | 112 # http://crbug.com/605543 (Mac Snow Leopard). |
| 113 return (possible_browser.browser_type == 'reference' and ( | 113 return (possible_browser.browser_type == 'reference' and ( |
| 114 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' or | 114 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' or |
| 115 possible_browser.platform.GetOSVersionName() == 'snowleopard')) | 115 possible_browser.platform.GetOSVersionName() == 'snowleopard')) |
| 116 | 116 |
| 117 | 117 |
| 118 # This is an old page set, we intend to remove it after more modern benchmarks | |
| 119 # work on CrOS. | |
| 120 @benchmark.Enabled('chromeos') | |
| 121 class PageCyclerMoz(_PageCycler): | |
| 122 """Page load for mozilla's original page set. Recorded in December 2000.""" | |
| 123 page_set = page_sets.MozPageSet | |
| 124 | |
| 125 @classmethod | |
| 126 def Name(cls): | |
| 127 return 'page_cycler.moz' | |
| 128 | |
| 129 | |
| 130 @benchmark.Enabled('android') | 118 @benchmark.Enabled('android') |
| 131 class PageCyclerTop10Mobile(_PageCycler): | 119 class PageCyclerTop10Mobile(_PageCycler): |
| 132 """Page load time benchmark for the top 10 mobile web pages. | 120 """Page load time benchmark for the top 10 mobile web pages. |
| 133 | 121 |
| 134 Runs against pages recorded in November, 2013. | 122 Runs against pages recorded in November, 2013. |
| 135 """ | 123 """ |
| 136 | 124 |
| 137 @classmethod | 125 @classmethod |
| 138 def Name(cls): | 126 def Name(cls): |
| 139 return 'page_cycler.top_10_mobile' | 127 return 'page_cycler.top_10_mobile' |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 return cls.IsSvelte(possible_browser) # http://crbug.com/607657 | 206 return cls.IsSvelte(possible_browser) # http://crbug.com/607657 |
| 219 | 207 |
| 220 | 208 |
| 221 @benchmark.Disabled('all') # crbug.com/443730 | 209 @benchmark.Disabled('all') # crbug.com/443730 |
| 222 class PageCyclerBigJs(_PageCycler): | 210 class PageCyclerBigJs(_PageCycler): |
| 223 page_set = page_sets.BigJsPageSet | 211 page_set = page_sets.BigJsPageSet |
| 224 | 212 |
| 225 @classmethod | 213 @classmethod |
| 226 def Name(cls): | 214 def Name(cls): |
| 227 return 'page_cycler.big_js' | 215 return 'page_cycler.big_js' |
| OLD | NEW |