diff options
Diffstat (limited to 'test/helper_tools/bench.py')
-rw-r--r-- | test/helper_tools/bench.py | 23 |
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)) |