3 ms·
As mentioned last time, The modern Python async frameworks like Starlette would have no trouble handling this amount of traffic. https://www.starlette.io/ http
by j88439h84 7y ago
As mentioned last time, The modern Python async frameworks like Starlette would have no trouble handling this amount of traffic.
https://www.starlette.io/ https://www.starlette.io/
- derwiki 7y agoExciting! I've never heard of Starlette. I set up example.py and ran the same `ab` commands mentioned in this post and got around 2600 RPS. I fresh started the server and threw 100k requests at it with `ab -c 100 -n 100000`, which timed out: apr_socket_recv: Operation timed out (60) Total of 49189 requests completed Same thing when omit `-c 100`. Am I doing something wrong?
- j88439h84 7y agoNot sure, I can't reproduce the timeout. I'm seeing "5829.85 [#/sec] (mean)" on my (nearly 10-year-old) computer which is doing other stuff. Not too shabby, I think.
- derwiki 7y agoA friend helped me figure it out: https://danielmendel.github.io/blog/2013/04/07/benchmarkers-beware-the-ephemeral-port-limit/ https://danielmendel.github.io/blog/2013/04/07/benchmarkers-...