| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 @classmethod | 88 @classmethod |
| 89 def Name(cls): | 89 def Name(cls): |
| 90 return 'page_cycler_v2.intl_es_fr_pt-BR' | 90 return 'page_cycler_v2.intl_es_fr_pt-BR' |
| 91 | 91 |
| 92 def CreateStorySet(self, options): | 92 def CreateStorySet(self, options): |
| 93 return page_sets.IntlEsFrPtBrPageSet(cache_temperatures=[ | 93 return page_sets.IntlEsFrPtBrPageSet(cache_temperatures=[ |
| 94 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 94 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| 95 | 95 |
| 96 | 96 |
| 97 class PageCyclerV2IntlHiRu(_PageCyclerV2): |
| 98 """Page load time benchmark for a variety of pages in Hindi and Russian. |
| 99 |
| 100 Runs against pages recorded in April, 2013. |
| 101 """ |
| 102 page_set = page_sets.IntlHiRuPageSet |
| 103 |
| 104 @classmethod |
| 105 def Name(cls): |
| 106 return 'page_cycler_v2.intl_hi_ru' |
| 107 |
| 108 def CreateStorySet(self, options): |
| 109 return page_sets.IntlHiRuPageSet(cache_temperatures=[ |
| 110 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| 111 |
| 112 |
| 97 class PageCyclerV2IntlJaZh(_PageCyclerV2): | 113 class PageCyclerV2IntlJaZh(_PageCyclerV2): |
| 98 """Page load time benchmark for a variety of pages in Japanese and Chinese. | 114 """Page load time benchmark for a variety of pages in Japanese and Chinese. |
| 99 | 115 |
| 100 Runs against pages recorded in April, 2013. | 116 Runs against pages recorded in April, 2013. |
| 101 """ | 117 """ |
| 102 | 118 |
| 103 @classmethod | 119 @classmethod |
| 104 def Name(cls): | 120 def Name(cls): |
| 105 return 'page_cycler_v2.intl_ja_zh' | 121 return 'page_cycler_v2.intl_ja_zh' |
| 106 | 122 |
| 107 def CreateStorySet(self, options): | 123 def CreateStorySet(self, options): |
| 108 return page_sets.IntlJaZhPageSet(cache_temperatures=[ | 124 return page_sets.IntlJaZhPageSet(cache_temperatures=[ |
| 109 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 125 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| OLD | NEW |