| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 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. |
| 99 """ | 99 """ |
| 100 test = tab_switching.TabSwitching | 100 test = tab_switching.TabSwitching |
| 101 page_set = page_sets.ToughImageCasesPageSet | 101 page_set = page_sets.ToughImageCasesPageSet |
| 102 | 102 |
| 103 @classmethod | 103 @classmethod |
| 104 def Name(cls): | 104 def Name(cls): |
| 105 return 'tab_switching.tough_image_cases' | 105 return 'tab_switching.tough_image_cases' |
| 106 | 106 |
| 107 | 107 |
| 108 @benchmark.Disabled | 108 @benchmark.Disabled('all') |
| 109 class TabSwitchingFlashEnergyCases(perf_benchmark.PerfBenchmark): | 109 class TabSwitchingFlashEnergyCases(perf_benchmark.PerfBenchmark): |
| 110 test = tab_switching.TabSwitching | 110 test = tab_switching.TabSwitching |
| 111 page_set = page_sets.FlashEnergyCasesPageSet | 111 page_set = page_sets.FlashEnergyCasesPageSet |
| 112 options = {'pageset_repeat': 10} | 112 options = {'pageset_repeat': 10} |
| 113 | 113 |
| 114 @classmethod | 114 @classmethod |
| 115 def Name(cls): | 115 def Name(cls): |
| 116 return 'tab_switching.flash_energy_cases' | 116 return 'tab_switching.flash_energy_cases' |
| 117 | 117 |
| 118 | 118 |
| 119 @benchmark.Disabled | 119 @benchmark.Disabled('all') |
| 120 class TabSwitchingPluginPowerSaver(perf_benchmark.PerfBenchmark): | 120 class TabSwitchingPluginPowerSaver(perf_benchmark.PerfBenchmark): |
| 121 test = tab_switching.TabSwitching | 121 test = tab_switching.TabSwitching |
| 122 page_set = page_sets.FlashEnergyCasesPageSet | 122 page_set = page_sets.FlashEnergyCasesPageSet |
| 123 options = {'pageset_repeat': 10} | 123 options = {'pageset_repeat': 10} |
| 124 | 124 |
| 125 def SetExtraBrowserOptions(self, options): | 125 def SetExtraBrowserOptions(self, options): |
| 126 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) | 126 options.AppendExtraBrowserArgs(['--enable-plugin-power-saver']) |
| 127 | 127 |
| 128 @classmethod | 128 @classmethod |
| 129 def Name(cls): | 129 def Name(cls): |
| 130 return 'tab_switching.plugin_power_saver' | 130 return 'tab_switching.plugin_power_saver' |
| OLD | NEW |