Open davidbrochart opened 7 months ago
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?
Actually this seems to be the case only on Ubuntu. On macOS and Windows, hypercorn is a bit faster than anycorn.
How is the performance of hypercorn as a service, receiving http2 requests?
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:
As you can see, hypercorn performs very badly. Do you have any idea why?