ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / tools / chrome_proxy / integration_tests / chrome_proxy_benchmark.py
blobc54af10f6e854059d30cd4ae2abfaedaa1c8a351
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
3 # found in the LICENSE file.
5 from integration_tests import chrome_proxy_measurements as measurements
6 from integration_tests import chrome_proxy_pagesets as pagesets
7 from telemetry import benchmark
10 class ChromeProxyLatency(benchmark.Benchmark):
11 tag = 'latency'
12 test = measurements.ChromeProxyLatency
13 page_set = pagesets.Top20PageSet
15 @classmethod
16 def Name(cls):
17 return 'chrome_proxy_benchmark.latency.top_20'
20 class ChromeProxyLatencyDirect(benchmark.Benchmark):
21 tag = 'latency_direct'
22 test = measurements.ChromeProxyLatency
23 page_set = pagesets.Top20PageSet
25 @classmethod
26 def Name(cls):
27 return 'chrome_proxy_benchmark.latency_direct.top_20'
30 class ChromeProxyLatencySynthetic(ChromeProxyLatency):
31 page_set = pagesets.SyntheticPageSet
33 @classmethod
34 def Name(cls):
35 return 'chrome_proxy_benchmark.latency.synthetic'
38 class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect):
39 page_set = pagesets.SyntheticPageSet
41 @classmethod
42 def Name(cls):
43 return 'chrome_proxy_benchmark.latency_direct.synthetic'
46 class ChromeProxyDataSaving(benchmark.Benchmark):
47 tag = 'data_saving'
48 test = measurements.ChromeProxyDataSaving
49 page_set = pagesets.Top20PageSet
51 @classmethod
52 def Name(cls):
53 return 'chrome_proxy_benchmark.data_saving.top_20'
56 class ChromeProxyDataSavingDirect(benchmark.Benchmark):
57 tag = 'data_saving_direct'
58 test = measurements.ChromeProxyDataSaving
59 page_set = pagesets.Top20PageSet
61 @classmethod
62 def Name(cls):
63 return 'chrome_proxy_benchmark.data_saving_direct.top_20'
66 class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving):
67 page_set = pagesets.SyntheticPageSet
69 @classmethod
70 def Name(cls):
71 return 'chrome_proxy_benchmark.data_saving.synthetic'
74 class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect):
75 page_set = pagesets.SyntheticPageSet
77 @classmethod
78 def Name(cls):
79 return 'chrome_proxy_benchmark.data_saving_direct.synthetic'
82 class ChromeProxyHeaderValidation(benchmark.Benchmark):
83 tag = 'header_validation'
84 test = measurements.ChromeProxyHeaders
85 page_set = pagesets.Top20PageSet
87 @classmethod
88 def Name(cls):
89 return 'chrome_proxy_benchmark.header_validation.top_20'
92 class ChromeProxyClientVersion(benchmark.Benchmark):
93 tag = 'client_version'
94 test = measurements.ChromeProxyClientVersion
95 page_set = pagesets.SyntheticPageSet
97 @classmethod
98 def Name(cls):
99 return 'chrome_proxy_benchmark.client_version.synthetic'
102 class ChromeProxyClientType(benchmark.Benchmark):
103 tag = 'client_type'
104 test = measurements.ChromeProxyClientType
105 page_set = pagesets.ClientTypePageSet
107 @classmethod
108 def Name(cls):
109 return 'chrome_proxy_benchmark.client_type.client_type'
112 class ChromeProxyLoFi(benchmark.Benchmark):
113 tag = 'lo_fi'
114 test = measurements.ChromeProxyLoFi
115 page_set = pagesets.LoFiPageSet
117 @classmethod
118 def Name(cls):
119 return 'chrome_proxy_benchmark.lo_fi.lo_fi'
122 class ChromeProxyBypass(benchmark.Benchmark):
123 tag = 'bypass'
124 test = measurements.ChromeProxyBypass
125 page_set = pagesets.BypassPageSet
127 @classmethod
128 def Name(cls):
129 return 'chrome_proxy_benchmark.bypass.bypass'
132 class ChromeProxyCorsBypass(benchmark.Benchmark):
133 tag = 'bypass'
134 test = measurements.ChromeProxyCorsBypass
135 page_set = pagesets.CorsBypassPageSet
137 @classmethod
138 def Name(cls):
139 return 'chrome_proxy_benchmark.bypass.corsbypass'
142 class ChromeProxyBlockOnce(benchmark.Benchmark):
143 tag = 'block_once'
144 test = measurements.ChromeProxyBlockOnce
145 page_set = pagesets.BlockOncePageSet
147 @classmethod
148 def Name(cls):
149 return 'chrome_proxy_benchmark.block_once.block_once'
152 @benchmark.Enabled('android')
153 # Safebrowsing is enabled for Android and iOS.
154 class ChromeProxySafeBrowsingOn(benchmark.Benchmark):
155 tag = 'safebrowsing_on'
156 test = measurements.ChromeProxySafebrowsingOn
157 page_set = pagesets.SafebrowsingPageSet
159 @classmethod
160 def Name(cls):
161 return 'chrome_proxy_benchmark.safebrowsing_on.safebrowsing'
164 # Safebrowsing is switched off for Android Webview and all desktop platforms.
165 class ChromeProxySafeBrowsingOff(benchmark.Benchmark):
166 tag = 'safebrowsing_off'
167 test = measurements.ChromeProxySafebrowsingOff
168 page_set = pagesets.SafebrowsingPageSet
170 @classmethod
171 def Name(cls):
172 return 'chrome_proxy_benchmark.safebrowsing_off.safebrowsing'
174 class ChromeProxyHTTPFallbackProbeURL(benchmark.Benchmark):
175 tag = 'fallback_probe'
176 test = measurements.ChromeProxyHTTPFallbackProbeURL
177 page_set = pagesets.SyntheticPageSet
179 @classmethod
180 def Name(cls):
181 return 'chrome_proxy_benchmark.fallback_probe.synthetic'
184 class ChromeProxyHTTPFallbackViaHeader(benchmark.Benchmark):
185 tag = 'fallback_viaheader'
186 test = measurements.ChromeProxyHTTPFallbackViaHeader
187 page_set = pagesets.FallbackViaHeaderPageSet
189 @classmethod
190 def Name(cls):
191 return 'chrome_proxy_benchmark.fallback_viaheader.fallback_viaheader'
194 class ChromeProxyHTTPToDirectFallback(benchmark.Benchmark):
195 tag = 'http_to_direct_fallback'
196 test = measurements.ChromeProxyHTTPToDirectFallback
197 page_set = pagesets.HTTPToDirectFallbackPageSet
199 @classmethod
200 def Name(cls):
201 return ('chrome_proxy_benchmark.http_to_direct_fallback.'
202 'http_to_direct_fallback')
205 class ChromeProxyReenableAfterBypass(benchmark.Benchmark):
206 tag = 'reenable_after_bypass'
207 test = measurements.ChromeProxyReenableAfterBypass
208 page_set = pagesets.ReenableAfterBypassPageSet
210 @classmethod
211 def Name(cls):
212 return 'chrome_proxy_benchmark.reenable_after_bypass.reenable_after_bypass'
215 class ChromeProxySmoke(benchmark.Benchmark):
216 tag = 'smoke'
217 test = measurements.ChromeProxySmoke
218 page_set = pagesets.SmokePageSet
220 @classmethod
221 def Name(cls):
222 return 'chrome_proxy_benchmark.smoke.smoke'