| 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 tab_switching | 7 from measurements import tab_switching |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 """ | 21 """ |
| 22 test = tab_switching.TabSwitching | 22 test = tab_switching.TabSwitching |
| 23 page_set = page_sets.Top10PageSet | 23 page_set = page_sets.Top10PageSet |
| 24 | 24 |
| 25 @classmethod | 25 @classmethod |
| 26 def Name(cls): | 26 def Name(cls): |
| 27 return 'tab_switching.top_10' | 27 return 'tab_switching.top_10' |
| 28 | 28 |
| 29 | 29 |
| 30 @benchmark.Enabled('has tabs') | 30 @benchmark.Enabled('has tabs') |
| 31 @benchmark.Disabled('mac-reference') # http://crbug.com/612774 |
| 31 @benchmark.Disabled('android') # http://crbug.com/460084 | 32 @benchmark.Disabled('android') # http://crbug.com/460084 |
| 32 class TabSwitchingTypical25(perf_benchmark.PerfBenchmark): | 33 class TabSwitchingTypical25(perf_benchmark.PerfBenchmark): |
| 33 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. | 34 """This test records the MPArch.RWH_TabSwitchPaintDuration histogram. |
| 34 | 35 |
| 35 The histogram is a measure of the time between when a tab was requested to be | 36 The histogram is a measure of the time between when a tab was requested to be |
| 36 shown, and when first paint occurred. The script opens 25 pages in different | 37 shown, and when first paint occurred. The script opens 25 pages in different |
| 37 tabs, waits for them to load, and then switches to each tab and records the | 38 tabs, waits for them to load, and then switches to each tab and records the |
| 38 metric. The pages were chosen from Alexa top ranking sites. | 39 metric. The pages were chosen from Alexa top ranking sites. |
| 39 """ | 40 """ |
| 40 test = tab_switching.TabSwitching | 41 test = tab_switching.TabSwitching |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 shown, and when first paint occurred. The script opens each page in different | 96 shown, and when first paint occurred. The script opens each page in different |
| 96 tabs, waits for them to load, and then switches to each tab and records the | 97 tabs, waits for them to load, and then switches to each tab and records the |
| 97 metric. The pages were chosen by hand to stress the image decoding system. | 98 metric. The pages were chosen by hand to stress the image decoding system. |
| 98 """ | 99 """ |
| 99 test = tab_switching.TabSwitching | 100 test = tab_switching.TabSwitching |
| 100 page_set = page_sets.ToughImageCasesPageSet | 101 page_set = page_sets.ToughImageCasesPageSet |
| 101 | 102 |
| 102 @classmethod | 103 @classmethod |
| 103 def Name(cls): | 104 def Name(cls): |
| 104 return 'tab_switching.tough_image_cases' | 105 return 'tab_switching.tough_image_cases' |
| OLD | NEW |