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 telemetry import benchmark | 5 from telemetry import benchmark |
6 | 6 |
7 from measurements import tab_switching | 7 from measurements import tab_switching |
8 import page_sets | 8 import page_sets |
9 | 9 |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 @benchmark.Enabled('has tabs') | 28 @benchmark.Enabled('has tabs') |
29 class TabSwitchingTypical25(benchmark.Benchmark): | 29 class TabSwitchingTypical25(benchmark.Benchmark): |
30 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 30 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
31 | 31 |
32 The histogram is a measure of the time between when a tab was requested to be | 32 The histogram is a measure of the time between when a tab was requested to be |
33 shown, and when first paint occurred. The script opens 25 pages in different | 33 shown, and when first paint occurred. The script opens 25 pages in different |
34 tabs, waits for them to load, and then switches to each tab and records the | 34 tabs, waits for them to load, and then switches to each tab and records the |
35 metric. The pages were chosen from Alexa top ranking sites. | 35 metric. The pages were chosen from Alexa top ranking sites. |
36 """ | 36 """ |
37 test = tab_switching.TabSwitching | 37 test = tab_switching.TabSwitching |
38 page_set = page_sets.Typical25PageSet | 38 |
| 39 def CreatePageSet(self, options): |
| 40 return page_sets.Typical25PageSet(make_pages_with_no_interactions=True) |
39 | 41 |
40 @classmethod | 42 @classmethod |
41 def Name(cls): | 43 def Name(cls): |
42 return 'tab_switching.typical_25' | 44 return 'tab_switching.typical_25' |
43 | 45 |
44 | 46 |
45 @benchmark.Enabled('has tabs') | 47 @benchmark.Enabled('has tabs') |
46 class TabSwitchingFiveBlankTabs(benchmark.Benchmark): | 48 class TabSwitchingFiveBlankTabs(benchmark.Benchmark): |
47 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 49 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
48 | 50 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 82 |
81 @benchmark.Disabled # Just for local testing, not on waterfall. | 83 @benchmark.Disabled # Just for local testing, not on waterfall. |
82 class TabSwitchingFlashEnergyCases(benchmark.Benchmark): | 84 class TabSwitchingFlashEnergyCases(benchmark.Benchmark): |
83 test = tab_switching.TabSwitching | 85 test = tab_switching.TabSwitching |
84 page_set = page_sets.FlashEnergyCasesPageSet | 86 page_set = page_sets.FlashEnergyCasesPageSet |
85 options = {'pageset_repeat': 10} | 87 options = {'pageset_repeat': 10} |
86 @classmethod | 88 @classmethod |
87 def Name(cls): | 89 def Name(cls): |
88 return 'tab_switching.flash_energy_cases' | 90 return 'tab_switching.flash_energy_cases' |
89 | 91 |
OLD | NEW |