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 17 matching lines...) Expand all Loading... |
28 return tbm_options | 28 return tbm_options |
29 | 29 |
30 | 30 |
31 @benchmark.Disabled('win') # crbug.com/615178 | 31 @benchmark.Disabled('win') # crbug.com/615178 |
32 class PageCyclerV2Typical25(_PageCyclerV2): | 32 class PageCyclerV2Typical25(_PageCyclerV2): |
33 """Page load time benchmark for a 25 typical web pages. | 33 """Page load time benchmark for a 25 typical web pages. |
34 | 34 |
35 Designed to represent typical, not highly optimized or highly popular web | 35 Designed to represent typical, not highly optimized or highly popular web |
36 sites. Runs against pages recorded in June, 2014. | 36 sites. Runs against pages recorded in June, 2014. |
37 """ | 37 """ |
38 options = {'pageset_repeat': 3} | 38 options = {'pageset_repeat': 2} |
39 | 39 |
40 @classmethod | 40 @classmethod |
41 def Name(cls): | 41 def Name(cls): |
42 return 'page_cycler_v2.typical_25' | 42 return 'page_cycler_v2.typical_25' |
43 | 43 |
44 @classmethod | 44 @classmethod |
45 def ShouldDisable(cls, possible_browser): # crbug.com/615178 | 45 def ShouldDisable(cls, possible_browser): # crbug.com/615178 |
46 return ((possible_browser.browser_type == 'reference' and | 46 return ((possible_browser.browser_type == 'reference' and |
47 possible_browser.platform.GetOSName() == 'android') or | 47 possible_browser.platform.GetOSName() == 'android') or |
48 cls.IsSvelte(possible_browser) or # crbug.com/616781 | 48 cls.IsSvelte(possible_browser) or # crbug.com/616781 |
49 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') | 49 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
50 | 50 |
51 def CreateStorySet(self, options): | 51 def CreateStorySet(self, options): |
52 return page_sets.Typical25PageSet(run_no_page_interactions=True, | 52 return page_sets.Typical25PageSet(run_no_page_interactions=True, |
53 cache_temperatures=[ | 53 cache_temperatures=[ |
54 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 54 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
OLD | NEW |