Skip to content

Commit a8585f7

Browse files
committed
readme: Add a section about uvloop performance
1 parent 85b7f3d commit a8585f7

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

README.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,27 @@ uvloop is a fast, drop-in replacement of the built-in asyncio
99
event loop. uvloop is implemented in Cython and uses libuv
1010
under the hood.
1111

12-
Read more about uvloop here:
13-
http://magic.io/blog/uvloop-blazing-fast-python-networking/
14-
1512
The project documentation can be found
1613
`here <http://uvloop.readthedocs.org/>`_.
1714

1815

16+
Performance
17+
-----------
18+
19+
uvloop makes asyncio 2-4x times faster.
20+
21+
.. image:: performance.png
22+
:target: http://magic.io/blog/uvloop-blazing-fast-python-networking/
23+
24+
The above chart shows the performance of an echo server with different
25+
message sizes. The *sockets* benchmark uses ``loop.sock_recv()`` and
26+
``loop.sock_sendall()`` methods; the *streams* benchmark uses asyncio
27+
high-level streams, created by the ``asyncio.start_server()`` function;
28+
and the *protocol* benchmark uses ``loop.create_server()`` with a simple
29+
echo protocol. Read more about uvloop performance
30+
`here <http://magic.io/blog/uvloop-blazing-fast-python-networking/>`_.
31+
32+
1933
Installation
2034
------------
2135

performance.png

25.6 KB
Loading

0 commit comments

Comments
 (0)