<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 November 2016 at 23:09, Yury Selivanov <span dir="ltr"><<a href="mailto:yselivanov@gmail.com" target="_blank">yselivanov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Also, are you using uvloop or vanilla asyncio? Try to benchmark vanilla first. And if you have time, please try to test different combinations on vanilla asyncio:<br>
<br>
Python 3.5 + vanilla asyncio<br>
Python 3.6 + vanilla asyncio<br>
Python 3.6 + Py Future + Py Task<br>
Python 3.6 + Py Future + C Task<br>
Python 3.6 + C Future + C Task<br>
Python 3.6 + Py Future + Py Task<br></blockquote><div><br></div><div>These are results of an asyncio-based benchmark - no sockets involved - highly nested coroutines</div><div>The --io uv flag indicates a run with uvloop.</div><div><br></div><div>py35 setup.py bench -a coroutine</div><div>TestCoroutine.test_coroutine: repeated 10(x1000) times, average 0.50100 secs, stdev 1.13 %<br></div><div><br></div><div>py35 setup.py bench -a coroutine --io uv<br></div><div>TestCoroutine.test_coroutine: repeated 10(x1000) times, average 0.08246 secs, stdev 3.87 %<br></div><div><br></div><div><div>py36 setup.py bench -a coroutine<br></div><div>TestCoroutine.test_coroutine: repeated 10(x1000) times, average 0.26563 secs, stdev 2.35 %<br></div></div><div><br></div><div><div>py36 setup.py bench -a coroutine --io uv<br></div><div>TestCoroutine.test_coroutine: repeated 10(x1000) times, average 0.06762 secs, stdev 5.43 %<br></div></div><div><br></div><div>I'll benchmark with sockets next</div></div>
</div></div>