torture.pl for performance testing
Just catching up with the last weeks worth of messages and saw the discussion about zope performance, and thought I would point people to torture.pl. Lincoln Stein (the guy who wrote CGI.pm) has written a perl script for torture testing web servers. The July issue of Web Techniques has an article, written by Stein, about the script on page 67. Simple and useful. The code and the text of the article can be found online here: http://stein.cshl.org/~lstein/torture/ Here's the first few paragraphs of the article: This script has two functions. First, it can be used to test the speed and responsiveness of a Web server. Second, the script can be used to test the stability and reliability of a particular Web server. When used for performance testing, you can measure the speed and response time of your Web servers, CGI scripts, and other Web enhancements. Although torture.pl isn't rigorously normalized for cross-server comparisons the way the WebStone metric is, it's good for measuring changes on a single Web server. When used in torture-testing mode, torture.pl sends large amounts of random data to a server, trying to make it crash. If a server, CGI script, module, or template processor can't handle large amounts of random data, then it's not particularly well written and might even contain security holes. _______________________________________________________________ karl fast fast@lights.com
Karl Fast wrote:
Just catching up with the last weeks worth of messages and saw the discussion about zope performance, and thought I would point people to torture.pl.
Thanks for the tip. I downloaded it, and here's what I got. I ran it on vanilla Zope 1.10.2, no changes to defualt page, PII 266, 128MB RAM, Redhat 6 with 2.2.9. I have something like 98% idle, and I'm running Netscape. The commandline was set to 1000 max length of request, 10 clients, running the test 100 times, connecting to http://localhost:9673/. The server continued to run, rather slowly, at all times during the test. POST, random junk in query string: Transactions: 1000 Elapsed time: 40.800 sec Bytes Transferred: 1191448 bytes Response Time: 0.42 sec Transaction Rate: 24.51 trans/sec Throughput: 29202.17 bytes/sec Concurrency: 10.3 Status Code 200: 1000 POST, random junk in URL path: Transactions: 1000 Elapsed time: 247.674 sec Bytes Transferred: 1207847 bytes Response Time: 2.38 sec Transaction Rate: 4.04 trans/sec Throughput: 4876.76 bytes/sec Concurrency: 9.6 Status Code 200: 2 Status Code 404: 995 Status Code 500: 3 GET, random junk in query string: Transactions: 1000 Elapsed time: 53.768 sec Bytes Transferred: 1179660 bytes Response Time: 0.34 sec Transaction Rate: 18.60 trans/sec Throughput: 21939.82 bytes/sec Concurrency: 6.3 Status Code 503: 1000 GET, random junk in URL path: Transactions: 1000 Elapsed time: 170.293 sec Bytes Transferred: 1176253 bytes Response Time: 1.66 sec Transaction Rate: 5.87 trans/sec Throughput: 6907.22 bytes/sec Concurrency: 9.7 Status Code 200: 2 Status Code 404: 997 Status Code 500: 1 -- Itamar - itamars@ibm.net -----------------------------o-------------------------------------o Sealingwax Greeting Cards | The only good morning is a dead one | http://www.sealingwax.com/ | --Richard Stallman |
participants (2)
-
Itamar S.-T. -
Karl Fast