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