OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 from telemetry import test | 4 from telemetry import benchmark |
5 | 5 |
6 from benchmarks import silk_flags | 6 from benchmarks import silk_flags |
7 from measurements import thread_times | 7 from measurements import thread_times |
8 import page_sets | 8 import page_sets |
9 | 9 |
10 | 10 |
11 class ThreadTimesKeySilkCases(test.Test): | 11 class ThreadTimesKeySilkCases(benchmark.Benchmark): |
12 """Measures timeline metrics while performing smoothness action on key silk | 12 """Measures timeline metrics while performing smoothness action on key silk |
13 cases.""" | 13 cases.""" |
14 test = thread_times.ThreadTimes | 14 test = thread_times.ThreadTimes |
15 page_set = page_sets.KeySilkCasesPageSet | 15 page_set = page_sets.KeySilkCasesPageSet |
16 options = {"report_silk_results": True} | 16 options = {"report_silk_results": True} |
17 | 17 |
18 | 18 |
19 class ThreadTimesFastPathKeySilkCases(test.Test): | 19 class ThreadTimesFastPathKeySilkCases(benchmark.Benchmark): |
20 """Measures timeline metrics while performing smoothness action on key silk | 20 """Measures timeline metrics while performing smoothness action on key silk |
21 cases using bleeding edge rendering fast paths.""" | 21 cases using bleeding edge rendering fast paths.""" |
22 tag = 'fast_path' | 22 tag = 'fast_path' |
23 test = thread_times.ThreadTimes | 23 test = thread_times.ThreadTimes |
24 page_set = page_sets.KeySilkCasesPageSet | 24 page_set = page_sets.KeySilkCasesPageSet |
25 options = {"report_silk_results": True} | 25 options = {"report_silk_results": True} |
26 def CustomizeBrowserOptions(self, options): | 26 def CustomizeBrowserOptions(self, options): |
27 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 27 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
28 | 28 |
29 | 29 |
30 class LegacySilkBenchmark(ThreadTimesKeySilkCases): | 30 class LegacySilkBenchmark(ThreadTimesKeySilkCases): |
31 """Same as thread_times.key_silk_cases but with the old name.""" | 31 """Same as thread_times.key_silk_cases but with the old name.""" |
32 @classmethod | 32 @classmethod |
33 def GetName(cls): | 33 def GetName(cls): |
34 return "silk.key_silk_cases" | 34 return "silk.key_silk_cases" |
35 | 35 |
36 | 36 |
37 class ThreadTimesFastPathMobileSites(test.Test): | 37 class ThreadTimesFastPathMobileSites(benchmark.Benchmark): |
38 """Measures timeline metrics while performing smoothness action on | 38 """Measures timeline metrics while performing smoothness action on |
39 key mobile sites labeled with fast-path tag. | 39 key mobile sites labeled with fast-path tag. |
40 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 40 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
41 test = thread_times.ThreadTimes | 41 test = thread_times.ThreadTimes |
42 page_set = page_sets.KeyMobileSitesPageSet | 42 page_set = page_sets.KeyMobileSitesPageSet |
43 options = {'page_label_filter' : 'fastpath'} | 43 options = {'page_label_filter' : 'fastpath'} |
44 | 44 |
45 | 45 |
46 class ThreadTimesCompositorCases(test.Test): | 46 class ThreadTimesCompositorCases(benchmark.Benchmark): |
47 """Measures timeline metrics while performing smoothness action on | 47 """Measures timeline metrics while performing smoothness action on |
48 tough compositor cases. | 48 tough compositor cases. |
49 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 49 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
50 test = thread_times.ThreadTimes | 50 test = thread_times.ThreadTimes |
51 page_set = page_sets.ToughCompositorCasesPageSet | 51 page_set = page_sets.ToughCompositorCasesPageSet |
52 | 52 |
53 | 53 |
54 @test.Enabled('android') | 54 @benchmark.Enabled('android') |
55 class ThreadTimesPolymer(test.Test): | 55 class ThreadTimesPolymer(benchmark.Benchmark): |
56 """Measures timeline metrics while performing smoothness action on | 56 """Measures timeline metrics while performing smoothness action on |
57 Polymer cases.""" | 57 Polymer cases.""" |
58 test = thread_times.ThreadTimes | 58 test = thread_times.ThreadTimes |
59 page_set = page_sets.PolymerPageSet | 59 page_set = page_sets.PolymerPageSet |
60 options = { 'report_silk_results': True } | 60 options = { 'report_silk_results': True } |
OLD | NEW |