7 ms·
Does this work with uvloop?
by tcgarvin 10y ago
Does this work with uvloop?
- sametmax 10y agoDoes it blend ?
- hyperbovine 10y ago*Will
- akubera 10y agoYes! An initial test last night of a trivial growler app (i.e. one method that replies with a simple string) saw a median response time drop from ~200ms to ~80ms. (using apachebenchmark, n=1000 c=100)
- zeemonkee3 10y agoHow well would it work with, say, PostgreSQL? Would you need to use async wrappers like aiopg in your views?
- ssahoo 10y agohttps://github.com/aio-libs/aiopg https://github.com/aio-libs/aiopg should work.
- akubera 10y agoFor optimal performance, yes use aiopg or equivalent (it looks like there is an asyncio sqlalchemy project which might be nice.) Any middleware may be a coroutine object, so it's as easy as `await res.render("whatever")` in an async function
- xxpor 10y agoWait, p50 using the built in asyncio loop is 200ms? That seems incredibly slow.
- sandGorgon 10y agodo you have this in a github somewhere ? would love to check it out. Also would be nice to see this same thing with postgres DB access.