Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue #219

Open
davidbrochart opened this issue Apr 30, 2024 · 2 comments
Open

Performance issue #219

davidbrochart opened this issue Apr 30, 2024 · 2 comments

Comments

@davidbrochart
Copy link

I opened davidbrochart/anycorn#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
Copy link
Author

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

@hanzhenbjm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants