asyncio + uvloop echo server benchmark
This is an attempt at a bare minimum client/server benchmark of asyncio with optional use of uvloop. On my 2015 macbook pro, I get almost 2.5X improvement using uvloop in the server.
The client runs PARALLEL tasks at once. Running only a single task results in about 1/8 the throughput of 100 simultaneous tasks.
# with uvloop $ python client.py satisfied 100000 requests in 1.41021 seconds (70911.42 reqs/s) # without uvloop $ python client.py satisfied 100000 requests in 3.367228 seconds (29698.02 reqs/s)