| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 integration_tests import chrome_proxy_measurements as measurements | 5 from integration_tests import chrome_proxy_measurements as measurements |
| 6 from integration_tests import chrome_proxy_pagesets as pagesets | 6 from integration_tests import chrome_proxy_pagesets as pagesets |
| 7 from telemetry import benchmark | 7 from telemetry import benchmark |
| 8 | 8 |
| 9 | 9 |
| 10 @benchmark.Enabled('android') | |
| 11 class ChromeProxyLatency(benchmark.Benchmark): | 10 class ChromeProxyLatency(benchmark.Benchmark): |
| 12 tag = 'latency' | 11 tag = 'latency' |
| 13 test = measurements.ChromeProxyLatency | 12 test = measurements.ChromeProxyLatency |
| 14 page_set = pagesets.Top20PageSet | 13 page_set = pagesets.Top20PageSet |
| 15 | 14 |
| 16 def CustomizeBrowserOptions(self, options): | 15 def CustomizeBrowserOptions(self, options): |
| 17 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') | 16 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') |
| 18 | 17 |
| 19 | 18 |
| 20 @benchmark.Enabled('android') | |
| 21 class ChromeProxyLatencyDirect(benchmark.Benchmark): | 19 class ChromeProxyLatencyDirect(benchmark.Benchmark): |
| 22 tag = 'latency_direct' | 20 tag = 'latency_direct' |
| 23 test = measurements.ChromeProxyLatency | 21 test = measurements.ChromeProxyLatency |
| 24 page_set = pagesets.Top20PageSet | 22 page_set = pagesets.Top20PageSet |
| 25 | 23 |
| 26 | 24 |
| 27 @benchmark.Enabled('android') | |
| 28 class ChromeProxyLatencySynthetic(ChromeProxyLatency): | 25 class ChromeProxyLatencySynthetic(ChromeProxyLatency): |
| 29 page_set = pagesets.SyntheticPageSet | 26 page_set = pagesets.SyntheticPageSet |
| 30 | 27 |
| 31 | 28 |
| 32 @benchmark.Enabled('android') | |
| 33 class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect): | 29 class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect): |
| 34 page_set = pagesets.SyntheticPageSet | 30 page_set = pagesets.SyntheticPageSet |
| 35 | 31 |
| 36 | 32 |
| 37 @benchmark.Enabled('android') | |
| 38 class ChromeProxyDataSaving(benchmark.Benchmark): | 33 class ChromeProxyDataSaving(benchmark.Benchmark): |
| 39 tag = 'data_saving' | 34 tag = 'data_saving' |
| 40 test = measurements.ChromeProxyDataSaving | 35 test = measurements.ChromeProxyDataSaving |
| 41 page_set = pagesets.Top20PageSet | 36 page_set = pagesets.Top20PageSet |
| 42 | 37 |
| 43 def CustomizeBrowserOptions(self, options): | 38 def CustomizeBrowserOptions(self, options): |
| 44 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') | 39 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') |
| 45 | 40 |
| 46 | 41 |
| 47 @benchmark.Enabled('android') | |
| 48 class ChromeProxyDataSavingDirect(benchmark.Benchmark): | 42 class ChromeProxyDataSavingDirect(benchmark.Benchmark): |
| 49 tag = 'data_saving_direct' | 43 tag = 'data_saving_direct' |
| 50 test = measurements.ChromeProxyDataSaving | 44 test = measurements.ChromeProxyDataSaving |
| 51 page_set = pagesets.Top20PageSet | 45 page_set = pagesets.Top20PageSet |
| 52 | 46 |
| 53 | 47 |
| 54 @benchmark.Enabled('android') | |
| 55 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving): | 48 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving): |
| 56 page_set = pagesets.SyntheticPageSet | 49 page_set = pagesets.SyntheticPageSet |
| 57 | 50 |
| 58 | 51 |
| 59 @benchmark.Enabled('android') | |
| 60 class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect): | 52 class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect): |
| 61 page_set = pagesets.SyntheticPageSet | 53 page_set = pagesets.SyntheticPageSet |
| 62 | 54 |
| 63 | 55 |
| 64 @benchmark.Enabled('android') | |
| 65 class ChromeProxyHeaderValidation(benchmark.Benchmark): | 56 class ChromeProxyHeaderValidation(benchmark.Benchmark): |
| 66 tag = 'header_validation' | 57 tag = 'header_validation' |
| 67 test = measurements.ChromeProxyHeaders | 58 test = measurements.ChromeProxyHeaders |
| 68 page_set = pagesets.Top20PageSet | 59 page_set = pagesets.Top20PageSet |
| 69 | 60 |
| 70 | 61 |
| 71 @benchmark.Enabled('android') | |
| 72 class ChromeProxyClientVersion(benchmark.Benchmark): | 62 class ChromeProxyClientVersion(benchmark.Benchmark): |
| 73 tag = 'client_version' | 63 tag = 'client_version' |
| 74 test = measurements.ChromeProxyClientVersion | 64 test = measurements.ChromeProxyClientVersion |
| 75 page_set = pagesets.SyntheticPageSet | 65 page_set = pagesets.SyntheticPageSet |
| 76 | 66 |
| 77 | 67 |
| 78 @benchmark.Enabled('android') | |
| 79 class ChromeProxyClientType(benchmark.Benchmark): | 68 class ChromeProxyClientType(benchmark.Benchmark): |
| 80 tag = 'client_type' | 69 tag = 'client_type' |
| 81 test = measurements.ChromeProxyClientType | 70 test = measurements.ChromeProxyClientType |
| 82 page_set = pagesets.ClientTypePageSet | 71 page_set = pagesets.ClientTypePageSet |
| 83 | 72 |
| 84 | 73 |
| 85 @benchmark.Enabled('android') | |
| 86 class ChromeProxyBypass(benchmark.Benchmark): | 74 class ChromeProxyBypass(benchmark.Benchmark): |
| 87 tag = 'bypass' | 75 tag = 'bypass' |
| 88 test = measurements.ChromeProxyBypass | 76 test = measurements.ChromeProxyBypass |
| 89 page_set = pagesets.BypassPageSet | 77 page_set = pagesets.BypassPageSet |
| 90 | 78 |
| 91 | 79 |
| 92 @benchmark.Enabled('android') | |
| 93 class ChromeProxyCorsBypass(benchmark.Benchmark): | 80 class ChromeProxyCorsBypass(benchmark.Benchmark): |
| 94 tag = 'bypass' | 81 tag = 'bypass' |
| 95 test = measurements.ChromeProxyCorsBypass | 82 test = measurements.ChromeProxyCorsBypass |
| 96 page_set = pagesets.CorsBypassPageSet | 83 page_set = pagesets.CorsBypassPageSet |
| 97 | 84 |
| 98 | 85 |
| 99 @benchmark.Enabled('android') | |
| 100 class ChromeProxyBlockOnce(benchmark.Benchmark): | 86 class ChromeProxyBlockOnce(benchmark.Benchmark): |
| 101 tag = 'block_once' | 87 tag = 'block_once' |
| 102 test = measurements.ChromeProxyBlockOnce | 88 test = measurements.ChromeProxyBlockOnce |
| 103 page_set = pagesets.BlockOncePageSet | 89 page_set = pagesets.BlockOncePageSet |
| 104 | 90 |
| 105 | |
| 106 @benchmark.Enabled('android') | 91 @benchmark.Enabled('android') |
| 107 class ChromeProxySafeBrowsing(benchmark.Benchmark): | 92 class ChromeProxySafeBrowsingMobile(benchmark.Benchmark): |
| 108 tag = 'safebrowsing' | 93 tag = 'safebrowsingmobile' |
| 109 test = measurements.ChromeProxySafebrowsing | 94 test = measurements.ChromeProxySafebrowsingMobile |
| 110 page_set = pagesets.SafebrowsingPageSet | 95 page_set = pagesets.SafebrowsingPageSet |
| 111 | 96 |
| 97 @benchmark.Disabled('android') |
| 98 class ChromeProxySafeBrowsingDesktop(benchmark.Benchmark): |
| 99 tag = 'safebrowsingdesktop' |
| 100 test = measurements.ChromeProxySafebrowsingDesktop |
| 101 page_set = pagesets.SafebrowsingPageSet |
| 112 | 102 |
| 113 @benchmark.Enabled('android') | |
| 114 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark): | 103 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark): |
| 115 tag = 'fallback-probe' | 104 tag = 'fallback-probe' |
| 116 test = measurements.ChromeProxyHTTPFallbackProbeURL | 105 test = measurements.ChromeProxyHTTPFallbackProbeURL |
| 117 page_set = pagesets.SyntheticPageSet | 106 page_set = pagesets.SyntheticPageSet |
| 118 | 107 |
| 119 | 108 |
| 120 @benchmark.Enabled('android') | |
| 121 class ChromeProxyHTTPFallbackViaHeader(benchmark.Benchmark): | 109 class ChromeProxyHTTPFallbackViaHeader(benchmark.Benchmark): |
| 122 tag = 'fallback-viaheader' | 110 tag = 'fallback-viaheader' |
| 123 test = measurements.ChromeProxyHTTPFallbackViaHeader | 111 test = measurements.ChromeProxyHTTPFallbackViaHeader |
| 124 page_set = pagesets.FallbackViaHeaderPageSet | 112 page_set = pagesets.FallbackViaHeaderPageSet |
| 125 | 113 |
| 126 | 114 |
| 127 @benchmark.Enabled('android') | |
| 128 class ChromeProxyHTTPToDirectFallback(benchmark.Benchmark): | 115 class ChromeProxyHTTPToDirectFallback(benchmark.Benchmark): |
| 129 tag = 'http-to-direct-fallback' | 116 tag = 'http-to-direct-fallback' |
| 130 test = measurements.ChromeProxyHTTPToDirectFallback | 117 test = measurements.ChromeProxyHTTPToDirectFallback |
| 131 page_set = pagesets.HTTPToDirectFallbackPageSet | 118 page_set = pagesets.HTTPToDirectFallbackPageSet |
| 132 | 119 |
| 133 | 120 |
| 134 @benchmark.Enabled('android') | |
| 135 class ChromeProxyExplicitBypass(benchmark.Benchmark): | 121 class ChromeProxyExplicitBypass(benchmark.Benchmark): |
| 136 tag = 'explicit-bypass' | 122 tag = 'explicit-bypass' |
| 137 test = measurements.ChromeProxyExplicitBypass | 123 test = measurements.ChromeProxyExplicitBypass |
| 138 page_set = pagesets.ExplicitBypassPageSet | 124 page_set = pagesets.ExplicitBypassPageSet |
| 139 | 125 |
| 140 | 126 |
| 141 @benchmark.Enabled('android') | |
| 142 class ChromeProxySmoke(benchmark.Benchmark): | 127 class ChromeProxySmoke(benchmark.Benchmark): |
| 143 tag = 'smoke' | 128 tag = 'smoke' |
| 144 test = measurements.ChromeProxySmoke | 129 test = measurements.ChromeProxySmoke |
| 145 page_set = pagesets.SmokePageSet | 130 page_set = pagesets.SmokePageSet |
| OLD | NEW |