Website stress test in Python - Django

I'm trying to build a small stress test script to test how quickly a set of requests gets done.

Need to measure speed for 100 requests.

Problem is that I wouldn't know how to implement it, as it would require parallel url requests to be called. Any ideas?

Answers


Why build it?

There are several available.

  1. For a single url and many requests try ab
  2. For multiple urls and random tests try siege

Also, there is an awesome open-source pure-python distributed and scaleable locust framework that uses greenlets. It's great at simulating enormous amount of simultaneous users.


If you want to stay within the Python framework you might try Corey Goldberg's Pylot or its successor multi-mechanize.


Although this question is quite old, I'd like to point out a nifty tool about this problem. The tool is funkload.


I'm not sure if this exactly the type of testing you were looking for but BrowserMob uses Selenium to do browser load testing. It works as if many browsers were pounding on your site simultaneously. It isn't created for any specific framework and should work on pretty much any web app.


Need Your Help

When to release UIImage and NSString Resources

iphone objective-c memory-management nsstring uiimage

I'm trying to get my memory management right and in the code below, if I include the final release statement (the one for filePath), it crashes and I can't see why. I've alloc'ed it, so why should...

dropzone doesnt upload some pictures (internal server error 500)

javascript php server dropzone.js

i use dropzone for file(images) upload. when i upload on my local computer, files upload successfully. but when i upload files on my web host, dropzone gives iternal server error on some pictures(n...