| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 from measurements import page_cycler | 7 from measurements import page_cycler |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 return cls.cold_load_percent > 0 or not is_first_result | 28 return cls.cold_load_percent > 0 or not is_first_result |
| 29 | 29 |
| 30 def CreatePageTest(self, options): | 30 def CreatePageTest(self, options): |
| 31 return page_cycler.PageCycler( | 31 return page_cycler.PageCycler( |
| 32 page_repeat=options.page_repeat, | 32 page_repeat=options.page_repeat, |
| 33 pageset_repeat=options.pageset_repeat, | 33 pageset_repeat=options.pageset_repeat, |
| 34 cold_load_percent=self.cold_load_percent, | 34 cold_load_percent=self.cold_load_percent, |
| 35 report_speed_index=options.report_speed_index) | 35 report_speed_index=options.report_speed_index) |
| 36 | 36 |
| 37 | 37 |
| 38 # This is an old page set, we intend to remove it after more modern benchmarks | |
| 39 # work on CrOS. | |
| 40 @benchmark.Enabled('chromeos') | |
| 41 class PageCyclerDhtml(_PageCycler): | |
| 42 """Benchmarks for various DHTML operations like simple animations.""" | |
| 43 page_set = page_sets.DhtmlPageSet | |
| 44 | |
| 45 @classmethod | |
| 46 def Name(cls): | |
| 47 return 'page_cycler.dhtml' | |
| 48 | |
| 49 | |
| 50 class PageCyclerIntlArFaHe(_PageCycler): | 38 class PageCyclerIntlArFaHe(_PageCycler): |
| 51 """Page load time for a variety of pages in Arabic, Farsi and Hebrew. | 39 """Page load time for a variety of pages in Arabic, Farsi and Hebrew. |
| 52 | 40 |
| 53 Runs against pages recorded in April, 2013. | 41 Runs against pages recorded in April, 2013. |
| 54 """ | 42 """ |
| 55 page_set = page_sets.IntlArFaHePageSet | 43 page_set = page_sets.IntlArFaHePageSet |
| 56 | 44 |
| 57 @classmethod | 45 @classmethod |
| 58 def Name(cls): | 46 def Name(cls): |
| 59 return 'page_cycler.intl_ar_fa_he' | 47 return 'page_cycler.intl_ar_fa_he' |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 return 'page_cycler.basic_oopif' | 224 return 'page_cycler.basic_oopif' |
| 237 | 225 |
| 238 | 226 |
| 239 @benchmark.Disabled('all') # crbug.com/443730 | 227 @benchmark.Disabled('all') # crbug.com/443730 |
| 240 class PageCyclerBigJs(_PageCycler): | 228 class PageCyclerBigJs(_PageCycler): |
| 241 page_set = page_sets.BigJsPageSet | 229 page_set = page_sets.BigJsPageSet |
| 242 | 230 |
| 243 @classmethod | 231 @classmethod |
| 244 def Name(cls): | 232 def Name(cls): |
| 245 return 'page_cycler.big_js' | 233 return 'page_cycler.big_js' |
| OLD | NEW |