| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 @benchmark.Enabled('android', 'chromeos', 'linux', 'ios', 'mac') | 219 @benchmark.Enabled('android', 'chromeos', 'linux', 'ios', 'mac') |
| 220 class PageCyclerTypical25(_PageCycler): | 220 class PageCyclerTypical25(_PageCycler): |
| 221 """Page load time benchmark for a 25 typical web pages. | 221 """Page load time benchmark for a 25 typical web pages. |
| 222 | 222 |
| 223 Designed to represent typical, not highly optimized or highly popular web | 223 Designed to represent typical, not highly optimized or highly popular web |
| 224 sites. Runs against pages recorded in June, 2014. | 224 sites. Runs against pages recorded in June, 2014. |
| 225 """ | 225 """ |
| 226 options = {'pageset_repeat': 3} | 226 options = {'pageset_repeat': 3} |
| 227 | 227 |
| 228 @classmethod | 228 @classmethod |
| 229 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 230 return (possible_browser.browser_type == 'reference' and |
| 231 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 232 |
| 233 @classmethod |
| 229 def Name(cls): | 234 def Name(cls): |
| 230 return 'page_cycler.typical_25' | 235 return 'page_cycler.typical_25' |
| 231 | 236 |
| 232 def CreateStorySet(self, options): | 237 def CreateStorySet(self, options): |
| 233 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 238 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
| 234 | 239 |
| 235 | 240 |
| 236 @benchmark.Disabled('reference', 'android') | 241 @benchmark.Disabled('reference', 'android') |
| 237 class PageCyclerBasicOopifIsolated(_PageCycler): | 242 class PageCyclerBasicOopifIsolated(_PageCycler): |
| 238 """ A benchmark measuring performance of out-of-process iframes. """ | 243 """ A benchmark measuring performance of out-of-process iframes. """ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 257 return 'page_cycler.basic_oopif' | 262 return 'page_cycler.basic_oopif' |
| 258 | 263 |
| 259 | 264 |
| 260 @benchmark.Disabled('all') # crbug.com/443730 | 265 @benchmark.Disabled('all') # crbug.com/443730 |
| 261 class PageCyclerBigJs(_PageCycler): | 266 class PageCyclerBigJs(_PageCycler): |
| 262 page_set = page_sets.BigJsPageSet | 267 page_set = page_sets.BigJsPageSet |
| 263 | 268 |
| 264 @classmethod | 269 @classmethod |
| 265 def Name(cls): | 270 def Name(cls): |
| 266 return 'page_cycler.big_js' | 271 return 'page_cycler.big_js' |
| OLD | NEW |