| 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 import os | |
| 6 | |
| 7 from core import perf_benchmark | 5 from core import perf_benchmark |
| 8 | 6 |
| 9 from measurements import page_cycler | 7 from measurements import page_cycler |
| 10 import page_sets | 8 import page_sets |
| 11 from telemetry import benchmark | 9 from telemetry import benchmark |
| 12 | 10 |
| 13 | 11 |
| 14 class _PageCycler(perf_benchmark.PerfBenchmark): | 12 class _PageCycler(perf_benchmark.PerfBenchmark): |
| 15 options = {'pageset_repeat': 6} | 13 options = {'pageset_repeat': 6} |
| 16 cold_load_percent = 50 # % of page visits for which a cold load is forced | 14 cold_load_percent = 50 # % of page visits for which a cold load is forced |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 """ A benchmark measuring performance of out-of-process iframes. """ | 243 """ A benchmark measuring performance of out-of-process iframes. """ |
| 246 page_set = page_sets.OopifBasicPageSet | 244 page_set = page_sets.OopifBasicPageSet |
| 247 | 245 |
| 248 @classmethod | 246 @classmethod |
| 249 def Name(cls): | 247 def Name(cls): |
| 250 return 'page_cycler_site_isolation.basic_oopif' | 248 return 'page_cycler_site_isolation.basic_oopif' |
| 251 | 249 |
| 252 def SetExtraBrowserOptions(self, options): | 250 def SetExtraBrowserOptions(self, options): |
| 253 options.AppendExtraBrowserArgs(['--site-per-process']) | 251 options.AppendExtraBrowserArgs(['--site-per-process']) |
| 254 | 252 |
| 255 @classmethod | |
| 256 def ShouldDisable(cls, possible_browser): # http://crbug.com/596067 | |
| 257 # This test is flaky on Zenbook laptops in the Chromium perf lab. | |
| 258 return 'Zenbook' in os.getenv('BUILDBOT_BUILDERNAME', '') | |
| 259 | |
| 260 | 253 |
| 261 @benchmark.Disabled('reference') # crbug.com/523346 | 254 @benchmark.Disabled('reference') # crbug.com/523346 |
| 262 class PageCyclerBasicOopif(_PageCycler): | 255 class PageCyclerBasicOopif(_PageCycler): |
| 263 """ A benchmark measuring performance of the out-of-process iframes page | 256 """ A benchmark measuring performance of the out-of-process iframes page |
| 264 set, without running in out-of-process iframes mode.. """ | 257 set, without running in out-of-process iframes mode.. """ |
| 265 page_set = page_sets.OopifBasicPageSet | 258 page_set = page_sets.OopifBasicPageSet |
| 266 | 259 |
| 267 @classmethod | 260 @classmethod |
| 268 def Name(cls): | 261 def Name(cls): |
| 269 return 'page_cycler.basic_oopif' | 262 return 'page_cycler.basic_oopif' |
| 270 | 263 |
| 271 | 264 |
| 272 @benchmark.Disabled('all') # crbug.com/443730 | 265 @benchmark.Disabled('all') # crbug.com/443730 |
| 273 class PageCyclerBigJs(_PageCycler): | 266 class PageCyclerBigJs(_PageCycler): |
| 274 page_set = page_sets.BigJsPageSet | 267 page_set = page_sets.BigJsPageSet |
| 275 | 268 |
| 276 @classmethod | 269 @classmethod |
| 277 def Name(cls): | 270 def Name(cls): |
| 278 return 'page_cycler.big_js' | 271 return 'page_cycler.big_js' |
| OLD | NEW |