| 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 import multiprocessing |
| 4 | 5 |
| 5 from core import perf_benchmark | 6 from core import perf_benchmark |
| 6 | 7 |
| 7 from benchmarks import silk_flags | 8 from benchmarks import silk_flags |
| 8 from measurements import smoothness | 9 from measurements import smoothness |
| 9 import page_sets | 10 import page_sets |
| 10 import page_sets.key_silk_cases | 11 import page_sets.key_silk_cases |
| 11 from telemetry import benchmark | 12 from telemetry import benchmark |
| 12 | 13 |
| 13 | 14 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 @benchmark.Disabled('android-reference') # crbug.com/588786 | 133 @benchmark.Disabled('android-reference') # crbug.com/588786 |
| 133 @benchmark.Disabled('mac') # crbug.com/563615 | 134 @benchmark.Disabled('mac') # crbug.com/563615 |
| 134 class SmoothnessToughAnimationCases(_Smoothness): | 135 class SmoothnessToughAnimationCases(_Smoothness): |
| 135 test = smoothness.SmoothnessWithRestart | 136 test = smoothness.SmoothnessWithRestart |
| 136 page_set = page_sets.ToughAnimationCasesPageSet | 137 page_set = page_sets.ToughAnimationCasesPageSet |
| 137 | 138 |
| 138 @classmethod | 139 @classmethod |
| 139 def Name(cls): | 140 def Name(cls): |
| 140 return 'smoothness.tough_animation_cases' | 141 return 'smoothness.tough_animation_cases' |
| 141 | 142 |
| 143 @classmethod |
| 144 def ShouldDisable(cls, possible_browser): # http://crbug.com/595737 |
| 145 # This test is flaky on low-end windows machine. |
| 146 return (possible_browser.platform.GetOSName() == 'win' and |
| 147 multiprocessing.cpu_count() <= 2) |
| 148 |
| 142 | 149 |
| 143 @benchmark.Enabled('android') | 150 @benchmark.Enabled('android') |
| 144 class SmoothnessKeySilkCases(_Smoothness): | 151 class SmoothnessKeySilkCases(_Smoothness): |
| 145 """Measures rendering statistics for the key silk cases without GPU | 152 """Measures rendering statistics for the key silk cases without GPU |
| 146 rasterization. | 153 rasterization. |
| 147 """ | 154 """ |
| 148 page_set = page_sets.KeySilkCasesPageSet | 155 page_set = page_sets.KeySilkCasesPageSet |
| 149 | 156 |
| 150 @classmethod | 157 @classmethod |
| 151 def Name(cls): | 158 def Name(cls): |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 """Measures rendering statistics while scrolling advertisements.""" | 526 """Measures rendering statistics while scrolling advertisements.""" |
| 520 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 527 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 521 | 528 |
| 522 @classmethod | 529 @classmethod |
| 523 def Name(cls): | 530 def Name(cls): |
| 524 return 'smoothness.tough_webgl_ad_cases' | 531 return 'smoothness.tough_webgl_ad_cases' |
| 525 | 532 |
| 526 @classmethod | 533 @classmethod |
| 527 def ShouldDisable(cls, possible_browser): | 534 def ShouldDisable(cls, possible_browser): |
| 528 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 535 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |