简体   繁体   中英

Django Soak Testing Bulk Request at once

I want to test whether Django can handle heavy load requests at once continuously. How to conduct this scenario? using tests?.

Eg:

300 Read requests 
300 Write requests
within 1 sec.

You can take any basic ORM query like

User.objects.get(id=`some id)

for 1 request and take this as 300 different read requests. Same for write requests as well but change any field of your choice. Later check if that works for at-least 10 sec.
You can think of this scenario as multiple concurrent users using the Django app.

I think I got the solution myself to use locust But I'll still wait for someone to give a better answer before accepting my own answer. There is also a paid site for testing Django - gatling

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM