Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / tools / perf / benchmarks / tab_switching.py
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
3 # found in the LICENSE file.
4
5 from telemetry import benchmark
6
7 from measurements import tab_switching
8 import page_sets
9
10
11 @benchmark.Enabled('has tabs')
12 class TabSwitchingTop10(benchmark.Benchmark):
13   test = tab_switching.TabSwitching
14   page_set = page_sets.Top10PageSet
15
16
17 @benchmark.Enabled('has tabs')
18 class TabSwitchingTypical25(benchmark.Benchmark):
19   test = tab_switching.TabSwitching
20   page_set = page_sets.Typical25PageSet
21
22
23 @benchmark.Enabled('has tabs')
24 class TabSwitchingFiveBlankTabs(benchmark.Benchmark):
25   test = tab_switching.TabSwitching
26   page_set = page_sets.FiveBlankPagesPageSet
27   options = {'pageset_repeat': 10}
28
29
30 @benchmark.Enabled('has tabs')
31 class TabSwitchingToughEnergyCases(benchmark.Benchmark):
32   test = tab_switching.TabSwitching
33   page_set = page_sets.ToughEnergyCasesPageSet
34   options = {'pageset_repeat': 10}
35
36
37 @benchmark.Disabled  # Just for local testing, not on waterfall.
38 class TabSwitchingFlashEnergyCases(benchmark.Benchmark):
39   test = tab_switching.TabSwitching
40   page_set = page_sets.FlashEnergyCasesPageSet
41   options = {'pageset_repeat': 10}