| 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 import page_sets | 6 import page_sets |
| 7 from measurements import smoothness | 7 from measurements import smoothness |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 | 9 |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 @benchmark.Enabled('android') | 56 @benchmark.Enabled('android') |
| 57 class SmoothnessKeySilkCases(benchmark.Benchmark): | 57 class SmoothnessKeySilkCases(benchmark.Benchmark): |
| 58 """Measures rendering statistics for the key silk cases without GPU | 58 """Measures rendering statistics for the key silk cases without GPU |
| 59 rasterization | 59 rasterization |
| 60 """ | 60 """ |
| 61 test = smoothness.Smoothness | 61 test = smoothness.Smoothness |
| 62 page_set = page_sets.KeySilkCasesPageSet | 62 page_set = page_sets.KeySilkCasesPageSet |
| 63 | 63 |
| 64 | 64 |
| 65 @benchmark.Enabled('android') | 65 @benchmark.Enabled('android') |
| 66 class SmoothnessFastPathKeySilkCases(benchmark.Benchmark): | |
| 67 """Measures rendering statistics for the key silk cases without GPU | |
| 68 rasterization using bleeding edge rendering fast paths. | |
| 69 """ | |
| 70 tag = 'fast_path' | |
| 71 test = smoothness.Smoothness | |
| 72 page_set = page_sets.KeySilkCasesPageSet | |
| 73 def CustomizeBrowserOptions(self, options): | |
| 74 silk_flags.CustomizeBrowserOptionsForFastPath(options) | |
| 75 | |
| 76 | |
| 77 @benchmark.Enabled('android') # crbug.com/399125 | |
| 78 class SmoothnessGpuRasterizationTop25(benchmark.Benchmark): | 66 class SmoothnessGpuRasterizationTop25(benchmark.Benchmark): |
| 79 """Measures rendering statistics for the top 25 with GPU rasterization | 67 """Measures rendering statistics for the top 25 with GPU rasterization |
| 80 """ | 68 """ |
| 81 tag = 'gpu_rasterization' | 69 tag = 'gpu_rasterization' |
| 82 test = smoothness.Smoothness | 70 test = smoothness.Smoothness |
| 83 page_set = page_sets.Top25PageSet | 71 page_set = page_sets.Top25PageSet |
| 84 def CustomizeBrowserOptions(self, options): | 72 def CustomizeBrowserOptions(self, options): |
| 85 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 73 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 86 | 74 |
| 87 | 75 |
| 88 @benchmark.Enabled('android') # crbug.com/399125 | 76 @benchmark.Enabled('android') |
| 89 class SmoothnessGpuRasterizationKeyMobileSites(benchmark.Benchmark): | 77 class SmoothnessGpuRasterizationKeyMobileSites(benchmark.Benchmark): |
| 90 """Measures rendering statistics for the key mobile sites with GPU | 78 """Measures rendering statistics for the key mobile sites with GPU |
| 91 rasterization | 79 rasterization |
| 92 """ | 80 """ |
| 93 tag = 'gpu_rasterization' | 81 tag = 'gpu_rasterization' |
| 94 test = smoothness.Smoothness | 82 test = smoothness.Smoothness |
| 95 page_set = page_sets.KeyMobileSitesPageSet | 83 page_set = page_sets.KeyMobileSitesPageSet |
| 96 def CustomizeBrowserOptions(self, options): | 84 def CustomizeBrowserOptions(self, options): |
| 97 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 85 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 98 | 86 |
| 99 | 87 |
| 100 @benchmark.Disabled # crbug.com/399125 | |
| 101 class SmoothnessGpuRasterizationKeySilkCases(benchmark.Benchmark): | |
| 102 """Measures rendering statistics for the key silk cases with GPU rasterization | |
| 103 """ | |
| 104 tag = 'gpu_rasterization' | |
| 105 test = smoothness.Smoothness | |
| 106 page_set = page_sets.KeySilkCasesPageSet | |
| 107 def CustomizeBrowserOptions(self, options): | |
| 108 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | |
| 109 | |
| 110 | |
| 111 @benchmark.Disabled # crbug.com/399125 | |
| 112 class SmoothnessFastPathGpuRasterizationKeySilkCases( | |
| 113 SmoothnessGpuRasterizationKeySilkCases): | |
| 114 """Measures rendering statistics for the key silk cases with GPU rasterization | |
| 115 using bleeding edge rendering fast paths. | |
| 116 """ | |
| 117 tag = 'fast_path_gpu_rasterization' | |
| 118 test = smoothness.Smoothness | |
| 119 page_set = page_sets.KeySilkCasesPageSet | |
| 120 def CustomizeBrowserOptions(self, options): | |
| 121 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ | |
| 122 CustomizeBrowserOptions(options) | |
| 123 silk_flags.CustomizeBrowserOptionsForFastPath(options) | |
| 124 | |
| 125 @benchmark.Enabled('android') | 88 @benchmark.Enabled('android') |
| 126 class SmoothnessSyncScrollKeyMobileSites(benchmark.Benchmark): | 89 class SmoothnessSyncScrollKeyMobileSites(benchmark.Benchmark): |
| 127 """Measures rendering statistics for the key mobile sites with synchronous | 90 """Measures rendering statistics for the key mobile sites with synchronous |
| 128 (main thread) scrolling. | 91 (main thread) scrolling. |
| 129 """ | 92 """ |
| 130 tag = 'sync_scroll' | 93 tag = 'sync_scroll' |
| 131 test = smoothness.Smoothness | 94 test = smoothness.Smoothness |
| 132 page_set = page_sets.KeyMobileSitesPageSet | 95 page_set = page_sets.KeyMobileSitesPageSet |
| 133 def CustomizeBrowserOptions(self, options): | 96 def CustomizeBrowserOptions(self, options): |
| 134 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) | 97 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 151 | 114 |
| 152 @benchmark.Enabled('android') | 115 @benchmark.Enabled('android') |
| 153 class SmoothnessPolymer(benchmark.Benchmark): | 116 class SmoothnessPolymer(benchmark.Benchmark): |
| 154 """Measures rendering statistics for Polymer cases. | 117 """Measures rendering statistics for Polymer cases. |
| 155 """ | 118 """ |
| 156 test = smoothness.Smoothness | 119 test = smoothness.Smoothness |
| 157 page_set = page_sets.PolymerPageSet | 120 page_set = page_sets.PolymerPageSet |
| 158 | 121 |
| 159 | 122 |
| 160 @benchmark.Enabled('android') | 123 @benchmark.Enabled('android') |
| 161 class SmoothnessFastPathPolymer(benchmark.Benchmark): | |
| 162 """Measures rendering statistics for the Polymer cases without GPU | |
| 163 rasterization using bleeding edge rendering fast paths. | |
| 164 """ | |
| 165 tag = 'fast_path' | |
| 166 test = smoothness.Smoothness | |
| 167 page_set = page_sets.PolymerPageSet | |
| 168 def CustomizeBrowserOptions(self, options): | |
| 169 silk_flags.CustomizeBrowserOptionsForFastPath(options) | |
| 170 | |
| 171 @benchmark.Enabled('android') # crbug.com/399125 | |
| 172 class SmoothnessGpuRasterizationPolymer(benchmark.Benchmark): | 124 class SmoothnessGpuRasterizationPolymer(benchmark.Benchmark): |
| 173 """Measures rendering statistics for the Polymer cases with GPU rasterization | 125 """Measures rendering statistics for the Polymer cases with GPU rasterization |
| 174 """ | 126 """ |
| 175 tag = 'gpu_rasterization' | 127 tag = 'gpu_rasterization' |
| 176 test = smoothness.Smoothness | 128 test = smoothness.Smoothness |
| 177 page_set = page_sets.PolymerPageSet | 129 page_set = page_sets.PolymerPageSet |
| 178 def CustomizeBrowserOptions(self, options): | 130 def CustomizeBrowserOptions(self, options): |
| 179 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 131 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 180 | |
| 181 | |
| 182 @benchmark.Disabled # crbug.com/399125 | |
| 183 class SmoothnessFastPathGpuRasterizationPolymer( | |
| 184 SmoothnessGpuRasterizationPolymer): | |
| 185 """Measures rendering statistics for the Polymer cases with GPU rasterization | |
| 186 using bleeding edge rendering fast paths. | |
| 187 """ | |
| 188 tag = 'fast_path_gpu_rasterization' | |
| 189 test = smoothness.Smoothness | |
| 190 page_set = page_sets.PolymerPageSet | |
| 191 def CustomizeBrowserOptions(self, options): | |
| 192 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ | |
| 193 CustomizeBrowserOptions(options) | |
| 194 silk_flags.CustomizeBrowserOptionsForFastPath(options) | |
| OLD | NEW |