Benchmark

November 30, 2021 · View on GitHub

Table of Contents

TL;DR

NOTE: On Macbook Pro 2019 / 2.4 GHz 8-Core Intel Core i9 / 32 GB RAM

ServerThroughput (request/sec)Num WorkersRunner
blacksheep46,56410uvicorn
starlette44,10210uvicorn
proxy.py39,23210-
aiohttp6,6151-
tornado3,3011-
  • On a single core, proxy.py yields ~9449 req/sec throughput.
  • Try it using --num-acceptors=1

Usage

❯ git clone https://github.com/abhinavsingh/proxy.py.git
❯ cd proxy.py
❯ pip install -r benchmark/requirements.txt
❯ ./benchmark/compare.sh > /tmp/compare.log 2>&1

Results

❯ cat /tmp/compare.log