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 | 5 |
6 from core import perf_benchmark | 6 from core import perf_benchmark |
7 | 7 |
8 from benchmarks import silk_flags | 8 from benchmarks import silk_flags |
9 from measurements import smoothness | 9 from measurements import smoothness |
10 import page_sets | 10 import page_sets |
(...skipping 19 matching lines...) Expand all Loading... |
30 @classmethod | 30 @classmethod |
31 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 31 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
32 del is_first_result # unused | 32 del is_first_result # unused |
33 if (value.name == 'first_gesture_scroll_update_latency' and | 33 if (value.name == 'first_gesture_scroll_update_latency' and |
34 value.page.url in cls._PAGES_WITHOUT_SCROLL_GESTURE_BLACKLIST and | 34 value.page.url in cls._PAGES_WITHOUT_SCROLL_GESTURE_BLACKLIST and |
35 value.values is None): | 35 value.values is None): |
36 return False | 36 return False |
37 return True | 37 return True |
38 | 38 |
39 | 39 |
40 @benchmark.Disabled('reference') # crbug.com/547833 | |
41 class SmoothnessTop25(_Smoothness): | 40 class SmoothnessTop25(_Smoothness): |
42 """Measures rendering statistics while scrolling down the top 25 web pages. | 41 """Measures rendering statistics while scrolling down the top 25 web pages. |
43 | 42 |
44 http://www.chromium.org/developers/design-documents/rendering-benchmarks | 43 http://www.chromium.org/developers/design-documents/rendering-benchmarks |
45 """ | 44 """ |
46 page_set = page_sets.Top25SmoothPageSet | 45 page_set = page_sets.Top25SmoothPageSet |
47 | 46 |
48 @classmethod | 47 @classmethod |
49 def Name(cls): | 48 def Name(cls): |
50 return 'smoothness.top_25_smooth' | 49 return 'smoothness.top_25_smooth' |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 stories = super(SmoothnessKeySilkCases, self).CreateStorySet(options) | 150 stories = super(SmoothnessKeySilkCases, self).CreateStorySet(options) |
152 # Page26 (befamous) is too noisy to be useful; crbug.com/461127 | 151 # Page26 (befamous) is too noisy to be useful; crbug.com/461127 |
153 to_remove = [story for story in stories | 152 to_remove = [story for story in stories |
154 if isinstance(story, page_sets.key_silk_cases.Page26)] | 153 if isinstance(story, page_sets.key_silk_cases.Page26)] |
155 for story in to_remove: | 154 for story in to_remove: |
156 stories.RemoveStory(story) | 155 stories.RemoveStory(story) |
157 return stories | 156 return stories |
158 | 157 |
159 | 158 |
160 @benchmark.Enabled('android', 'mac') | 159 @benchmark.Enabled('android', 'mac') |
161 @benchmark.Disabled('reference') # crbug.com/547833 | |
162 class SmoothnessGpuRasterizationTop25(_Smoothness): | 160 class SmoothnessGpuRasterizationTop25(_Smoothness): |
163 """Measures rendering statistics for the top 25 with GPU rasterization. | 161 """Measures rendering statistics for the top 25 with GPU rasterization. |
164 """ | 162 """ |
165 tag = 'gpu_rasterization' | 163 tag = 'gpu_rasterization' |
166 page_set = page_sets.Top25SmoothPageSet | 164 page_set = page_sets.Top25SmoothPageSet |
167 | 165 |
168 def SetExtraBrowserOptions(self, options): | 166 def SetExtraBrowserOptions(self, options): |
169 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 167 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
170 | 168 |
171 @classmethod | 169 @classmethod |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 509 |
512 | 510 |
513 @benchmark.Disabled('reference') # http://crbug.com/496684 | 511 @benchmark.Disabled('reference') # http://crbug.com/496684 |
514 class SmoothnessToughWebGLAdCases(_Smoothness): | 512 class SmoothnessToughWebGLAdCases(_Smoothness): |
515 """Measures rendering statistics while scrolling advertisements.""" | 513 """Measures rendering statistics while scrolling advertisements.""" |
516 page_set = page_sets.ToughWebglAdCasesPageSet | 514 page_set = page_sets.ToughWebglAdCasesPageSet |
517 | 515 |
518 @classmethod | 516 @classmethod |
519 def Name(cls): | 517 def Name(cls): |
520 return 'smoothness.tough_webgl_ad_cases' | 518 return 'smoothness.tough_webgl_ad_cases' |
OLD | NEW |