From 33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 15 Feb 2016 14:58:46 +0100 Subject: move mitmproxy --- test/tools/bench.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 test/tools/bench.py (limited to 'test/tools/bench.py') diff --git a/test/tools/bench.py b/test/tools/bench.py deleted file mode 100644 index 8127d083..00000000 --- a/test/tools/bench.py +++ /dev/null @@ -1,24 +0,0 @@ -from __future__ import print_function -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)) -- cgit v1.2.3