in reply to Loading time

Uhm, yeah, you could use Perl. But determining whether something takes "too long" isn't simple. There's a lot that is involved when requesting a URL. Your machine. Your network. The network between you and the server. The network at the server side. The load on the server. Etc, etc. Not all of them are under the control of the server. side.

The hardest problem is figuring out what is "too long" and whose fault it is.

Abigail

Replies are listed 'Best First'.
Re: Re: Loading time
by gwadej (Chaplain) on Sep 04, 2003 at 23:33 UTC

    Although I agree that it may not be a complete solution, LWP can often be used as a quick sanity check on a site.

    For a more robust version, I guess you could add calls to Net::Ping to get some idea of network latency and such.

    I actually used this as a test on some production servers. The important part was not the actual time value, but the difference from a baseline. In our case, a factor of two was not important, but a factor of ten was critical.

    G. Wade

      Don't over-estimate the value of pings though. There are too many routers out there that give priority to ICMP messages, which will make ping show much quicker round trip times that you'll get once you use TCP/IP. I'd only wish that connecting to the Internet from work was as fast as 'ping' shows. :-(

      Abigail