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)
Copyright © 2006-2008 Corey Goldberg
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.