| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 """The page cycler v2. | 5 """The page cycler v2. |
| 6 | 6 |
| 7 For details, see design doc: | 7 For details, see design doc: |
| 8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0 | 8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0 |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 @classmethod | 178 @classmethod |
| 179 def Name(cls): | 179 def Name(cls): |
| 180 return 'page_cycler_v2.top_10_mobile' | 180 return 'page_cycler_v2.top_10_mobile' |
| 181 | 181 |
| 182 def CreateStorySet(self, options): | 182 def CreateStorySet(self, options): |
| 183 return page_sets.Top10MobilePageSet(run_no_page_interactions=True, | 183 return page_sets.Top10MobilePageSet(run_no_page_interactions=True, |
| 184 cache_temperatures=[ | 184 cache_temperatures=[ |
| 185 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 185 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| 186 | 186 |
| 187 | 187 |
| 188 @benchmark.Owner(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org']) | |
| 189 class PageCyclerV2ToughLayoutCases(_PageCyclerV2): | |
| 190 """Page loading for the slowest layouts observed in the Alexa top 1 million. | |
| 191 | |
| 192 Recorded in July 2013. | |
| 193 """ | |
| 194 page_set = page_sets.ToughLayoutCasesPageSet | |
| 195 | |
| 196 @classmethod | |
| 197 def Name(cls): | |
| 198 return 'page_cycler_v2.tough_layout_cases' | |
| 199 | |
| 200 def CreateStorySet(self, options): | |
| 201 return page_sets.ToughLayoutCasesPageSet(cache_temperatures=[ | |
| 202 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | |
| 203 | |
| 204 | |
| 205 @benchmark.Disabled('reference', 'android') | 188 @benchmark.Disabled('reference', 'android') |
| 206 @benchmark.Owner(emails=['nasko@chromium.org']) | 189 @benchmark.Owner(emails=['nasko@chromium.org']) |
| 207 class PageCyclerV2BasicOopifIsolated(_PageCyclerV2): | 190 class PageCyclerV2BasicOopifIsolated(_PageCyclerV2): |
| 208 """ A benchmark measuring performance of out-of-process iframes. """ | 191 """ A benchmark measuring performance of out-of-process iframes. """ |
| 209 page_set = page_sets.OopifBasicPageSet | 192 page_set = page_sets.OopifBasicPageSet |
| 210 | 193 |
| 211 @classmethod | 194 @classmethod |
| 212 def Name(cls): | 195 def Name(cls): |
| 213 return 'page_cycler_v2_site_isolation.basic_oopif' | 196 return 'page_cycler_v2_site_isolation.basic_oopif' |
| 214 | 197 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 226 set, without running in out-of-process iframes mode.. """ | 209 set, without running in out-of-process iframes mode.. """ |
| 227 page_set = page_sets.OopifBasicPageSet | 210 page_set = page_sets.OopifBasicPageSet |
| 228 | 211 |
| 229 @classmethod | 212 @classmethod |
| 230 def Name(cls): | 213 def Name(cls): |
| 231 return 'page_cycler_v2.basic_oopif' | 214 return 'page_cycler_v2.basic_oopif' |
| 232 | 215 |
| 233 def CreateStorySet(self, options): | 216 def CreateStorySet(self, options): |
| 234 return page_sets.OopifBasicPageSet(cache_temperatures=[ | 217 return page_sets.OopifBasicPageSet(cache_temperatures=[ |
| 235 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 218 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| OLD | NEW |