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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 Recorded in July 2013. | 189 Recorded in July 2013. |
190 """ | 190 """ |
191 page_set = page_sets.ToughLayoutCasesPageSet | 191 page_set = page_sets.ToughLayoutCasesPageSet |
192 | 192 |
193 @classmethod | 193 @classmethod |
194 def Name(cls): | 194 def Name(cls): |
195 return 'page_cycler.tough_layout_cases' | 195 return 'page_cycler.tough_layout_cases' |
196 | 196 |
197 | 197 |
198 # crbug.com/273986: This test is really flakey on xp. | 198 # crbug.com/273986: This test is flakey on Windows. |
199 @benchmark.Disabled('win') | 199 @benchmark.Disabled('win') |
200 class PageCyclerTypical25(_PageCycler): | 200 class PageCyclerTypical25(_PageCycler): |
201 """Page load time benchmark for a 25 typical web pages. | 201 """Page load time benchmark for a 25 typical web pages. |
202 | 202 |
203 Designed to represent typical, not highly optimized or highly popular web | 203 Designed to represent typical, not highly optimized or highly popular web |
204 sites. Runs against pages recorded in June, 2014. | 204 sites. Runs against pages recorded in June, 2014. |
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. |
| 215 @benchmark.Disabled('win') |
| 216 class PageCyclerOopifTypical25(_PageCycler): |
| 217 """ A varation of the benchmark above, but running in --site-per-process |
| 218 to allow measuring performance of out-of-process iframes. |
| 219 """ |
| 220 @classmethod |
| 221 def Name(cls): |
| 222 return 'page_cycler_oopif.typical_25' |
| 223 |
| 224 def CustomizeBrowserOptions(self, options): |
| 225 options.AppendExtraBrowserArgs(['--site-per-process']) |
| 226 |
| 227 def CreatePageSet(self, options): |
| 228 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
214 | 229 |
215 @benchmark.Disabled # crbug.com/443730 | 230 @benchmark.Disabled # crbug.com/443730 |
216 class PageCyclerBigJs(_PageCycler): | 231 class PageCyclerBigJs(_PageCycler): |
217 page_set = page_sets.BigJsPageSet | 232 page_set = page_sets.BigJsPageSet |
218 @classmethod | 233 @classmethod |
219 def Name(cls): | 234 def Name(cls): |
220 return 'page_cycler.big_js' | 235 return 'page_cycler.big_js' |
221 | |
OLD | NEW |