Login
You're viewing the y.diskcat.com public feed.
  • Nov 14, 2026, 4:53 PM

    Wow, a modern #Python #ASGI web application can actually reach 100.000 requests per second on a 7+ year old mid-range consumer CPU (AMD Ryzen 5 3600).

    Benchmark tool: `oha` with default settings.
    ASGI Server: `uvicorn+zttp+zuvloop` with 12 workers (one per CPU thread)
    ASGI Framework: my own (not released yet)
    Application: `return b"Hello world!"`

    Fun fact: #FastAPI struggles to reach 14.000 req/s with the exact same test setup. My experimental framework is 7x faster than FastAPI :awesome:

    💬 1🔄 0⭐ 0

Replies

  • Nov 14, 2026, 5:00 PM

    Ah, sorry, benchmark had a bug. The FastAPI request handler was not async, which means FastAPI wrapped it as if it were a blocking function, even though it was a pure function.

    After fixing the mistake, I get 52k req/s with FastAPI. So my experimental framework is only twice as fast, not 7x. Mea culpa.

    Still awesome :D

    💬 0🔄 0⭐ 0