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

benchmark #2

Open
MajidHeydari opened this issue Feb 10, 2021 · 2 comments
Open

benchmark #2

MajidHeydari opened this issue Feb 10, 2021 · 2 comments

Comments

@MajidHeydari
Copy link

Why is it low in the benchmark?
https://github.com/the-benchmarker/web-frameworks

@LiorA1
Copy link

LiorA1 commented Dec 18, 2021

  • Need Profile to detect the time consuming parts.

  • In the FastAPI code, they disable the logging. maybe it will help ?

  • In the django code, they use "meinheld" - maybe it is faster..

@LiorA1
Copy link

LiorA1 commented Dec 19, 2021

Tried to profile, the views raised an exception, besides the "index" view.
here are the results, if anyone want to continue:
https://github.com/LiorA1/d_ninja_profile

Edit:
So I tried to see the differences between django and django-ninja in more detail.
It seems that the use of meinheld is the main reason.
But django-ninja are still behind all django middleware, so maybe this is the reason for the difference relative to FastAPI.

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