| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 def CreateStorySet(self, options): | 146 def CreateStorySet(self, options): |
| 147 stories = super(SmoothnessKeySilkCases, self).CreateStorySet(options) | 147 stories = super(SmoothnessKeySilkCases, self).CreateStorySet(options) |
| 148 # Page26 (befamous) is too noisy to be useful; crbug.com/461127 | 148 # Page26 (befamous) is too noisy to be useful; crbug.com/461127 |
| 149 to_remove = [story for story in stories | 149 to_remove = [story for story in stories |
| 150 if isinstance(story, page_sets.key_silk_cases.Page26)] | 150 if isinstance(story, page_sets.key_silk_cases.Page26)] |
| 151 for story in to_remove: | 151 for story in to_remove: |
| 152 stories.RemoveStory(story) | 152 stories.RemoveStory(story) |
| 153 return stories | 153 return stories |
| 154 | 154 |
| 155 | 155 |
| 156 @benchmark.Enabled('android') | 156 @benchmark.Enabled('android', "mac") |
| 157 class SmoothnessGpuRasterizationTop25(_Smoothness): | 157 class SmoothnessGpuRasterizationTop25(_Smoothness): |
| 158 """Measures rendering statistics for the top 25 with GPU rasterization. | 158 """Measures rendering statistics for the top 25 with GPU rasterization. |
| 159 """ | 159 """ |
| 160 tag = 'gpu_rasterization' | 160 tag = 'gpu_rasterization' |
| 161 page_set = page_sets.Top25SmoothPageSet | 161 page_set = page_sets.Top25SmoothPageSet |
| 162 | 162 |
| 163 def SetExtraBrowserOptions(self, options): | 163 def SetExtraBrowserOptions(self, options): |
| 164 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 164 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 165 | 165 |
| 166 @classmethod | 166 @classmethod |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 # orthogonal to fling performance, and its activation is only more noise. | 253 # orthogonal to fling performance, and its activation is only more noise. |
| 254 options.AppendExtraBrowserArgs('--disable-overscroll-edge-effect') | 254 options.AppendExtraBrowserArgs('--disable-overscroll-edge-effect') |
| 255 | 255 |
| 256 @classmethod | 256 @classmethod |
| 257 def Name(cls): | 257 def Name(cls): |
| 258 return 'smoothness.fling.simple_mobile_sites' | 258 return 'smoothness.fling.simple_mobile_sites' |
| 259 | 259 |
| 260 | 260 |
| 261 @benchmark.Enabled('android', 'chromeos', 'mac') | 261 @benchmark.Enabled('android', 'chromeos', 'mac') |
| 262 class SmoothnessToughPinchZoomCases(_Smoothness): | 262 class SmoothnessToughPinchZoomCases(_Smoothness): |
| 263 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 263 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
| 264 cases. | 264 cases. |
| 265 """ | 265 """ |
| 266 page_set = page_sets.ToughPinchZoomCasesPageSet | 266 page_set = page_sets.ToughPinchZoomCasesPageSet |
| 267 | 267 |
| 268 @classmethod | 268 @classmethod |
| 269 def Name(cls): | 269 def Name(cls): |
| 270 return 'smoothness.tough_pinch_zoom_cases' | 270 return 'smoothness.tough_pinch_zoom_cases' |
| 271 | 271 |
| 272 | 272 |
| 273 @benchmark.Enabled('android', 'chromeos', 'mac') |
| 274 class SmoothnessGpuRasterizationToughPinchZoomCases(_Smoothness): |
| 275 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
| 276 cases with GPU rasterization. |
| 277 """ |
| 278 tag = 'gpu_rasterization' |
| 279 test = smoothness.Smoothness |
| 280 page_set = page_sets.ToughPinchZoomCasesPageSet |
| 281 |
| 282 def SetExtraBrowserOptions(self, options): |
| 283 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 284 |
| 285 @classmethod |
| 286 def Name(cls): |
| 287 return 'smoothness.gpu_rasterization.tough_pinch_zoom_cases' |
| 288 |
| 289 |
| 273 @benchmark.Enabled('android', 'chromeos') | 290 @benchmark.Enabled('android', 'chromeos') |
| 274 class SmoothnessToughScrollingWhileZoomedInCases(_Smoothness): | 291 class SmoothnessToughScrollingWhileZoomedInCases(_Smoothness): |
| 275 """Measures rendering statistics for pinch-zooming then diagonal scrolling""" | 292 """Measures rendering statistics for pinch-zooming then diagonal scrolling""" |
| 276 page_set = page_sets.ToughScrollingWhileZoomedInCasesPageSet | 293 page_set = page_sets.ToughScrollingWhileZoomedInCasesPageSet |
| 277 | 294 |
| 278 @classmethod | 295 @classmethod |
| 279 def Name(cls): | 296 def Name(cls): |
| 280 return 'smoothness.tough_scrolling_while_zoomed_in_cases' | 297 return 'smoothness.tough_scrolling_while_zoomed_in_cases' |
| 281 | 298 |
| 282 | 299 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 306 return 'smoothness.gpu_rasterization.polymer' | 323 return 'smoothness.gpu_rasterization.polymer' |
| 307 | 324 |
| 308 | 325 |
| 309 class SmoothnessToughScrollingCases(_Smoothness): | 326 class SmoothnessToughScrollingCases(_Smoothness): |
| 310 page_set = page_sets.ToughScrollingCasesPageSet | 327 page_set = page_sets.ToughScrollingCasesPageSet |
| 311 | 328 |
| 312 @classmethod | 329 @classmethod |
| 313 def Name(cls): | 330 def Name(cls): |
| 314 return 'smoothness.tough_scrolling_cases' | 331 return 'smoothness.tough_scrolling_cases' |
| 315 | 332 |
| 333 |
| 334 @benchmark.Enabled('android', "mac") |
| 335 class SmoothnessGpuRasterizationToughScrollingCases(_Smoothness): |
| 336 tag = 'gpu_rasterization' |
| 337 test = smoothness.Smoothness |
| 338 page_set = page_sets.ToughScrollingCasesPageSet |
| 339 |
| 340 def SetExtraBrowserOptions(self, options): |
| 341 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 342 |
| 343 @classmethod |
| 344 def Name(cls): |
| 345 return 'smoothness.gpu_rasterization.tough_scrolling_cases' |
| 346 |
| 316 @benchmark.Disabled('android') # http://crbug.com/531593 | 347 @benchmark.Disabled('android') # http://crbug.com/531593 |
| 317 class SmoothnessToughImageDecodeCases(_Smoothness): | 348 class SmoothnessToughImageDecodeCases(_Smoothness): |
| 318 page_set = page_sets.ToughImageDecodeCasesPageSet | 349 page_set = page_sets.ToughImageDecodeCasesPageSet |
| 319 | 350 |
| 320 @classmethod | 351 @classmethod |
| 321 def Name(cls): | 352 def Name(cls): |
| 322 return 'smoothness.tough_image_decode_cases' | 353 return 'smoothness.tough_image_decode_cases' |
| 323 | 354 |
| 324 @benchmark.Disabled('android') # http://crbug.com/513699 | 355 @benchmark.Disabled('android') # http://crbug.com/513699 |
| 325 class SmoothnessImageDecodingCases(_Smoothness): | 356 class SmoothnessImageDecodingCases(_Smoothness): |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 451 |
| 421 | 452 |
| 422 @benchmark.Disabled('reference') # http://crbug.com/496684 | 453 @benchmark.Disabled('reference') # http://crbug.com/496684 |
| 423 class SmoothnessToughWebGLAdCases(_Smoothness): | 454 class SmoothnessToughWebGLAdCases(_Smoothness): |
| 424 """Measures rendering statistics while scrolling advertisements.""" | 455 """Measures rendering statistics while scrolling advertisements.""" |
| 425 page_set = page_sets.ToughWebglAdCasesPageSet | 456 page_set = page_sets.ToughWebglAdCasesPageSet |
| 426 | 457 |
| 427 @classmethod | 458 @classmethod |
| 428 def Name(cls): | 459 def Name(cls): |
| 429 return 'smoothness.tough_webgl_ad_cases' | 460 return 'smoothness.tough_webgl_ad_cases' |
| OLD | NEW |