4 ms·
Why do you use less than half the workers for the async libraries? uwsggi+flask - 16 workers unicorn+starlette - 5 workers The highest throughout examples in
by hypewatch 6y ago
Why do you use less than half the workers for the async libraries?
uwsggi+flask - 16 workers
unicorn+starlette - 5 workers
The highest throughout examples in your benchmark all have 16 workers. I also don’t see any hardware data... Does your machine have 16 cores?
- calpaterson 6y agoHi - this is explained in detail in the article.
- hypewatch 6y agoI went straight to the code and didn’t read past the github link - but read through it now. That process described isn’t in the code.. One other thing I noticed is that this uses aiopg for the async db queries instead of asyncpg, which is more widely adopted and IMO much better. I was hoping to re-run these benchmarks myself with asyncpg. Looks like actually running the benchmarks would take a bunch of manual work. In fact I don’t see instructions for running these benchmarks to replicate your results.