6 ms·
ab is a quick and dirty way: http://httpd.apache.org/docs/2.0/programs/ab.html http://httpd.apache.org/docs/2.0/programs/ab.html You can send it particular URL
by epi0Bauqu 19y ago
ab is a quick and dirty way: http://httpd.apache.org/docs/2.0/programs/ab.html 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/ http://httpunit.sourceforge.net/), though I don't have much experience with it.
- kashif 19y agoI am using Pythonpaste's webserver - does this only work on apache? httpunit looks interesting...
- inklesspen 19y agoNo, it's just HTTP. It just happens to come with apache, that's all.
- epi0Bauqu 19y agoRight. Here's a simple example: ab -n 10000 -c 25 http://your.com/your.py 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.
- kashif 19y agoThanks, I am using Siege which does this and a bit.. If i am going to learn anything new then httpunit it is.