]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Remove example script
authorflorimondmanca <florimond.manca@gmail.com>
Tue, 3 Sep 2019 17:22:03 +0000 (19:22 +0200)
committerflorimondmanca <florimond.manca@gmail.com>
Tue, 3 Sep 2019 17:22:03 +0000 (19:22 +0200)
example.py [deleted file]

diff --git a/example.py b/example.py
deleted file mode 100644 (file)
index b72c9f6..0000000
+++ /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)