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 core import perf_benchmark | 5 from core import perf_benchmark |
6 | 6 |
7 from benchmarks import silk_flags | 7 from benchmarks import silk_flags |
8 from measurements import smoothness | 8 from measurements import smoothness |
9 import page_sets | 9 import page_sets |
10 import page_sets.key_silk_cases | 10 import page_sets.key_silk_cases |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 def CreateStorySet(self, options): | 130 def CreateStorySet(self, options): |
131 stories = super(SmoothnessKeySilkCases, self).CreateStorySet(options) | 131 stories = super(SmoothnessKeySilkCases, self).CreateStorySet(options) |
132 # Page26 (befamous) is too noisy to be useful; crbug.com/461127 | 132 # Page26 (befamous) is too noisy to be useful; crbug.com/461127 |
133 to_remove = [story for story in stories | 133 to_remove = [story for story in stories |
134 if isinstance(story, page_sets.key_silk_cases.Page26)] | 134 if isinstance(story, page_sets.key_silk_cases.Page26)] |
135 for story in to_remove: | 135 for story in to_remove: |
136 stories.RemoveStory(story) | 136 stories.RemoveStory(story) |
137 return stories | 137 return stories |
138 | 138 |
139 | 139 |
140 @benchmark.Enabled('android') | |
141 class SmoothnessGpuRasterizationTop25(perf_benchmark.PerfBenchmark): | 140 class SmoothnessGpuRasterizationTop25(perf_benchmark.PerfBenchmark): |
vmiura
2015/09/23 21:01:52
Should we stick to Android & Mac for now?
ericrk
2015/09/28 22:43:27
Either way seems fine to me - not bad to start col
| |
142 """Measures rendering statistics for the top 25 with GPU rasterization. | 141 """Measures rendering statistics for the top 25 with GPU rasterization. |
143 """ | 142 """ |
144 tag = 'gpu_rasterization' | 143 tag = 'gpu_rasterization' |
145 test = smoothness.Smoothness | 144 test = smoothness.Smoothness |
146 page_set = page_sets.Top25SmoothPageSet | 145 page_set = page_sets.Top25SmoothPageSet |
147 | 146 |
148 def SetExtraBrowserOptions(self, options): | 147 def SetExtraBrowserOptions(self, options): |
149 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 148 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
150 | 149 |
151 @classmethod | 150 @classmethod |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 # orthogonal to fling performance, and its activation is only more noise. | 244 # orthogonal to fling performance, and its activation is only more noise. |
246 options.AppendExtraBrowserArgs('--disable-overscroll-edge-effect') | 245 options.AppendExtraBrowserArgs('--disable-overscroll-edge-effect') |
247 | 246 |
248 @classmethod | 247 @classmethod |
249 def Name(cls): | 248 def Name(cls): |
250 return 'smoothness.fling.simple_mobile_sites' | 249 return 'smoothness.fling.simple_mobile_sites' |
251 | 250 |
252 | 251 |
253 @benchmark.Enabled('android', 'chromeos', 'mac') | 252 @benchmark.Enabled('android', 'chromeos', 'mac') |
254 class SmoothnessToughPinchZoomCases(perf_benchmark.PerfBenchmark): | 253 class SmoothnessToughPinchZoomCases(perf_benchmark.PerfBenchmark): |
255 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 254 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
256 cases. | 255 cases. |
257 """ | 256 """ |
258 test = smoothness.Smoothness | 257 test = smoothness.Smoothness |
259 page_set = page_sets.ToughPinchZoomCasesPageSet | 258 page_set = page_sets.ToughPinchZoomCasesPageSet |
260 | 259 |
261 @classmethod | 260 @classmethod |
262 def Name(cls): | 261 def Name(cls): |
263 return 'smoothness.tough_pinch_zoom_cases' | 262 return 'smoothness.tough_pinch_zoom_cases' |
264 | 263 |
265 | 264 |
265 @benchmark.Enabled('android', 'chromeos', 'mac') | |
266 class SmoothnessGpuRasterizationToughPinchZoomCases( | |
267 perf_benchmark.PerfBenchmark): | |
268 """Measures rendering statistics for pinch-zooming in the tough pinch zoom | |
269 cases with GPU rasterization. | |
270 """ | |
271 tag = 'gpu_rasterization' | |
272 test = smoothness.Smoothness | |
273 page_set = page_sets.ToughPinchZoomCasesPageSet | |
274 | |
275 def SetExtraBrowserOptions(self, options): | |
276 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | |
277 | |
278 @classmethod | |
279 def Name(cls): | |
280 return 'smoothness.gpu_rasterization.tough_pinch_zoom_cases' | |
281 | |
282 | |
266 @benchmark.Enabled('android', 'chromeos') | 283 @benchmark.Enabled('android', 'chromeos') |
267 class SmoothnessToughScrollingWhileZoomedInCases(perf_benchmark.PerfBenchmark): | 284 class SmoothnessToughScrollingWhileZoomedInCases(perf_benchmark.PerfBenchmark): |
268 """Measures rendering statistics for pinch-zooming then diagonal scrolling""" | 285 """Measures rendering statistics for pinch-zooming then diagonal scrolling""" |
269 test = smoothness.Smoothness | 286 test = smoothness.Smoothness |
270 page_set = page_sets.ToughScrollingWhileZoomedInCasesPageSet | 287 page_set = page_sets.ToughScrollingWhileZoomedInCasesPageSet |
271 | 288 |
272 @classmethod | 289 @classmethod |
273 def Name(cls): | 290 def Name(cls): |
274 return 'smoothness.tough_scrolling_while_zoomed_in_cases' | 291 return 'smoothness.tough_scrolling_while_zoomed_in_cases' |
275 | 292 |
(...skipping 27 matching lines...) Expand all Loading... | |
303 | 320 |
304 | 321 |
305 class SmoothnessToughScrollingCases(perf_benchmark.PerfBenchmark): | 322 class SmoothnessToughScrollingCases(perf_benchmark.PerfBenchmark): |
306 test = smoothness.Smoothness | 323 test = smoothness.Smoothness |
307 page_set = page_sets.ToughScrollingCasesPageSet | 324 page_set = page_sets.ToughScrollingCasesPageSet |
308 | 325 |
309 @classmethod | 326 @classmethod |
310 def Name(cls): | 327 def Name(cls): |
311 return 'smoothness.tough_scrolling_cases' | 328 return 'smoothness.tough_scrolling_cases' |
312 | 329 |
330 class SmoothnessGpuRasterizationToughScrollingCases( | |
vmiura
2015/09/23 21:01:52
Same, Android & Mac?
ericrk
2015/09/28 22:43:27
Done.
| |
331 perf_benchmark.PerfBenchmark): | |
332 tag = 'gpu_rasterization' | |
333 test = smoothness.Smoothness | |
334 page_set = page_sets.ToughScrollingCasesPageSet | |
335 | |
336 def SetExtraBrowserOptions(self, options): | |
337 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | |
338 | |
339 @classmethod | |
340 def Name(cls): | |
341 return 'smoothness.gpu_rasterization.tough_scrolling_cases' | |
342 | |
313 @benchmark.Disabled('android') # http://crbug.com/531593 | 343 @benchmark.Disabled('android') # http://crbug.com/531593 |
314 class SmoothnessToughImageDecodeCases(perf_benchmark.PerfBenchmark): | 344 class SmoothnessToughImageDecodeCases(perf_benchmark.PerfBenchmark): |
315 test = smoothness.Smoothness | 345 test = smoothness.Smoothness |
316 page_set = page_sets.ToughImageDecodeCasesPageSet | 346 page_set = page_sets.ToughImageDecodeCasesPageSet |
317 | 347 |
318 @classmethod | 348 @classmethod |
319 def Name(cls): | 349 def Name(cls): |
320 return 'smoothness.tough_image_decode_cases' | 350 return 'smoothness.tough_image_decode_cases' |
321 | 351 |
322 @benchmark.Disabled('android') # http://crbug.com/513699 | 352 @benchmark.Disabled('android') # http://crbug.com/513699 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
428 | 458 |
429 @benchmark.Disabled('reference') # http://crbug.com/496684 | 459 @benchmark.Disabled('reference') # http://crbug.com/496684 |
430 class SmoothnessToughWebGLAdCases(perf_benchmark.PerfBenchmark): | 460 class SmoothnessToughWebGLAdCases(perf_benchmark.PerfBenchmark): |
431 """Measures rendering statistics while scrolling advertisements.""" | 461 """Measures rendering statistics while scrolling advertisements.""" |
432 test = smoothness.Smoothness | 462 test = smoothness.Smoothness |
433 page_set = page_sets.ToughWebglAdCasesPageSet | 463 page_set = page_sets.ToughWebglAdCasesPageSet |
434 | 464 |
435 @classmethod | 465 @classmethod |
436 def Name(cls): | 466 def Name(cls): |
437 return 'smoothness.tough_webgl_ad_cases' | 467 return 'smoothness.tough_webgl_ad_cases' |
OLD | NEW |