Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ab is a quick and dirty way: http://httpd.apache.org/docs/2.0/programs/ab.html

You can send it particular URLs that do your desired DB read/write requests.

For more in depth testing, I've heard HttpUnit is good (http://httpunit.sourceforge.net/), though I don't have much experience with it.



I am using Pythonpaste's webserver - does this only work on apache? httpunit looks interesting...


No, it's just HTTP. It just happens to come with apache, that's all.


Right. Here's a simple example:

ab -n 10000 -c 25 http://your.com/your.py

10000 hits, with 25 concurrent requests. You can keep cranking up -c n and see what happens. This is also useful for testing your network capability, e.g. simultaneous connections, from a fast remote network.


Thanks, I am using Siege which does this and a bit.. If i am going to learn anything new then httpunit it is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: