Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / perf / benchmarks / thread_times.py
1 # Copyright 2014 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 benchmarks import silk_flags
6 from measurements import thread_times
7 import page_sets
8 from telemetry import benchmark
9
10
11 @benchmark.Enabled('android')
12 class ThreadTimesKeySilkCases(benchmark.Benchmark):
13   """Measures timeline metrics while performing smoothness action on key silk
14   cases."""
15   test = thread_times.ThreadTimes
16   page_set = page_sets.KeySilkCasesPageSet
17   options = {"report_silk_results": True}
18
19
20 @benchmark.Enabled('android')
21 class ThreadTimesFastPathKeySilkCases(benchmark.Benchmark):
22   """Measures timeline metrics while performing smoothness action on key silk
23   cases using bleeding edge rendering fast paths."""
24   tag = 'fast_path'
25   test = thread_times.ThreadTimes
26   page_set = page_sets.KeySilkCasesPageSet
27   options = {"report_silk_results": True}
28   def CustomizeBrowserOptions(self, options):
29     silk_flags.CustomizeBrowserOptionsForFastPath(options)
30
31
32 @benchmark.Disabled
33 class LegacySilkBenchmark(ThreadTimesKeySilkCases):
34   """Same as thread_times.key_silk_cases but with the old name."""
35   @classmethod
36   def GetName(cls):
37     return "silk.key_silk_cases"
38
39
40 @benchmark.Enabled('android')
41 class ThreadTimesFastPathMobileSites(benchmark.Benchmark):
42   """Measures timeline metrics while performing smoothness action on
43   key mobile sites labeled with fast-path tag.
44   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
45   test = thread_times.ThreadTimes
46   page_set = page_sets.KeyMobileSitesPageSet
47   options = {'page_label_filter' : 'fastpath'}
48
49
50 @benchmark.Disabled  # crbug.com/400922
51 class ThreadTimesSimpleMobileSites(benchmark.Benchmark):
52   """Measures timeline metric using smoothness action on simple mobile sites
53   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
54   test = thread_times.ThreadTimes
55   page_set = page_sets.SimpleMobileSitesPageSet
56
57
58 class ThreadTimesCompositorCases(benchmark.Benchmark):
59   """Measures timeline metrics while performing smoothness action on
60   tough compositor cases, using software rasterization.
61
62   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
63   test = thread_times.ThreadTimes
64   page_set = page_sets.ToughCompositorCasesPageSet
65   def CustomizeBrowserOptions(self, options):
66     silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options)
67
68 @benchmark.Enabled('android')
69 class ThreadTimesPolymer(benchmark.Benchmark):
70   """Measures timeline metrics while performing smoothness action on
71   Polymer cases."""
72   test = thread_times.ThreadTimes
73   page_set = page_sets.PolymerPageSet
74   options = { 'report_silk_results': True }