hypercorn icon indicating copy to clipboard operation
hypercorn copied to clipboard

Performance issue

Open davidbrochart opened this issue 1 year ago • 2 comments

I opened https://github.com/davidbrochart/anycorn/pull/12 to benchmark anycorn against hypercorn, and also asyncio against Trio, and I'm a bit puzzled by the results:

tests/test_performances.py::test_http_performances[asyncio-anycorn] HTTP GETs: 832
tests/test_performances.py::test_http_performances[asyncio-hypercorn] HTTP GETs: 23
tests/test_performances.py::test_http_performances[trio-anycorn] HTTP GETs: 754
tests/test_performances.py::test_http_performances[trio-hypercorn] HTTP GETs: 23

As you can see, hypercorn performs very badly. Do you have any idea why?

davidbrochart avatar Apr 30 '24 12:04 davidbrochart

Actually this seems to be the case only on Ubuntu. On macOS and Windows, hypercorn is a bit faster than anycorn.

davidbrochart avatar Apr 30 '24 12:04 davidbrochart

How is the performance of hypercorn as a service, receiving http2 requests?

hanzhenbjm avatar Jun 03 '24 02:06 hanzhenbjm