python - Apache Benchmark horror results with a simple Gevent app -
i have simple python code run gevent.
tested apache benchmark 10000 users , 5 concurrent it's damn slow..nearly 2 seconds per request (1.419 ms) bad..
my code is
from gevent import wsgi, monkey class webserver(object): def application(self, environ, start_response): start_response("200 ok", []) return ["hello world!"] if __name__ == "__main__": monkey.patch_all() app = webserver() wsgi.wsgiserver(('', 8888), app.application, log=none).serve_forever()
and results pretty horrible
server software: server hostname: 127.0.0.1 server port: 8888 document path: / document length: 12 bytes concurrency level: 5 time taken tests: 28.379 seconds complete requests: 100000 failed requests: 0 write errors: 0 total transferred: 10700000 bytes html transferred: 1200000 bytes requests per second: 3523.73 [#/sec] (mean) time per request: 1.419 [ms] (mean) time per request: 0.284 [ms] (mean, across concurrent requests) transfer rate: 368.20 [kbytes/sec] received connection times (ms) min mean[+/-sd] median max connect: 0 0 0.0 0 4 processing: 0 1 0.1 1 10 waiting: 0 1 0.1 1 10 total: 0 1 0.1 1 10 percentage of requests served within time (ms) 50% 1 66% 1 75% 1 80% 1 90% 1 95% 1 98% 2 99% 2 100% 10 (longest request)
why that?? guy got way better results mine, same code http://blindvic.blogspot.it/2013/04/hello-world-gevent-vs-nodejs.html
tell me if i'm missing here..
i searched see if there tuning can't find anything.
americans use "." decimal point, not separator between thousands , hundreds. "1.419" more 1 , less 2, not on 1,000.
Comments
Post a Comment