Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: tools/perf/benchmarks/page_cycler_v2.py

Issue 2164903002: [PCv2] Migrate tough_layout_cases page set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_layout_cases.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 """ 148 """
149 149
150 @classmethod 150 @classmethod
151 def Name(cls): 151 def Name(cls):
152 return 'page_cycler_v2.top_10_mobile' 152 return 'page_cycler_v2.top_10_mobile'
153 153
154 def CreateStorySet(self, options): 154 def CreateStorySet(self, options):
155 return page_sets.Top10MobilePageSet(run_no_page_interactions=True, 155 return page_sets.Top10MobilePageSet(run_no_page_interactions=True,
156 cache_temperatures=[ 156 cache_temperatures=[
157 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) 157 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM])
158
159
160 class PageCyclerV2ToughLayoutCases(_PageCyclerV2):
161 """Page loading for the slowest layouts observed in the Alexa top 1 million.
162
163 Recorded in July 2013.
164 """
165 page_set = page_sets.ToughLayoutCasesPageSet
166
167 @classmethod
168 def Name(cls):
169 return 'page_cycler_v2.tough_layout_cases'
170
171 def CreateStorySet(self, options):
172 return page_sets.ToughLayoutCasesPageSet(cache_temperatures=[
173 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM])
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_layout_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698