goldb.org home

AS OF MAY 2008, THIS BLOG IS NO LONGER BEING UPDATED.
Visit the new blog at: http://coreygoldberg.blogspot.com



 Sunday, October 14, 2007

Python - Simple Multithreaded HTTP Load Generator/Timer

This is a module for generating concurrent requests to an HTTP server.  Each thread makes HTTP GET requests to a single URL at the specified interval.  Threads are added over a given rampup time if you want to generate increasing load.  Response times are printed to STDOUT.  Can be used for cursory performance benchmarking or load testing a web resource.

load_generator.py module

sample usage:


#!/usr/bin/env python

from load_generator import LoadManager

lm = LoadManager()
lm.msg = ('www.example.com', '/')
lm.start(threads=5, interval=2, rampup=2)
#    Comments [3] |
Monday, October 15, 2007 5:01:24 PM (Eastern Standard Time, UTC-05:00)
See also http://sourceforge.net/projects/pywebperf/
Tuesday, October 16, 2007 8:10:35 AM (Eastern Standard Time, UTC-05:00)
@Richard

> See also http://sourceforge.net/projects/pywebperf/

I also have a larger tool for web performance that I will be releasing soon. This was just an example load generator. Thanks for the link though.

-Corey
Wednesday, October 17, 2007 11:06:48 AM (Eastern Standard Time, UTC-05:00)
Looking for that Pylot tool, Corey :) just now i am testing the SOAP.

Cheng Chi
Comments are closed.