i’m stunned: uncanny problem python sockets + threads
i have python book http-server: , benchmarking opposing apachebench (ab) concurrency turn (-c switch) devaluate following equal value i specified socket.listen()-call sourcecode all works fine, nonetheless shortly put concurrency turn apache dais above value socket.listen()-call opening drops by floor, example:
- socket.listen(10) ab -n 50 -c 10 = 1200req/s
- socket.listen(10) ab -n 50 -c 11 = 40req/s
- socket.listen(100) ab -n 5000 -c 100 = 1000req/s
- socket.listen(100) ab -n 5000 -c 101 = 32req/s
nothing changes formula between twin calls, i cant figure out wrong - during problem now. also note that: multiplexing chronicle same formula (i wrote review threaded version) works glorious matter socket.listen() set concurrency (-c switch) apache set to.
i've spent irc/python docs, posted comp.lang.python blog - i can't anyone even an thought wrong. assistance me!
Comments
Post a Comment