diff --git a/README.rst b/README.rst index 1b6645c..dfbb1c6 100644 --- a/README.rst +++ b/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 `_. +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 `_. + + Installation ------------ diff --git a/performance.png b/performance.png new file mode 100644 index 0000000..6bc573a Binary files /dev/null and b/performance.png differ