| 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 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 import page_sets | 9 import page_sets |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 class PageCyclerTop10Mobile(_PageCycler): | 167 class PageCyclerTop10Mobile(_PageCycler): |
| 168 """Page load time benchmark for the top 10 mobile web pages. | 168 """Page load time benchmark for the top 10 mobile web pages. |
| 169 | 169 |
| 170 Runs against pages recorded in November, 2013. | 170 Runs against pages recorded in November, 2013. |
| 171 """ | 171 """ |
| 172 | 172 |
| 173 @classmethod | 173 @classmethod |
| 174 def Name(cls): | 174 def Name(cls): |
| 175 return 'page_cycler.top_10_mobile' | 175 return 'page_cycler.top_10_mobile' |
| 176 | 176 |
| 177 def CreateStorySet(self, options): | 177 def CreatePageSet(self, options): |
| 178 return page_sets.Top10MobilePageSet(run_no_page_interactions=True) | 178 return page_sets.Top10MobilePageSet(run_no_page_interactions=True) |
| 179 | 179 |
| 180 | 180 |
| 181 @benchmark.Disabled | 181 @benchmark.Disabled |
| 182 class PageCyclerKeyMobileSites(_PageCycler): | 182 class PageCyclerKeyMobileSites(_PageCycler): |
| 183 """Page load time benchmark for key mobile sites.""" | 183 """Page load time benchmark for key mobile sites.""" |
| 184 page_set = page_sets.KeyMobileSitesPageSet | 184 page_set = page_sets.KeyMobileSitesPageSet |
| 185 | 185 |
| 186 @classmethod | 186 @classmethod |
| 187 def Name(cls): | 187 def Name(cls): |
| (...skipping 19 matching lines...) Expand all Loading... |
| 207 """Page load time benchmark for a 25 typical web pages. | 207 """Page load time benchmark for a 25 typical web pages. |
| 208 | 208 |
| 209 Designed to represent typical, not highly optimized or highly popular web | 209 Designed to represent typical, not highly optimized or highly popular web |
| 210 sites. Runs against pages recorded in June, 2014. | 210 sites. Runs against pages recorded in June, 2014. |
| 211 """ | 211 """ |
| 212 | 212 |
| 213 @classmethod | 213 @classmethod |
| 214 def Name(cls): | 214 def Name(cls): |
| 215 return 'page_cycler.typical_25' | 215 return 'page_cycler.typical_25' |
| 216 | 216 |
| 217 def CreateStorySet(self, options): | 217 def CreatePageSet(self, options): |
| 218 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 218 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
| 219 | 219 |
| 220 # crbug.com/273986: This test is flakey on Windows. | 220 # crbug.com/273986: This test is flakey on Windows. |
| 221 @benchmark.Disabled # crbug.com/463346: Test is crashing Chrome. | 221 @benchmark.Disabled # crbug.com/463346: Test is crashing Chrome. |
| 222 class PageCyclerOopifTypical25(_PageCycler): | 222 class PageCyclerOopifTypical25(_PageCycler): |
| 223 """ A varation of the benchmark above, but running in --site-per-process | 223 """ A varation of the benchmark above, but running in --site-per-process |
| 224 to allow measuring performance of out-of-process iframes. | 224 to allow measuring performance of out-of-process iframes. |
| 225 """ | 225 """ |
| 226 @classmethod | 226 @classmethod |
| 227 def Name(cls): | 227 def Name(cls): |
| 228 return 'page_cycler_oopif.typical_25' | 228 return 'page_cycler_oopif.typical_25' |
| 229 | 229 |
| 230 def SetExtraBrowserOptions(self, options): | 230 def SetExtraBrowserOptions(self, options): |
| 231 options.AppendExtraBrowserArgs(['--site-per-process']) | 231 options.AppendExtraBrowserArgs(['--site-per-process']) |
| 232 | 232 |
| 233 def CreateStorySet(self, options): | 233 def CreatePageSet(self, options): |
| 234 return page_sets.Typical25PageSet(run_no_page_interactions=True) | 234 return page_sets.Typical25PageSet(run_no_page_interactions=True) |
| 235 | 235 |
| 236 | 236 |
| 237 @benchmark.Disabled # crbug.com/443730 | 237 @benchmark.Disabled # crbug.com/443730 |
| 238 class PageCyclerBigJs(_PageCycler): | 238 class PageCyclerBigJs(_PageCycler): |
| 239 page_set = page_sets.BigJsPageSet | 239 page_set = page_sets.BigJsPageSet |
| 240 @classmethod | 240 @classmethod |
| 241 def Name(cls): | 241 def Name(cls): |
| 242 return 'page_cycler.big_js' | 242 return 'page_cycler.big_js' |
| OLD | NEW |