Average response time in django load testing

For a normal Django REST Framework, when load testing done, with 50 users and with 200 users – most of them are CRUD APIs, like profile, preferences, goal_setting, etc how much average response time should be?? Like with 200 simultaneous users, its taking average 11 seconds (other APIs ranging from 7 - 20s)

Welcome @sanjup17 !

In a production-quality deployment, sub-second response for “trivial” operations is a reasonable expectation for an individual request. Handling simultaneous load involves scaling your setup in the appropriate directions.

I also used select_related, prefetch_related, db_index, etc everything, not sure, what exactly I am missing

The first thing to do is figure out where the time is being spent. Where do you need to focus your efforts?

Forget the loading issues for the moment. What’s the average response for 100 requests issued sequentially?

Also, it might be helpful if you describe your deployment environment.

What wsgi server are you using? (gunicorn? uwsgi? something else?)

What web server are you using? (nginx? apache? something else?)

What versions of Django, DRF, Python are you using?

What database engine?

What are the specs of the server you’re running this on?