mirror of https://github.com/MagicStack/uvloop.git
readme: Add a section about uvloop performance
This commit is contained in:
parent
85b7f3d753
commit
a8585f768a
20
README.rst
20
README.rst
|
@ -9,13 +9,27 @@ uvloop is a fast, drop-in replacement of the built-in asyncio
|
|||
event loop. uvloop is implemented in Cython and uses libuv
|
||||
under the hood.
|
||||
|
||||
Read more about uvloop here:
|
||||
http://magic.io/blog/uvloop-blazing-fast-python-networking/
|
||||
|
||||
The project documentation can be found
|
||||
`here <http://uvloop.readthedocs.org/>`_.
|
||||
|
||||
|
||||
Performance
|
||||
-----------
|
||||
|
||||
uvloop makes asyncio 2-4x times faster.
|
||||
|
||||
.. image:: performance.png
|
||||
:target: http://magic.io/blog/uvloop-blazing-fast-python-networking/
|
||||
|
||||
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 performance
|
||||
`here <http://magic.io/blog/uvloop-blazing-fast-python-networking/>`_.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue