From: florimondmanca Date: Tue, 3 Sep 2019 17:22:03 +0000 (+0200) Subject: Remove example script X-Git-Tag: 0.7.3~21^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2eeb662dfcc267a85be7624c957822cf5e168fe;p=thirdparty%2Fhttpx.git Remove example script --- diff --git a/example.py b/example.py deleted file mode 100644 index b72c9f6e..00000000 --- a/example.py +++ /dev/null @@ -1,17 +0,0 @@ -import httpx -import time -import requests - -url = "https://httpbin.org/stream-bytes/50000000" - -start = time.time() -r = requests.get(url) -print("requests %.1f s" % (time.time() - start)) - -for http_version in ["HTTP/1.1", "HTTP/2"]: - client = httpx.Client(http_versions=http_version) - - start = time.time() - r = client.get(url) - print("httpx %s %.1f s" % (http_version, time.time() - start)) - print(r.http_version)