aiortc / aioquic

QUIC and HTTP/3 implementation in Python
BSD 3-Clause "New" or "Revised" License
1.69k stars 238 forks source link

aioquic performance test by example https_server and https_client #83

Closed xliu78 closed 4 years ago

xliu78 commented 4 years ago

Is there any way to test the throughput by example https_server.py and https_client.py?

jlaine commented 4 years ago

Yes, this is actually the default behaviour: the client prints out the speed of the transfer.

I'd recommend testing on 10MB or 50MB files. For example for 10MB:

$ python examples/http3_client.py https://quic.aiortc.org/10000000
2020-04-14 13:42:23,860 INFO quic [e65a965ea6f65209] ALPN negotiated protocol h3-27
2020-04-14 13:42:23,861 INFO client New session ticket received
2020-04-14 13:42:25,509 INFO client Received 10000000 bytes in 1.6 s (48.647 Mbps)