[New-bugs-announce] [issue32204] async/await performance is very low
report at bugs.python.org
Sun Dec 3 04:09:09 EST 2017
New submission from Liran Nuna <liranuna at gmail.com>:
The performance of async/await is very low when compared to similar code that implements similar functionality via iterators, such as Quora's asynq library (https://github.com/quora/asynq/tree/master/asynq).
Based on my benchmarks, asynq is almost twice as fast as async/await.
I have found some performance hanging fruit when benchmarking (See attached GitHub PR).
$ time python batch_asyncio.py
$ time python batch_asynq.py
nosy: Liran Nuna, yselivanov
title: async/await performance is very low
versions: Python 3.6
Added file: https://bugs.python.org/file47313/batch_asyncio.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce