Closed channelcat closed 7 years ago
rel: https://github.com/squeaky-pl/japronto/issues/3
I have tried the pip version and I have also tried to compile myself. The compiled version seems to have better performance
Hi, this looks valid as other people are also unable to replicate this. I cannot run benchmarks currently myself.I suspect that when I started optimizing towards pipelining I overoptimized towards it and non pipelined numbers suffered. I didnt look at non-pipeline result in two weeks. I am gonna track down why that happened and when later and hope to restore non-pipelined performance.
Hi, I tried to hunt down the problem but it looks like I was gravely mistaken. I am really sorry for the confusion, I didnt mean to misguide anyone. I started linking to your results now. The performance on a revision before I started working on pipelining is close enough to the one you obtained. I was either running the non-pipelined benchmarks on a different kind of hardware(happened to me several times by mistake when launching with AWS wizard) or I simply read the results wrong when tired.
I decided to focus on non-pipelined performance for the next release and I will advertise non-pipelined results in the next round of benchmarks.
I am closing this in favor of https://github.com/squeaky-pl/japronto/issues/21 which has a nice graph.
I don't see the 1.2million Requests/sec:
$ wrk -t1 -c100 -d2 http://0.0.0.0:5000
Running 2s test @ http://0.0.0.0:5000
1 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.40ms 552.67us 9.76ms 79.80%
Req/Sec 39.41k 844.44 40.80k 71.43%
82287 requests in 2.10s, 7.22MB read
Requests/sec: 39126.12
Transfer/sec: 3.43MB
$ wrk -t1 -c100 -d2 -s japronto/misc/pipeline.lua http://0.0.0.0:5000
Running 2s test @ http://0.0.0.0:5000
1 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 22.40ms 12.21ms 50.93ms 58.20%
Req/Sec 57.30k 6.06k 65.45k 55.00%
115224 requests in 2.03s, 10.11MB read
Requests/sec: 56865.53
Transfer/sec: 4.99MB
Mac OSX 2.7GHz RAM 16GB v10.14.3
Trying to get the same results, I installed python 3.6 and work from source on a c4.2xlarge ubuntu 16.04.1 ec2 instance.
Pipelining:
No Pipelining:
With pipelining, I'm able to get 1.2M (this is awesome btw!). However, I'm not able to achieve 400k req/sec without pipelining. Can you share more of how you tested? Thanks!