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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py

Issue 1065763002: Add data reduction proxy integration tests for video compression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer comment: removed unused class ChromeProxyLatency Created 5 years, 7 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/chrome_proxy/integration_tests/chrome_proxy_measurements.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py b/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
index df51b4f48666f73e5c34eb9e34744503a01ff48d..457e0b38968c271179a07fb1380ff39a1eec0ab8 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_benchmark.py
@@ -7,12 +7,16 @@ from integration_tests import chrome_proxy_pagesets as pagesets
from integration_tests import chrome_proxy_measurements as measurements
from telemetry import benchmark
from telemetry.core.backends.chrome import android_browser_finder
+from telemetry.core.backends.chrome import cros_browser_finder
+from telemetry.core.backends.chrome import desktop_browser_finder
ANDROID_CHROME_BROWSERS = [
browser for browser in android_browser_finder.CHROME_PACKAGE_NAMES
if 'webview' not in browser]
+DESKTOP_CHROME_BROWSERS = (desktop_browser_finder.FindAllBrowserTypes(None) +
+ cros_browser_finder.FindAllBrowserTypes(None))
class ChromeProxyClientVersion(ChromeProxyBenchmark):
tag = 'client_version'
@@ -112,6 +116,7 @@ class ChromeProxySafeBrowsingOff(ChromeProxyBenchmark):
def Name(cls):
return 'chrome_proxy_benchmark.safebrowsing_off.safebrowsing'
+
class ChromeProxyHTTPFallbackProbeURL(ChromeProxyBenchmark):
tag = 'fallback_probe'
test = measurements.ChromeProxyHTTPFallbackProbeURL
@@ -161,3 +166,42 @@ class ChromeProxySmoke(ChromeProxyBenchmark):
@classmethod
def Name(cls):
return 'chrome_proxy_benchmark.smoke.smoke'
+
+
+@benchmark.Enabled(*DESKTOP_CHROME_BROWSERS)
+class ChromeProxyVideoDirect(benchmark.Benchmark):
+ tag = 'video'
+ test = measurements.ChromeProxyVideoValidation
+ page_set = pagesets.VideoDirectPageSet
+
+ @classmethod
+ def Name(cls):
+ return 'chrome_proxy_benchmark.video.direct'
+
+
+@benchmark.Enabled(*DESKTOP_CHROME_BROWSERS)
+class ChromeProxyVideoProxied(benchmark.Benchmark):
+ tag = 'video'
+ test = measurements.ChromeProxyVideoValidation
+ page_set = pagesets.VideoProxiedPageSet
+
+ @classmethod
+ def Name(cls):
+ return 'chrome_proxy_benchmark.video.proxied'
+
+
+@benchmark.Enabled(*DESKTOP_CHROME_BROWSERS)
+class ChromeProxyVideoCompare(benchmark.Benchmark):
+ """Comparison of direct and proxied video fetches.
+
+ This benchmark runs the ChromeProxyVideoDirect and ChromeProxyVideoProxied
+ benchmarks, then compares their results.
+ """
+
+ tag = 'video'
+ test = measurements.ChromeProxyVideoValidation
+ page_set = pagesets.VideoComparePageSet
+
+ @classmethod
+ def Name(cls):
+ return 'chrome_proxy_benchmark.video.compare'
« no previous file with comments | « no previous file | tools/chrome_proxy/integration_tests/chrome_proxy_measurements.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698