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 benchmarks import silk_flags | 5 from benchmarks import silk_flags |
6 import page_sets | 6 import page_sets |
7 from measurements import smoothness | 7 from measurements import smoothness |
8 from telemetry import benchmark | 8 from telemetry import benchmark |
9 | 9 |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 test = smoothness.Smoothness | 26 test = smoothness.Smoothness |
27 page_set = page_sets.ToughCanvasCasesPageSet | 27 page_set = page_sets.ToughCanvasCasesPageSet |
28 | 28 |
29 | 29 |
30 @benchmark.Disabled('android', 'mac', 'win') # crbug.com/373812 | 30 @benchmark.Disabled('android', 'mac', 'win') # crbug.com/373812 |
31 class SmoothnessToughWebGLCases(benchmark.Benchmark): | 31 class SmoothnessToughWebGLCases(benchmark.Benchmark): |
32 test = smoothness.Smoothness | 32 test = smoothness.Smoothness |
33 page_set = page_sets.ToughWebglCasesPageSet | 33 page_set = page_sets.ToughWebglCasesPageSet |
34 | 34 |
35 | 35 |
| 36 @benchmark.Enabled('android') |
36 class SmoothnessMaps(benchmark.Benchmark): | 37 class SmoothnessMaps(benchmark.Benchmark): |
37 test = smoothness.Smoothness | 38 test = smoothness.Smoothness |
38 page_set = page_sets.MapsPageSet | 39 page_set = page_sets.MapsPageSet |
39 | 40 |
40 | 41 |
| 42 @benchmark.Enabled('android') |
41 class SmoothnessKeyMobileSites(benchmark.Benchmark): | 43 class SmoothnessKeyMobileSites(benchmark.Benchmark): |
42 """Measures rendering statistics while scrolling down the key mobile sites. | 44 """Measures rendering statistics while scrolling down the key mobile sites. |
43 | 45 |
44 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 46 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
45 test = smoothness.Smoothness | 47 test = smoothness.Smoothness |
46 page_set = page_sets.KeyMobileSitesPageSet | 48 page_set = page_sets.KeyMobileSitesPageSet |
47 | 49 |
48 | 50 |
49 @benchmark.Disabled('android') # crbug.com/350692 | 51 @benchmark.Disabled('android') # crbug.com/350692 |
50 class SmoothnessToughAnimationCases(benchmark.Benchmark): | 52 class SmoothnessToughAnimationCases(benchmark.Benchmark): |
51 test = smoothness.Smoothness | 53 test = smoothness.Smoothness |
52 page_set = page_sets.ToughAnimationCasesPageSet | 54 page_set = page_sets.ToughAnimationCasesPageSet |
53 | 55 |
54 | 56 |
| 57 @benchmark.Enabled('android') |
55 class SmoothnessKeySilkCases(benchmark.Benchmark): | 58 class SmoothnessKeySilkCases(benchmark.Benchmark): |
56 """Measures rendering statistics for the key silk cases without GPU | 59 """Measures rendering statistics for the key silk cases without GPU |
57 rasterization | 60 rasterization |
58 """ | 61 """ |
59 test = smoothness.Smoothness | 62 test = smoothness.Smoothness |
60 page_set = page_sets.KeySilkCasesPageSet | 63 page_set = page_sets.KeySilkCasesPageSet |
61 | 64 |
62 | 65 |
| 66 @benchmark.Enabled('android') |
63 class SmoothnessFastPathKeySilkCases(benchmark.Benchmark): | 67 class SmoothnessFastPathKeySilkCases(benchmark.Benchmark): |
64 """Measures rendering statistics for the key silk cases without GPU | 68 """Measures rendering statistics for the key silk cases without GPU |
65 rasterization using bleeding edge rendering fast paths. | 69 rasterization using bleeding edge rendering fast paths. |
66 """ | 70 """ |
67 tag = 'fast_path' | 71 tag = 'fast_path' |
68 test = smoothness.Smoothness | 72 test = smoothness.Smoothness |
69 page_set = page_sets.KeySilkCasesPageSet | 73 page_set = page_sets.KeySilkCasesPageSet |
70 def CustomizeBrowserOptions(self, options): | 74 def CustomizeBrowserOptions(self, options): |
71 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 75 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
72 | 76 |
73 | 77 |
74 # GPU rasterization does not work on J devices | 78 @benchmark.Enabled('android') # crbug.com/399125 |
75 @benchmark.Disabled('j', 'android') # crbug.com/399125 | |
76 class SmoothnessGpuRasterizationTop25(benchmark.Benchmark): | 79 class SmoothnessGpuRasterizationTop25(benchmark.Benchmark): |
77 """Measures rendering statistics for the top 25 with GPU rasterization | 80 """Measures rendering statistics for the top 25 with GPU rasterization |
78 """ | 81 """ |
79 tag = 'gpu_rasterization' | 82 tag = 'gpu_rasterization' |
80 test = smoothness.Smoothness | 83 test = smoothness.Smoothness |
81 page_set = page_sets.Top25PageSet | 84 page_set = page_sets.Top25PageSet |
82 def CustomizeBrowserOptions(self, options): | 85 def CustomizeBrowserOptions(self, options): |
83 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 86 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
84 | 87 |
85 | 88 |
86 # GPU rasterization does not work on J devices | 89 @benchmark.Enabled('android') # crbug.com/399125 |
87 @benchmark.Disabled('j', 'android') # crbug.com/399125 | |
88 class SmoothnessGpuRasterizationKeyMobileSites(benchmark.Benchmark): | 90 class SmoothnessGpuRasterizationKeyMobileSites(benchmark.Benchmark): |
89 """Measures rendering statistics for the key mobile sites with GPU | 91 """Measures rendering statistics for the key mobile sites with GPU |
90 rasterization | 92 rasterization |
91 """ | 93 """ |
92 tag = 'gpu_rasterization' | 94 tag = 'gpu_rasterization' |
93 test = smoothness.Smoothness | 95 test = smoothness.Smoothness |
94 page_set = page_sets.KeyMobileSitesPageSet | 96 page_set = page_sets.KeyMobileSitesPageSet |
95 def CustomizeBrowserOptions(self, options): | 97 def CustomizeBrowserOptions(self, options): |
96 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 98 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
97 | 99 |
98 | 100 |
99 @benchmark.Disabled('android') # crbug.com/399125 | 101 @benchmark.Disabled # crbug.com/399125 |
100 class SmoothnessGpuRasterizationKeySilkCases(benchmark.Benchmark): | 102 class SmoothnessGpuRasterizationKeySilkCases(benchmark.Benchmark): |
101 """Measures rendering statistics for the key silk cases with GPU rasterization | 103 """Measures rendering statistics for the key silk cases with GPU rasterization |
102 """ | 104 """ |
103 tag = 'gpu_rasterization' | 105 tag = 'gpu_rasterization' |
104 test = smoothness.Smoothness | 106 test = smoothness.Smoothness |
105 page_set = page_sets.KeySilkCasesPageSet | 107 page_set = page_sets.KeySilkCasesPageSet |
106 def CustomizeBrowserOptions(self, options): | 108 def CustomizeBrowserOptions(self, options): |
107 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 109 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
108 | 110 |
109 | 111 |
110 @benchmark.Disabled('android') # crbug.com/399125 | 112 @benchmark.Disabled # crbug.com/399125 |
111 class SmoothnessFastPathGpuRasterizationKeySilkCases( | 113 class SmoothnessFastPathGpuRasterizationKeySilkCases( |
112 SmoothnessGpuRasterizationKeySilkCases): | 114 SmoothnessGpuRasterizationKeySilkCases): |
113 """Measures rendering statistics for the key silk cases with GPU rasterization | 115 """Measures rendering statistics for the key silk cases with GPU rasterization |
114 using bleeding edge rendering fast paths. | 116 using bleeding edge rendering fast paths. |
115 """ | 117 """ |
116 tag = 'fast_path_gpu_rasterization' | 118 tag = 'fast_path_gpu_rasterization' |
117 test = smoothness.Smoothness | 119 test = smoothness.Smoothness |
118 page_set = page_sets.KeySilkCasesPageSet | 120 page_set = page_sets.KeySilkCasesPageSet |
119 def CustomizeBrowserOptions(self, options): | 121 def CustomizeBrowserOptions(self, options): |
120 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ | 122 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ |
(...skipping 12 matching lines...) Expand all Loading... |
133 | 135 |
134 @benchmark.Enabled('android') | 136 @benchmark.Enabled('android') |
135 class SmoothnessToughPinchZoomCases(benchmark.Benchmark): | 137 class SmoothnessToughPinchZoomCases(benchmark.Benchmark): |
136 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 138 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
137 cases | 139 cases |
138 """ | 140 """ |
139 test = smoothness.Smoothness | 141 test = smoothness.Smoothness |
140 page_set = page_sets.ToughPinchZoomCasesPageSet | 142 page_set = page_sets.ToughPinchZoomCasesPageSet |
141 | 143 |
142 | 144 |
| 145 @benchmark.Enabled('android') |
143 class SmoothnessPolymer(benchmark.Benchmark): | 146 class SmoothnessPolymer(benchmark.Benchmark): |
144 """Measures rendering statistics for Polymer cases. | 147 """Measures rendering statistics for Polymer cases. |
145 """ | 148 """ |
146 test = smoothness.Smoothness | 149 test = smoothness.Smoothness |
147 page_set = page_sets.PolymerPageSet | 150 page_set = page_sets.PolymerPageSet |
148 | 151 |
149 | 152 |
| 153 @benchmark.Enabled('android') |
150 class SmoothnessFastPathPolymer(benchmark.Benchmark): | 154 class SmoothnessFastPathPolymer(benchmark.Benchmark): |
151 """Measures rendering statistics for the Polymer cases without GPU | 155 """Measures rendering statistics for the Polymer cases without GPU |
152 rasterization using bleeding edge rendering fast paths. | 156 rasterization using bleeding edge rendering fast paths. |
153 """ | 157 """ |
154 tag = 'fast_path' | 158 tag = 'fast_path' |
155 test = smoothness.Smoothness | 159 test = smoothness.Smoothness |
156 page_set = page_sets.PolymerPageSet | 160 page_set = page_sets.PolymerPageSet |
157 def CustomizeBrowserOptions(self, options): | 161 def CustomizeBrowserOptions(self, options): |
158 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 162 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
159 | 163 |
160 # GPU rasterization does not work on J devices | 164 @benchmark.Enabled('android') # crbug.com/399125 |
161 @benchmark.Disabled('j', 'android') # crbug.com/399125 | |
162 class SmoothnessGpuRasterizationPolymer(benchmark.Benchmark): | 165 class SmoothnessGpuRasterizationPolymer(benchmark.Benchmark): |
163 """Measures rendering statistics for the Polymer cases with GPU rasterization | 166 """Measures rendering statistics for the Polymer cases with GPU rasterization |
164 """ | 167 """ |
165 tag = 'gpu_rasterization' | 168 tag = 'gpu_rasterization' |
166 test = smoothness.Smoothness | 169 test = smoothness.Smoothness |
167 page_set = page_sets.PolymerPageSet | 170 page_set = page_sets.PolymerPageSet |
168 def CustomizeBrowserOptions(self, options): | 171 def CustomizeBrowserOptions(self, options): |
169 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 172 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
170 | 173 |
171 | 174 |
172 @benchmark.Disabled('android') # crbug.com/399125 | 175 @benchmark.Disabled # crbug.com/399125 |
173 class SmoothnessFastPathGpuRasterizationPolymer( | 176 class SmoothnessFastPathGpuRasterizationPolymer( |
174 SmoothnessGpuRasterizationPolymer): | 177 SmoothnessGpuRasterizationPolymer): |
175 """Measures rendering statistics for the Polymer cases with GPU rasterization | 178 """Measures rendering statistics for the Polymer cases with GPU rasterization |
176 using bleeding edge rendering fast paths. | 179 using bleeding edge rendering fast paths. |
177 """ | 180 """ |
178 tag = 'fast_path_gpu_rasterization' | 181 tag = 'fast_path_gpu_rasterization' |
179 test = smoothness.Smoothness | 182 test = smoothness.Smoothness |
180 page_set = page_sets.PolymerPageSet | 183 page_set = page_sets.PolymerPageSet |
181 def CustomizeBrowserOptions(self, options): | 184 def CustomizeBrowserOptions(self, options): |
182 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ | 185 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ |
183 CustomizeBrowserOptions(options) | 186 CustomizeBrowserOptions(options) |
184 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 187 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
OLD | NEW |