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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 """ | 205 """ |
206 | 206 |
207 @classmethod | 207 @classmethod |
208 def Name(cls): | 208 def Name(cls): |
209 return 'page_cycler.typical_25' | 209 return 'page_cycler.typical_25' |
210 | 210 |
211 def CreatePageSet(self, options): | 211 def CreatePageSet(self, options): |
212 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 212 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
213 | 213 |
214 # crbug.com/273986: This test is flakey on Windows. | 214 # crbug.com/273986: This test is flakey on Windows. |
215 @benchmark.Disabled('win') | 215 @benchmark.Disabled # crbug.com/463346: Test is crashing Chrome. |
216 class PageCyclerOopifTypical25(_PageCycler): | 216 class PageCyclerOopifTypical25(_PageCycler): |
217 """ A varation of the benchmark above, but running in --site-per-process | 217 """ A varation of the benchmark above, but running in --site-per-process |
218 to allow measuring performance of out-of-process iframes. | 218 to allow measuring performance of out-of-process iframes. |
219 """ | 219 """ |
220 @classmethod | 220 @classmethod |
221 def Name(cls): | 221 def Name(cls): |
222 return 'page_cycler_oopif.typical_25' | 222 return 'page_cycler_oopif.typical_25' |
223 | 223 |
224 def CustomizeBrowserOptions(self, options): | 224 def CustomizeBrowserOptions(self, options): |
225 options.AppendExtraBrowserArgs(['--site-per-process']) | 225 options.AppendExtraBrowserArgs(['--site-per-process']) |
226 | 226 |
227 def CreatePageSet(self, options): | 227 def CreatePageSet(self, options): |
228 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 228 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
229 | 229 |
230 @benchmark.Disabled # crbug.com/443730 | 230 @benchmark.Disabled # crbug.com/443730 |
231 class PageCyclerBigJs(_PageCycler): | 231 class PageCyclerBigJs(_PageCycler): |
232 page_set = page_sets.BigJsPageSet | 232 page_set = page_sets.BigJsPageSet |
233 @classmethod | 233 @classmethod |
234 def Name(cls): | 234 def Name(cls): |
235 return 'page_cycler.big_js' | 235 return 'page_cycler.big_js' |
OLD | NEW |