Mar 31, 2002, 4:53 AM
Post #4 of 5
Re: [angelito] Slow response time
[In reply to]
I've tried both pages and the second one is really faster to load (adsl connection).
What does your script do? I mean does it make operations on a database to see what banners are shown, how much times, etc etc or are you just using a flat file?
Try to benchmark your code, and when it is sent to the browser, by putting timestamps at the start and end of the html, and around the place you call the banners routine (for example), maybe it can show up something interresting?
The host seems to have "normal" reply times, but the webserver may be on another machine:
Pinging memudo.com [126.96.36.199] with 32 bytes of data:
Minimum = 183ms, Maximum = 196ms, Average = 190ms
Pinging perlguru.com [188.8.131.52] with 32 bytes of data:
Minimum = 101ms, Maximum = 106ms, Average = 103ms
Pinging perl.com [184.108.40.206] with 32 bytes of data:
Minimum = 183ms, Maximum = 186ms, Average = 184ms
Pinging userfriendly.org [220.127.116.11] with 32 bytes of data:
Minimum = 188ms, Maximum = 190ms, Average = 188ms
Did you tried to check the time it takes to run other scripts, try for example displaying a random line from a 100_000 lines txt file...??
If you have access to a few tools (or to something like a /proc filesystem) to see the machine's load charge and try to print the results from a script?