Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: tools/perf/benchmarks/chrome_proxy.py

Issue 191383003: First cut of chrome-proxy (data reduction proxy) measurements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebasing. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/perf/measurements/chrome_proxy.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/chrome_proxy.py
diff --git a/tools/perf/benchmarks/chrome_proxy.py b/tools/perf/benchmarks/chrome_proxy.py
new file mode 100644
index 0000000000000000000000000000000000000000..0f78eac8296ffcbc1872715391567ea5a5cda77a
--- /dev/null
+++ b/tools/perf/benchmarks/chrome_proxy.py
@@ -0,0 +1,79 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry import test
+from measurements import chrome_proxy
+
+
+class ChromeProxyLatency(test.Test):
+ tag = 'latency'
+ test = chrome_proxy.ChromeProxyLatency
+ page_set = 'page_sets/chrome_proxy/top_20.json'
+ options = {'pageset_repeat_iters': 2}
+
+ def CustomizeBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
+
+
+class ChromeProxyLatencyDirect(test.Test):
+ tag = 'latency_direct'
+ test = chrome_proxy.ChromeProxyLatency
+ page_set = 'page_sets/chrome_proxy/top_20.json'
+ options = {'pageset_repeat_iters': 2}
+
+
+class ChromeProxyLatencySynthetic(ChromeProxyLatency):
+ page_set = 'page_sets/chrome_proxy/synthetic.json'
+
+
+class ChromeProxyLatencySyntheticDirect(ChromeProxyLatencyDirect):
+ page_set = 'page_sets/chrome_proxy/synthetic.json'
+
+
+class ChromeProxyDataSaving(test.Test):
+ tag = 'data_saving'
+ test = chrome_proxy.ChromeProxyDataSaving
+ page_set = 'page_sets/chrome_proxy/top_20.json'
+ options = {'pageset_repeat_iters': 1}
+ def CustomizeBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs('--enable-spdy-proxy-auth')
+
+
+class ChromeProxyDataSavingDirect(test.Test):
+ tag = 'data_saving_direct'
+ test = chrome_proxy.ChromeProxyDataSaving
+ options = {'pageset_repeat_iters': 2}
+ page_set = 'page_sets/chrome_proxy/top_20.json'
+
+
+class ChromeProxyDataSavingSynthetic(ChromeProxyDataSaving):
+ page_set = 'page_sets/chrome_proxy/synthetic.json'
+
+
+class ChromeProxyDataSavingSyntheticDirect(ChromeProxyDataSavingDirect):
+ page_set = 'page_sets/chrome_proxy/synthetic.json'
+
+
+class ChromeProxyHeaderValidation(test.Test):
+ tag = 'header_validation'
+ test = chrome_proxy.ChromeProxyHeaders
+ page_set = 'page_sets/chrome_proxy/top_20.json'
+
+
+class ChromeProxyBypass(test.Test):
+ tag = 'bypass'
+ test = chrome_proxy.ChromeProxyBypass
+ page_set = 'page_sets/chrome_proxy/bypass.json'
+
+
+class ChromeProxySafeBrowsing(test.Test):
+ tag = 'safebrowsing'
+ test = chrome_proxy.ChromeProxySafebrowsing
+ page_set = 'page_sets/chrome_proxy/safebrowsing.json'
+
+
+class ChromeProxySmoke(test.Test):
+ tag = 'smoke'
+ test = chrome_proxy.ChromeProxySmoke
+ page_set = 'page_sets/chrome_proxy/smoke.json'
« no previous file with comments | « no previous file | tools/perf/measurements/chrome_proxy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698