jcr has asked for the wisdom of the Perl Monks concerning the following question:
The reason I am posting this is to ask if anyone knows of a better or more efficient way to produce a script that "pounds" a server at 'x' times per second.
Thank You very much,
jcr
here is the code:
use LWP::Simple; use Time::HiRes qw(usleep); open(URL_LIST, 'url_list.txt') || die "Cannot open: 'url_list'\n$!\n"; while(<URL_LIST>) { chomp; get($_); usleep('0.03'); } close(URL_LIST);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Efficiently send GET requests under a second
by tilly (Archbishop) on Oct 03, 2000 at 15:14 UTC | |
by Fastolfe (Vicar) on Oct 03, 2000 at 18:33 UTC | |
|
Re: Efficiently send GET requests under a second
by Jouke (Curate) on Oct 03, 2000 at 11:23 UTC |