I have this two Python script server.py and client.py which connects using socket, server just looks like:
while True:
try:
conn, addr = server.accept()
handle(conn, addr)
except KeyboardInterrupt:
break
So it just handles one client at a time then later I'll add gevent so it can handle clients concurrently.
How do I benchmark this to determine client request/second with vs without gevent?
I found a lot of HTTP base benchmarking tool but what about TCP? Ideally I'd like the test to run several of my client.py script and use that as a test.
最终写了我自己的线程基准测试。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.