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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 """ | 164 """ |
165 page_set = page_sets.ToughLayoutCasesPageSet | 165 page_set = page_sets.ToughLayoutCasesPageSet |
166 | 166 |
167 @classmethod | 167 @classmethod |
168 def Name(cls): | 168 def Name(cls): |
169 return 'page_cycler_v2.tough_layout_cases' | 169 return 'page_cycler_v2.tough_layout_cases' |
170 | 170 |
171 def CreateStorySet(self, options): | 171 def CreateStorySet(self, options): |
172 return page_sets.ToughLayoutCasesPageSet(cache_temperatures=[ | 172 return page_sets.ToughLayoutCasesPageSet(cache_temperatures=[ |
173 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 173 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| 174 |
| 175 |
| 176 @benchmark.Disabled('reference', 'android') |
| 177 class PageCyclerV2BasicOopifIsolated(_PageCyclerV2): |
| 178 """ A benchmark measuring performance of out-of-process iframes. """ |
| 179 page_set = page_sets.OopifBasicPageSet |
| 180 |
| 181 @classmethod |
| 182 def Name(cls): |
| 183 return 'page_cycler_v2_site_isolation.basic_oopif' |
| 184 |
| 185 def SetExtraBrowserOptions(self, options): |
| 186 options.AppendExtraBrowserArgs(['--site-per-process']) |
| 187 |
| 188 def CreateStorySet(self, options): |
| 189 return page_sets.OopifBasicPageSet(cache_temperatures=[ |
| 190 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| 191 |
| 192 |
| 193 class PageCyclerV2BasicOopif(_PageCyclerV2): |
| 194 """ A benchmark measuring performance of the out-of-process iframes page |
| 195 set, without running in out-of-process iframes mode.. """ |
| 196 page_set = page_sets.OopifBasicPageSet |
| 197 |
| 198 @classmethod |
| 199 def Name(cls): |
| 200 return 'page_cycler_v2.basic_oopif' |
| 201 |
| 202 def CreateStorySet(self, options): |
| 203 return page_sets.OopifBasicPageSet(cache_temperatures=[ |
| 204 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
OLD | NEW |