| 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 telemetry import test | 5 from telemetry import 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 | 10 |
| 11 | 11 |
| 12 class SmoothnessTop25(test.Test): | 12 class SmoothnessTop25(benchmark.Benchmark): |
| 13 """Measures rendering statistics while scrolling down the top 25 web pages. | 13 """Measures rendering statistics while scrolling down the top 25 web pages. |
| 14 | 14 |
| 15 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 15 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 16 test = smoothness.Smoothness | 16 test = smoothness.Smoothness |
| 17 page_set = page_sets.Top25PageSet | 17 page_set = page_sets.Top25PageSet |
| 18 | 18 |
| 19 | 19 |
| 20 @test.Disabled('mac') # crbug.com/388877 | 20 @benchmark.Disabled('mac') # crbug.com/388877 |
| 21 class SmoothnessToughCanvasCases(test.Test): | 21 class SmoothnessToughCanvasCases(benchmark.Benchmark): |
| 22 test = smoothness.Smoothness | 22 test = smoothness.Smoothness |
| 23 page_set = page_sets.ToughCanvasCasesPageSet | 23 page_set = page_sets.ToughCanvasCasesPageSet |
| 24 | 24 |
| 25 | 25 |
| 26 @test.Disabled # crbug.com/373812 | 26 @benchmark.Disabled # crbug.com/373812 |
| 27 class SmoothnessToughWebGLCases(test.Test): | 27 class SmoothnessToughWebGLCases(benchmark.Benchmark): |
| 28 test = smoothness.Smoothness | 28 test = smoothness.Smoothness |
| 29 page_set = page_sets.ToughWebglCasesPageSet | 29 page_set = page_sets.ToughWebglCasesPageSet |
| 30 | 30 |
| 31 | 31 |
| 32 class SmoothnessMaps(test.Test): | 32 class SmoothnessMaps(benchmark.Benchmark): |
| 33 test = smoothness.Smoothness | 33 test = smoothness.Smoothness |
| 34 page_set = page_sets.MapsPageSet | 34 page_set = page_sets.MapsPageSet |
| 35 | 35 |
| 36 | 36 |
| 37 class SmoothnessKeyMobileSites(test.Test): | 37 class SmoothnessKeyMobileSites(benchmark.Benchmark): |
| 38 """Measures rendering statistics while scrolling down the key mobile sites. | 38 """Measures rendering statistics while scrolling down the key mobile sites. |
| 39 | 39 |
| 40 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 40 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 41 test = smoothness.Smoothness | 41 test = smoothness.Smoothness |
| 42 page_set = page_sets.KeyMobileSitesPageSet | 42 page_set = page_sets.KeyMobileSitesPageSet |
| 43 | 43 |
| 44 | 44 |
| 45 @test.Disabled('android') # crbug.com/350692 | 45 @benchmark.Disabled('android') # crbug.com/350692 |
| 46 class SmoothnessToughAnimationCases(test.Test): | 46 class SmoothnessToughAnimationCases(benchmark.Benchmark): |
| 47 test = smoothness.Smoothness | 47 test = smoothness.Smoothness |
| 48 page_set = page_sets.ToughAnimationCasesPageSet | 48 page_set = page_sets.ToughAnimationCasesPageSet |
| 49 | 49 |
| 50 | 50 |
| 51 class SmoothnessKeySilkCases(test.Test): | 51 class SmoothnessKeySilkCases(benchmark.Benchmark): |
| 52 """Measures rendering statistics for the key silk cases without GPU | 52 """Measures rendering statistics for the key silk cases without GPU |
| 53 rasterization | 53 rasterization |
| 54 """ | 54 """ |
| 55 test = smoothness.Smoothness | 55 test = smoothness.Smoothness |
| 56 page_set = page_sets.KeySilkCasesPageSet | 56 page_set = page_sets.KeySilkCasesPageSet |
| 57 | 57 |
| 58 | 58 |
| 59 class SmoothnessFastPathKeySilkCases(test.Test): | 59 class SmoothnessFastPathKeySilkCases(benchmark.Benchmark): |
| 60 """Measures rendering statistics for the key silk cases without GPU | 60 """Measures rendering statistics for the key silk cases without GPU |
| 61 rasterization using bleeding edge rendering fast paths. | 61 rasterization using bleeding edge rendering fast paths. |
| 62 """ | 62 """ |
| 63 tag = 'fast_path' | 63 tag = 'fast_path' |
| 64 test = smoothness.Smoothness | 64 test = smoothness.Smoothness |
| 65 page_set = page_sets.KeySilkCasesPageSet | 65 page_set = page_sets.KeySilkCasesPageSet |
| 66 def CustomizeBrowserOptions(self, options): | 66 def CustomizeBrowserOptions(self, options): |
| 67 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 67 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 68 | 68 |
| 69 | 69 |
| 70 @test.Disabled('android') # crbug.com/363783 | 70 @benchmark.Disabled('android') # crbug.com/363783 |
| 71 class SmoothnessGpuRasterizationTop25(test.Test): | 71 class SmoothnessGpuRasterizationTop25(benchmark.Benchmark): |
| 72 """Measures rendering statistics for the top 25 with GPU rasterization | 72 """Measures rendering statistics for the top 25 with GPU rasterization |
| 73 """ | 73 """ |
| 74 tag = 'gpu_rasterization' | 74 tag = 'gpu_rasterization' |
| 75 test = smoothness.Smoothness | 75 test = smoothness.Smoothness |
| 76 page_set = page_sets.Top25PageSet | 76 page_set = page_sets.Top25PageSet |
| 77 def CustomizeBrowserOptions(self, options): | 77 def CustomizeBrowserOptions(self, options): |
| 78 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 78 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 79 | 79 |
| 80 | 80 |
| 81 @test.Disabled('android') # crbug.com/363783 | 81 @benchmark.Disabled('android') # crbug.com/363783 |
| 82 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): | 82 class SmoothnessGpuRasterizationKeyMobileSites(benchmark.Benchmark): |
| 83 """Measures rendering statistics for the key mobile sites with GPU | 83 """Measures rendering statistics for the key mobile sites with GPU |
| 84 rasterization | 84 rasterization |
| 85 """ | 85 """ |
| 86 tag = 'gpu_rasterization' | 86 tag = 'gpu_rasterization' |
| 87 test = smoothness.Smoothness | 87 test = smoothness.Smoothness |
| 88 page_set = page_sets.KeyMobileSitesPageSet | 88 page_set = page_sets.KeyMobileSitesPageSet |
| 89 def CustomizeBrowserOptions(self, options): | 89 def CustomizeBrowserOptions(self, options): |
| 90 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 90 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 91 | 91 |
| 92 | 92 |
| 93 class SmoothnessGpuRasterizationKeySilkCases(test.Test): | 93 class SmoothnessGpuRasterizationKeySilkCases(benchmark.Benchmark): |
| 94 """Measures rendering statistics for the key silk cases with GPU rasterization | 94 """Measures rendering statistics for the key silk cases with GPU rasterization |
| 95 """ | 95 """ |
| 96 tag = 'gpu_rasterization' | 96 tag = 'gpu_rasterization' |
| 97 test = smoothness.Smoothness | 97 test = smoothness.Smoothness |
| 98 page_set = page_sets.KeySilkCasesPageSet | 98 page_set = page_sets.KeySilkCasesPageSet |
| 99 def CustomizeBrowserOptions(self, options): | 99 def CustomizeBrowserOptions(self, options): |
| 100 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 100 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 101 | 101 |
| 102 | 102 |
| 103 class SmoothnessFastPathGpuRasterizationKeySilkCases( | 103 class SmoothnessFastPathGpuRasterizationKeySilkCases( |
| 104 SmoothnessGpuRasterizationKeySilkCases): | 104 SmoothnessGpuRasterizationKeySilkCases): |
| 105 """Measures rendering statistics for the key silk cases with GPU rasterization | 105 """Measures rendering statistics for the key silk cases with GPU rasterization |
| 106 using bleeding edge rendering fast paths. | 106 using bleeding edge rendering fast paths. |
| 107 """ | 107 """ |
| 108 tag = 'fast_path_gpu_rasterization' | 108 tag = 'fast_path_gpu_rasterization' |
| 109 test = smoothness.Smoothness | 109 test = smoothness.Smoothness |
| 110 page_set = page_sets.KeySilkCasesPageSet | 110 page_set = page_sets.KeySilkCasesPageSet |
| 111 def CustomizeBrowserOptions(self, options): | 111 def CustomizeBrowserOptions(self, options): |
| 112 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ | 112 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ |
| 113 CustomizeBrowserOptions(options) | 113 CustomizeBrowserOptions(options) |
| 114 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 114 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 115 | 115 |
| 116 | 116 |
| 117 @test.Enabled('android') | 117 @benchmark.Enabled('android') |
| 118 class SmoothnessToughPinchZoomCases(test.Test): | 118 class SmoothnessToughPinchZoomCases(benchmark.Benchmark): |
| 119 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 119 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
| 120 cases | 120 cases |
| 121 """ | 121 """ |
| 122 test = smoothness.Smoothness | 122 test = smoothness.Smoothness |
| 123 page_set = page_sets.ToughPinchZoomCasesPageSet | 123 page_set = page_sets.ToughPinchZoomCasesPageSet |
| 124 | 124 |
| 125 | 125 |
| 126 @test.Disabled # crbug.com/370725 | 126 @benchmark.Disabled # crbug.com/370725 |
| 127 class SmoothnessPolymer(test.Test): | 127 class SmoothnessPolymer(benchmark.Benchmark): |
| 128 """Measures rendering statistics for Polymer cases. | 128 """Measures rendering statistics for Polymer cases. |
| 129 """ | 129 """ |
| 130 test = smoothness.Smoothness | 130 test = smoothness.Smoothness |
| 131 page_set = page_sets.PolymerPageSet | 131 page_set = page_sets.PolymerPageSet |
| 132 | 132 |
| 133 | 133 |
| 134 @test.Disabled # crbug.com/370725 | 134 @benchmark.Disabled # crbug.com/370725 |
| 135 class SmoothnessFastPathPolymer(test.Test): | 135 class SmoothnessFastPathPolymer(benchmark.Benchmark): |
| 136 """Measures rendering statistics for the Polymer cases without GPU | 136 """Measures rendering statistics for the Polymer cases without GPU |
| 137 rasterization using bleeding edge rendering fast paths. | 137 rasterization using bleeding edge rendering fast paths. |
| 138 """ | 138 """ |
| 139 tag = 'fast_path' | 139 tag = 'fast_path' |
| 140 test = smoothness.Smoothness | 140 test = smoothness.Smoothness |
| 141 page_set = page_sets.PolymerPageSet | 141 page_set = page_sets.PolymerPageSet |
| 142 def CustomizeBrowserOptions(self, options): | 142 def CustomizeBrowserOptions(self, options): |
| 143 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 143 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 144 | 144 |
| 145 | 145 |
| 146 @test.Disabled # crbug.com/370725 | 146 @benchmark.Disabled # crbug.com/370725 |
| 147 class SmoothnessGpuRasterizationPolymer(test.Test): | 147 class SmoothnessGpuRasterizationPolymer(benchmark.Benchmark): |
| 148 """Measures rendering statistics for the Polymer cases with GPU rasterization | 148 """Measures rendering statistics for the Polymer cases with GPU rasterization |
| 149 """ | 149 """ |
| 150 tag = 'gpu_rasterization' | 150 tag = 'gpu_rasterization' |
| 151 test = smoothness.Smoothness | 151 test = smoothness.Smoothness |
| 152 page_set = page_sets.PolymerPageSet | 152 page_set = page_sets.PolymerPageSet |
| 153 def CustomizeBrowserOptions(self, options): | 153 def CustomizeBrowserOptions(self, options): |
| 154 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 154 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 155 | 155 |
| 156 | 156 |
| 157 @test.Disabled # crbug.com/370725 | 157 @benchmark.Disabled # crbug.com/370725 |
| 158 class SmoothnessFastPathGpuRasterizationPolymer( | 158 class SmoothnessFastPathGpuRasterizationPolymer( |
| 159 SmoothnessGpuRasterizationPolymer): | 159 SmoothnessGpuRasterizationPolymer): |
| 160 """Measures rendering statistics for the Polymer cases with GPU rasterization | 160 """Measures rendering statistics for the Polymer cases with GPU rasterization |
| 161 using bleeding edge rendering fast paths. | 161 using bleeding edge rendering fast paths. |
| 162 """ | 162 """ |
| 163 tag = 'fast_path_gpu_rasterization' | 163 tag = 'fast_path_gpu_rasterization' |
| 164 test = smoothness.Smoothness | 164 test = smoothness.Smoothness |
| 165 page_set = page_sets.PolymerPageSet | 165 page_set = page_sets.PolymerPageSet |
| 166 def CustomizeBrowserOptions(self, options): | 166 def CustomizeBrowserOptions(self, options): |
| 167 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ | 167 super(SmoothnessFastPathGpuRasterizationPolymer, self). \ |
| 168 CustomizeBrowserOptions(options) | 168 CustomizeBrowserOptions(options) |
| 169 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 169 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| OLD | NEW |