News for hackers. Stuff that matters.
Re:Ask YC: What do you use to stress test your app/db? by epi0Bauqu on Sunday March 16, 2008 @10:44AM (#138178)
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.

Re:Ask YC: What do you use to stress test your app/db? by kashif on Sunday March 16, 2008 @12:41PM (#138238)
I am using Pythonpaste's webserver - does this only work on apache? httpunit looks interesting...
Re:Ask YC: What do you use to stress test your app/db? by inklesspen on Sunday March 16, 2008 @12:51PM (#138242)
No, it's just HTTP. It just happens to come with apache, that's all.
Re:Ask YC: What do you use to stress test your app/db? by epi0Bauqu on Sunday March 16, 2008 @12:57PM (#138245)
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.

Re:Ask YC: What do you use to stress test your app/db? by kashif on Sunday March 16, 2008 @01:47PM (#138268)
Thanks, I am using Siege which does this and a bit.. If i am going to learn anything new then httpunit it is.