| 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 class ChromeProxyLatency(benchmark.Benchmark): | 10 class ChromeProxyLatency(benchmark.Benchmark): |
| 11 tag = 'latency' | 11 tag = 'latency' |
| 12 test = measurements.ChromeProxyLatency | 12 test = measurements.ChromeProxyLatency |
| 13 page_set = pagesets.Top20PageSet | 13 page_set = pagesets.Top20PageSet |
| 14 | 14 |
| 15 @classmethod | 15 @classmethod |
| 16 def Name(cls): | 16 def Name(cls): |
| 17 return 'chrome_proxy_benchmark.latency.top_20' | 17 return 'chrome_proxy_benchmark.latency.top_20' |
| 18 | 18 |
| 19 def CustomizeBrowserOptions(self, options): | |
| 20 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') | |
| 21 | |
| 22 | 19 |
| 23 class ChromeProxyLatencyDirect(benchmark.Benchmark): | 20 class ChromeProxyLatencyDirect(benchmark.Benchmark): |
| 24 tag = 'latency_direct' | 21 tag = 'latency_direct' |
| 25 test = measurements.ChromeProxyLatency | 22 test = measurements.ChromeProxyLatency |
| 26 page_set = pagesets.Top20PageSet | 23 page_set = pagesets.Top20PageSet |
| 27 | 24 |
| 28 @classmethod | 25 @classmethod |
| 29 def Name(cls): | 26 def Name(cls): |
| 30 return 'chrome_proxy_benchmark.latency_direct.top_20' | 27 return 'chrome_proxy_benchmark.latency_direct.top_20' |
| 31 | 28 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 | 45 |
| 49 class ChromeProxyDataSaving(benchmark.Benchmark): | 46 class ChromeProxyDataSaving(benchmark.Benchmark): |
| 50 tag = 'data_saving' | 47 tag = 'data_saving' |
| 51 test = measurements.ChromeProxyDataSaving | 48 test = measurements.ChromeProxyDataSaving |
| 52 page_set = pagesets.Top20PageSet | 49 page_set = pagesets.Top20PageSet |
| 53 | 50 |
| 54 @classmethod | 51 @classmethod |
| 55 def Name(cls): | 52 def Name(cls): |
| 56 return 'chrome_proxy_benchmark.data_saving.top_20' | 53 return 'chrome_proxy_benchmark.data_saving.top_20' |
| 57 | 54 |
| 58 def CustomizeBrowserOptions(self, options): | |
| 59 options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth') | |
| 60 | |
| 61 | 55 |
| 62 class ChromeProxyDataSavingDirect(benchmark.Benchmark): | 56 class ChromeProxyDataSavingDirect(benchmark.Benchmark): |
| 63 tag = 'data_saving_direct' | 57 tag = 'data_saving_direct' |
| 64 test = measurements.ChromeProxyDataSaving | 58 test = measurements.ChromeProxyDataSaving |
| 65 page_set = pagesets.Top20PageSet | 59 page_set = pagesets.Top20PageSet |
| 66 | 60 |
| 67 @classmethod | 61 @classmethod |
| 68 def Name(cls): | 62 def Name(cls): |
| 69 return 'chrome_proxy_benchmark.data_saving_direct.top_20' | 63 return 'chrome_proxy_benchmark.data_saving_direct.top_20' |
| 70 | 64 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 class ChromeProxyClientType(benchmark.Benchmark): | 102 class ChromeProxyClientType(benchmark.Benchmark): |
| 109 tag = 'client_type' | 103 tag = 'client_type' |
| 110 test = measurements.ChromeProxyClientType | 104 test = measurements.ChromeProxyClientType |
| 111 page_set = pagesets.ClientTypePageSet | 105 page_set = pagesets.ClientTypePageSet |
| 112 | 106 |
| 113 @classmethod | 107 @classmethod |
| 114 def Name(cls): | 108 def Name(cls): |
| 115 return 'chrome_proxy_benchmark.client_type.client_type' | 109 return 'chrome_proxy_benchmark.client_type.client_type' |
| 116 | 110 |
| 117 | 111 |
| 112 class ChromeProxyLoFi(benchmark.Benchmark): |
| 113 tag = 'lo_fi' |
| 114 test = measurements.ChromeProxyLoFi |
| 115 page_set = pagesets.LoFiPageSet |
| 116 |
| 117 @classmethod |
| 118 def Name(cls): |
| 119 return 'chrome_proxy_benchmark.lo_fi.lo_fi' |
| 120 |
| 121 |
| 118 class ChromeProxyBypass(benchmark.Benchmark): | 122 class ChromeProxyBypass(benchmark.Benchmark): |
| 119 tag = 'bypass' | 123 tag = 'bypass' |
| 120 test = measurements.ChromeProxyBypass | 124 test = measurements.ChromeProxyBypass |
| 121 page_set = pagesets.BypassPageSet | 125 page_set = pagesets.BypassPageSet |
| 122 | 126 |
| 123 @classmethod | 127 @classmethod |
| 124 def Name(cls): | 128 def Name(cls): |
| 125 return 'chrome_proxy_benchmark.bypass.bypass' | 129 return 'chrome_proxy_benchmark.bypass.bypass' |
| 126 | 130 |
| 127 | 131 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 213 |
| 210 | 214 |
| 211 class ChromeProxySmoke(benchmark.Benchmark): | 215 class ChromeProxySmoke(benchmark.Benchmark): |
| 212 tag = 'smoke' | 216 tag = 'smoke' |
| 213 test = measurements.ChromeProxySmoke | 217 test = measurements.ChromeProxySmoke |
| 214 page_set = pagesets.SmokePageSet | 218 page_set = pagesets.SmokePageSet |
| 215 | 219 |
| 216 @classmethod | 220 @classmethod |
| 217 def Name(cls): | 221 def Name(cls): |
| 218 return 'chrome_proxy_benchmark.smoke.smoke' | 222 return 'chrome_proxy_benchmark.smoke.smoke' |
| OLD | NEW |