aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper_tools/bench.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-07 09:54:37 +1200
committerAldo Cortesi <aldo@corte.si>2018-04-16 09:20:22 +1200
commit850c855495d29f24e3c51af582b6b4448433ae69 (patch)
tree84c7db53b62b36c0a011328178fcaf81160df574 /test/helper_tools/bench.py
parentb663a224a3655aab95a39eab2450f1f0e98997f2 (diff)
downloadmitmproxy-850c855495d29f24e3c51af582b6b4448433ae69.tar.gz
mitmproxy-850c855495d29f24e3c51af582b6b4448433ae69.tar.bz2
mitmproxy-850c855495d29f24e3c51af582b6b4448433ae69.zip
Clean up test/helper_tools directory
Diffstat (limited to 'test/helper_tools/bench.py')
-rw-r--r--test/helper_tools/bench.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/helper_tools/bench.py b/test/helper_tools/bench.py
deleted file mode 100644
index fb75ef46..00000000
--- a/test/helper_tools/bench.py
+++ /dev/null
@@ -1,23 +0,0 @@
-import requests
-import time
-
-n = 100
-url = "http://192.168.1.1/"
-proxy = "http://192.168.1.115:8080/"
-
-start = time.time()
-for _ in range(n):
- requests.get(url, allow_redirects=False, proxies=dict(http=proxy))
- print(".", end="")
-t_mitmproxy = time.time() - start
-
-print("\r\nTotal time with mitmproxy: {}".format(t_mitmproxy))
-
-
-start = time.time()
-for _ in range(n):
- requests.get(url, allow_redirects=False)
- print(".", end="")
-t_without = time.time() - start
-
-print("\r\nTotal time without mitmproxy: {}".format(t_without))