Skip to content
Myr

Remove example script

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by florimondmanca · committed by florimondmanca · parent e5964b3 · Browse files · 1 file+0 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−17 removed

  • other:+0 added−17 removed

1 file+0 added−17 removed

deleted:example.py-17 removed
1import httpx2import time3import requests45url = "https://httpbin.org/stream-bytes/50000000"67start = time.time()8r = requests.get(url)9print("requests %.1f s" % (time.time() - start))1011for http_version in ["HTTP/1.1", "HTTP/2"]:12 client = httpx.Client(http_versions=http_version)1314 start = time.time()15 r = client.get(url)16 print("httpx %s %.1f s" % (http_version, time.time() - start))17 print(r.http_version)