[httperf] Enhance httperf?

Jens Rehsack rehsack at liwing.de
Tue Dec 16 09:59:00 PST 2003


Hi,

I've written a small website-test tool in perl, because I require
to change the User-Agent (and maybe some other http request header
values) between each request.

The question I have is: is it interesting for httperf to be
extended to support such things, too?
Eg.: httperf --host=www.yourhost.tdl --uri / \
	--user-agents "Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5)
Gecko/20031019:10%,Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x
4.90):30%,Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0):40%,
Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD
4.8-RELEASE):5%,Opera/6.01 (Windows NT 4.0; U)  [de]:5%,Lynx/2.8.4rel.1
libwww-FM/2.14:5%,Links (0.98; FreeBSD 5.1-CURRENT i386; 145x43):5%" ...

I solved this by specifying several prepared header where the uri, the
host and the port are replaced with the requested one. The requirement
for us is the script we're testing supports different results for each
web-client, eg. no complex site structure nor graphics for lynx, frames
for netscape4, xhtml/css2 for mozilla, etc.

Would such an extension interesting for httperf? It could be useful
either for functional tests as well as to get the average time if
there're differences in execution time of the script for several
different clients.

Best regards,
Jens




More information about the httperf mailing list