| Oct | NOV | Dec |
| 23 | ||
| 2019 | 2020 | 2021 |
COLLECTED BY
Collection: github.com
* Adds loop.shutdown_default_executor(), a new coroutine method added to asyncio in 3.9 for safe finalization of the event loop's ThreadPoolExecutor.6ef69a7
The above chart shows the performance of an echo server with different
message sizes. The sockets benchmark uses loop.sock_recv() and
loop.sock_sendall() methods; the streams benchmark uses asyncio
high-level streams, created by the asyncio.start_server() function;
and the protocol benchmark uses loop.create_server() with a simple
echo protocol. Read more about uvloop in a
blog post
about it.
$ pip install uvloopNote that it is highly recommended to upgrade pip before installing uvloop with:
$ pip install -U pip
uvloop.install() before calling asyncio.run() or
manually creating an asyncio event loop:
import asyncio import uvloop async def main(): # Main entry-point. ... uvloop.install() asyncio.run(main())
$ git clone --recursive git@github.com:MagicStack/uvloop.git $ cd uvloopCreate a virtual environment and activate it:
$ python3.7 -m venv uvloop-dev $ source uvloop-dev/bin/activateInstall development dependencies:
$ pip install -r requirements.dev.txtBuild and run tests:
$ make $ make test