[httperf] ASCII NUL seperated list
Martin Arlitt
httperf@napali.hpl.hp.com
Thu, 25 Oct 2001 6:40:57 PDT
Frank
an ASCII NUL separated list is a list of the uris separated by the
'\0' character. for more information check out the comments in
gen/uri_wlog.c.
here is a simple program for creating such a list:
/* program to create ASCII NUL separated list to use with --wlog option */
/* to compile: cc -o create_wlog create_wlog.c */
/* program accepts list of uris on command line */
/* e.g., ./create_wlog /empf/empfang.html /empf/info.html > wlog.txt */
/* to use with httperf: */
/* httperf --server=X --wlog=y,wlog.txt --num-conns=Y */
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int i;
/* usage information */
if(argc==1)
{
fprintf(stderr,"usage: %s uri0 ... uriN\n");
exit(-1);
}
/* read all uris, print in NUL separated list */
for(i=1; i<argc; i++)
fprintf(stdout,"%s%c", argv[i],(char)0);
return(0);
}
Martin
>
>
> Hi everybody,
>
> I used that very efficient tool httperf in the last few days pretty
> extensively. Thx to David for developing such a great tool!
>
> Now I've got a question that nobody of my guru friends could answer to me:
>
> What is an ASCII NUL seperated list?
>
> I tried to test a site built up of frames. So I wanted to give httperf a
> list of uris in a file for the --wlog option. That didn't work.
> My call is something like the following:
>
> httperf --timeout=20 --server=... --port=80 --wlog=y,uri-file --rate
> 6 --num-conns=6 --num-calls=1 >komplett6.1.log
>
> with "uri-file" looking like:
>
> =====================8<===================
> /empf/empfang.html
> /empf/info.html
> =====================8<===================
>
> That only gives a lot of errors. Could someone please help me by giving me
> the
> correct list-format?
> Thank you very much,
> FS
>
> PS: Please reply directly to my adress, I'm not on the list!
>
> --
> Dr. Frank Schouren
> CharlesBernd AG
> +49 (0) 89 64 95 77 02
>
>
>
> --
> To unsubscribe: echo unsubscribe httperf | mail majordomo@linux.hpl.hp.com
>
--
To unsubscribe: echo unsubscribe httperf | mail majordomo@linux.hpl.hp.com