OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 telemetry import test |
| 6 |
5 from benchmarks import silk_flags | 7 from benchmarks import silk_flags |
6 from measurements import smoothness | 8 from measurements import smoothness |
7 from telemetry import test | 9 import page_sets |
8 | 10 |
9 | 11 |
10 class SmoothnessTop25(test.Test): | 12 class SmoothnessTop25(test.Test): |
11 """Measures rendering statistics while scrolling down the top 25 web pages. | 13 """Measures rendering statistics while scrolling down the top 25 web pages. |
12 | 14 |
13 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 15 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
14 test = smoothness.Smoothness | 16 test = smoothness.Smoothness |
15 page_set = 'page_sets/top_25.py' | 17 page_set = page_sets.Top25PageSet |
16 | 18 |
17 | 19 |
18 @test.Disabled('mac') | 20 @test.Disabled('mac') |
19 class SmoothnessToughCanvasCases(test.Test): | 21 class SmoothnessToughCanvasCases(test.Test): |
20 test = smoothness.Smoothness | 22 test = smoothness.Smoothness |
21 page_set = 'page_sets/tough_canvas_cases.py' | 23 page_set = page_sets.ToughCanvasCasesPageSet |
22 | 24 |
23 | 25 |
24 class SmoothnessToughWebGLCases(test.Test): | 26 class SmoothnessToughWebGLCases(test.Test): |
25 test = smoothness.Smoothness | 27 test = smoothness.Smoothness |
26 page_set = 'page_sets/tough_webgl_cases.py' | 28 page_set = page_sets.ToughWebglCasesPageSet |
27 | 29 |
28 | 30 |
29 class SmoothnessMaps(test.Test): | 31 class SmoothnessMaps(test.Test): |
30 test = smoothness.Smoothness | 32 test = smoothness.Smoothness |
31 page_set = 'page_sets/maps.py' | 33 page_set = page_sets.MapsPageSet |
32 | 34 |
33 | 35 |
34 class SmoothnessKeyMobileSites(test.Test): | 36 class SmoothnessKeyMobileSites(test.Test): |
35 """Measures rendering statistics while scrolling down the key mobile sites. | 37 """Measures rendering statistics while scrolling down the key mobile sites. |
36 | 38 |
37 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 39 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
38 test = smoothness.Smoothness | 40 test = smoothness.Smoothness |
39 page_set = 'page_sets/key_mobile_sites.py' | 41 page_set = page_sets.KeyMobileSitesPageSet |
40 | 42 |
41 | 43 |
42 @test.Disabled('android') # crbug.com/350692 | 44 @test.Disabled('android') # crbug.com/350692 |
43 class SmoothnessToughAnimationCases(test.Test): | 45 class SmoothnessToughAnimationCases(test.Test): |
44 test = smoothness.Smoothness | 46 test = smoothness.Smoothness |
45 page_set = 'page_sets/tough_animation_cases.py' | 47 page_set = page_sets.ToughAnimationCasesPageSet |
46 | 48 |
47 | 49 |
48 class SmoothnessKeySilkCases(test.Test): | 50 class SmoothnessKeySilkCases(test.Test): |
49 """Measures rendering statistics for the key silk cases without GPU | 51 """Measures rendering statistics for the key silk cases without GPU |
50 rasterization | 52 rasterization |
51 """ | 53 """ |
52 test = smoothness.Smoothness | 54 test = smoothness.Smoothness |
53 page_set = 'page_sets/key_silk_cases.py' | 55 page_set = page_sets.KeySilkCasesPageSet |
54 | 56 |
55 | 57 |
56 class SmoothnessFastPathKeySilkCases(test.Test): | 58 class SmoothnessFastPathKeySilkCases(test.Test): |
57 """Measures rendering statistics for the key silk cases without GPU | 59 """Measures rendering statistics for the key silk cases without GPU |
58 rasterization using bleeding edge rendering fast paths. | 60 rasterization using bleeding edge rendering fast paths. |
59 """ | 61 """ |
60 tag = 'fast_path' | 62 tag = 'fast_path' |
61 test = smoothness.Smoothness | 63 test = smoothness.Smoothness |
62 page_set = 'page_sets/key_silk_cases.py' | 64 page_set = page_sets.KeySilkCasesPageSet |
63 def CustomizeBrowserOptions(self, options): | 65 def CustomizeBrowserOptions(self, options): |
64 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 66 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
65 | 67 |
66 | 68 |
67 class SmoothnessGpuRasterizationTop25(test.Test): | 69 class SmoothnessGpuRasterizationTop25(test.Test): |
68 """Measures rendering statistics for the top 25 with GPU rasterization | 70 """Measures rendering statistics for the top 25 with GPU rasterization |
69 """ | 71 """ |
70 tag = 'gpu_rasterization' | 72 tag = 'gpu_rasterization' |
71 test = smoothness.Smoothness | 73 test = smoothness.Smoothness |
72 page_set = 'page_sets/top_25.py' | 74 page_set = page_sets.Top25PageSet |
73 def CustomizeBrowserOptions(self, options): | 75 def CustomizeBrowserOptions(self, options): |
74 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 76 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
75 | 77 |
76 | 78 |
77 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): | 79 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): |
78 """Measures rendering statistics for the key mobile sites with GPU | 80 """Measures rendering statistics for the key mobile sites with GPU |
79 rasterization | 81 rasterization |
80 """ | 82 """ |
81 tag = 'gpu_rasterization' | 83 tag = 'gpu_rasterization' |
82 test = smoothness.Smoothness | 84 test = smoothness.Smoothness |
83 page_set = 'page_sets/key_mobile_sites.py' | 85 page_set = page_sets.KeyMobileSitesPageSet |
84 def CustomizeBrowserOptions(self, options): | 86 def CustomizeBrowserOptions(self, options): |
85 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 87 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
86 | 88 |
87 | 89 |
88 class SmoothnessGpuRasterizationKeySilkCases(test.Test): | 90 class SmoothnessGpuRasterizationKeySilkCases(test.Test): |
89 """Measures rendering statistics for the key silk cases with GPU rasterization | 91 """Measures rendering statistics for the key silk cases with GPU rasterization |
90 """ | 92 """ |
91 tag = 'gpu_rasterization' | 93 tag = 'gpu_rasterization' |
92 test = smoothness.Smoothness | 94 test = smoothness.Smoothness |
93 page_set = 'page_sets/key_silk_cases.py' | 95 page_set = page_sets.KeySilkCasesPageSet |
94 def CustomizeBrowserOptions(self, options): | 96 def CustomizeBrowserOptions(self, options): |
95 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 97 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
96 | 98 |
97 | 99 |
98 class SmoothnessFastPathGpuRasterizationKeySilkCases( | 100 class SmoothnessFastPathGpuRasterizationKeySilkCases( |
99 SmoothnessGpuRasterizationKeySilkCases): | 101 SmoothnessGpuRasterizationKeySilkCases): |
100 """Measures rendering statistics for the key silk cases with GPU rasterization | 102 """Measures rendering statistics for the key silk cases with GPU rasterization |
101 using bleeding edge rendering fast paths. | 103 using bleeding edge rendering fast paths. |
102 """ | 104 """ |
103 tag = 'fast_path_gpu_rasterization' | 105 tag = 'fast_path_gpu_rasterization' |
104 test = smoothness.Smoothness | 106 test = smoothness.Smoothness |
105 page_set = 'page_sets/key_silk_cases.py' | 107 page_set = page_sets.KeySilkCasesPageSet |
106 def CustomizeBrowserOptions(self, options): | 108 def CustomizeBrowserOptions(self, options): |
107 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ | 109 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ |
108 CustomizeBrowserOptions(options) | 110 CustomizeBrowserOptions(options) |
109 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 111 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
110 | 112 |
111 | 113 |
112 @test.Enabled('android') | 114 @test.Enabled('android') |
113 class SmoothnessToughPinchZoomCases(test.Test): | 115 class SmoothnessToughPinchZoomCases(test.Test): |
114 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 116 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
115 cases | 117 cases |
116 """ | 118 """ |
117 test = smoothness.Smoothness | 119 test = smoothness.Smoothness |
118 page_set = 'page_sets/tough_pinch_zoom_cases.py' | 120 page_set = page_sets.ToughPinchZoomCasesPageSet |
119 | 121 |
120 | 122 |
121 @test.Enabled('android') | 123 @test.Enabled('android') |
122 class SmoothnessPolymer(test.Test): | 124 class SmoothnessPolymer(test.Test): |
123 """Measures rendering statistics for Polymer cases. | 125 """Measures rendering statistics for Polymer cases. |
124 """ | 126 """ |
125 test = smoothness.Smoothness | 127 test = smoothness.Smoothness |
126 page_set = 'page_sets/polymer.py' | 128 page_set = page_sets.PolymerPageSet |
127 | 129 |
128 | 130 |
129 @test.Enabled('android') | 131 @test.Enabled('android') |
130 class SmoothnessFastPathPolymer(test.Test): | 132 class SmoothnessFastPathPolymer(test.Test): |
131 """Measures rendering statistics for the Polymer cases without GPU | 133 """Measures rendering statistics for the Polymer cases without GPU |
132 rasterization using bleeding edge rendering fast paths. | 134 rasterization using bleeding edge rendering fast paths. |
133 """ | 135 """ |
134 tag = 'fast_path' | 136 tag = 'fast_path' |
135 test = smoothness.Smoothness | 137 test = smoothness.Smoothness |
136 page_set = 'page_sets/polymer.py' | 138 page_set = page_sets.PolymerPageSet |
137 def CustomizeBrowserOptions(self, options): | 139 def CustomizeBrowserOptions(self, options): |
138 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 140 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
139 | 141 |
140 | 142 |
141 @test.Enabled('android') | 143 @test.Enabled('android') |
142 class SmoothnessGpuRasterizationPolymer(test.Test): | 144 class SmoothnessGpuRasterizationPolymer(test.Test): |
143 """Measures rendering statistics for the Polymer cases with GPU rasterization | 145 """Measures rendering statistics for the Polymer cases with GPU rasterization |
144 """ | 146 """ |
145 tag = 'gpu_rasterization' | 147 tag = 'gpu_rasterization' |
146 test = smoothness.Smoothness | 148 test = smoothness.Smoothness |
147 page_set = 'page_sets/polymer.py' | 149 page_set = page_sets.PolymerPageSet |
148 def CustomizeBrowserOptions(self, options): | 150 def CustomizeBrowserOptions(self, options): |
149 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 151 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
150 | 152 |
151 | 153 |
152 @test.Enabled('android') | 154 @test.Enabled('android') |
153 class SmoothnessFastPathGpuRasterizationPolymer( | 155 class SmoothnessFastPathGpuRasterizationPolymer( |
154 SmoothnessGpuRasterizationPolymer): | 156 SmoothnessGpuRasterizationPolymer): |
155 """Measures rendering statistics for the Polymer cases with GPU rasterization | 157 """Measures rendering statistics for the Polymer cases with GPU rasterization |
156 using bleeding edge rendering fast paths. | 158 using bleeding edge rendering fast paths. |
157 """ | 159 """ |
158 tag = 'fast_path_gpu_rasterization' | 160 tag = 'fast_path_gpu_rasterization' |
159 test = smoothness.Smoothness | 161 test = smoothness.Smoothness |
160 page_set = 'page_sets/polymer.py' | 162 page_set = page_sets.PolymerPageSet |
161 def CustomizeBrowserOptions(self, options): | 163 def CustomizeBrowserOptions(self, options): |
162 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ | 164 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ |
163 CustomizeBrowserOptions(options) | 165 CustomizeBrowserOptions(options) |
164 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 166 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
OLD | NEW |