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 measurements import page_cycler | 5 from measurements import page_cycler |
6 import page_sets | 6 import page_sets |
7 from telemetry import benchmark | 7 from telemetry import benchmark |
8 | 8 |
9 | 9 |
10 class _PageCycler(benchmark.Benchmark): | 10 class _PageCycler(benchmark.Benchmark): |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 @classmethod | 222 @classmethod |
223 def Name(cls): | 223 def Name(cls): |
224 return 'page_cycler_oopif.typical_25' | 224 return 'page_cycler_oopif.typical_25' |
225 | 225 |
226 def CustomizeBrowserOptions(self, options): | 226 def CustomizeBrowserOptions(self, options): |
227 options.AppendExtraBrowserArgs(['--site-per-process']) | 227 options.AppendExtraBrowserArgs(['--site-per-process']) |
228 | 228 |
229 def CreatePageSet(self, options): | 229 def CreatePageSet(self, options): |
230 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 230 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
231 | 231 |
| 232 # crbug.com/273986: This test is flakey on Windows. |
| 233 @benchmark.Disabled('win') |
| 234 class PageCyclerSlimmingPaintTypical25(_PageCycler): |
| 235 """A varation of the typical 25 benchmark, but running with |
| 236 --enable-slimming-paint to measure slimming paint. |
| 237 """ |
| 238 @classmethod |
| 239 def Name(cls): |
| 240 return 'page_cycler_slimming_paint.typical_25' |
| 241 |
| 242 def CustomizeBrowserOptions(self, options): |
| 243 options.AppendExtraBrowserArgs(['--enable-slimming-paint']) |
| 244 |
| 245 def CreatePageSet(self, options): |
| 246 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
| 247 |
232 @benchmark.Disabled # crbug.com/443730 | 248 @benchmark.Disabled # crbug.com/443730 |
233 class PageCyclerBigJs(_PageCycler): | 249 class PageCyclerBigJs(_PageCycler): |
234 page_set = page_sets.BigJsPageSet | 250 page_set = page_sets.BigJsPageSet |
235 @classmethod | 251 @classmethod |
236 def Name(cls): | 252 def Name(cls): |
237 return 'page_cycler.big_js' | 253 return 'page_cycler.big_js' |
OLD | NEW |