Chromium Code Reviews| 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 from measurements import smoothness | 6 from measurements import smoothness |
| 7 import page_sets | 7 import page_sets |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 | 9 |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 | 149 |
| 150 def CustomizeBrowserOptions(self, options): | 150 def CustomizeBrowserOptions(self, options): |
| 151 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) | 151 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) |
| 152 | 152 |
| 153 @classmethod | 153 @classmethod |
| 154 def Name(cls): | 154 def Name(cls): |
| 155 return 'smoothness.sync_scroll.key_mobile_sites_smooth' | 155 return 'smoothness.sync_scroll.key_mobile_sites_smooth' |
| 156 | 156 |
| 157 | 157 |
| 158 @benchmark.Enabled('android') | 158 @benchmark.Enabled('android') |
| 159 class SmoothnessSyncScrollKeyMobileSitesRerun(benchmark.Benchmark): | |
| 160 """Same as SmoothnessSyncScrollKeyMobileSites but each page runs twice and | |
| 161 only the second run's result is used. This is to test the impact of cache | |
| 162 optimization. | |
| 163 """ | |
|
jdduke (slow)
2015/02/27 23:36:03
It seems overkill to repeat the entire pageset (x2
| |
| 164 tag = 'sync_scroll' | |
| 165 test = smoothness.SmoothnessDiscardFirstResult | |
| 166 page_set = page_sets.KeyMobileSitesSmoothPageSet | |
| 167 options = {'page_repeat': 2} | |
| 168 | |
| 169 def CustomizeBrowserOptions(self, options): | |
| 170 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) | |
| 171 | |
| 172 @classmethod | |
| 173 def Name(cls): | |
| 174 return 'smoothness.sync_scroll.key_mobile_sites_smooth.rerun' | |
| 175 | |
| 176 | |
| 177 @benchmark.Enabled('android') | |
| 159 class SmoothnessSimpleMobilePages(benchmark.Benchmark): | 178 class SmoothnessSimpleMobilePages(benchmark.Benchmark): |
| 160 """Measures rendering statistics for simple mobile sites page set. | 179 """Measures rendering statistics for simple mobile sites page set. |
| 161 """ | 180 """ |
| 162 test = smoothness.Smoothness | 181 test = smoothness.Smoothness |
| 163 page_set = page_sets.SimpleMobileSitesPageSet | 182 page_set = page_sets.SimpleMobileSitesPageSet |
| 164 | 183 |
| 165 @classmethod | 184 @classmethod |
| 166 def Name(cls): | 185 def Name(cls): |
| 167 return 'smoothness.simple_mobile_sites' | 186 return 'smoothness.simple_mobile_sites' |
| 168 | 187 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 @benchmark.Enabled('android') | 272 @benchmark.Enabled('android') |
| 254 class SmoothnessPathologicalMobileSites(benchmark.Benchmark): | 273 class SmoothnessPathologicalMobileSites(benchmark.Benchmark): |
| 255 """Measures task execution statistics while scrolling pathological sites. | 274 """Measures task execution statistics while scrolling pathological sites. |
| 256 """ | 275 """ |
| 257 test = smoothness.Smoothness | 276 test = smoothness.Smoothness |
| 258 page_set = page_sets.PathologicalMobileSitesPageSet | 277 page_set = page_sets.PathologicalMobileSitesPageSet |
| 259 | 278 |
| 260 @classmethod | 279 @classmethod |
| 261 def Name(cls): | 280 def Name(cls): |
| 262 return 'smoothness.pathological_mobile_sites' | 281 return 'smoothness.pathological_mobile_sites' |
| OLD | NEW |