
freddo
User
Mar 31, 2002, 4:53 AM
Post #4 of 5
(4453 views)
|
|
Re: [angelito] Slow response time
[In reply to]
|
Can't Post
|
|
Hi Angelito, 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 [207.159.140.127] with 32 bytes of data: Minimum = 183ms, Maximum = 196ms, Average = 190ms Pinging perlguru.com [66.70.219.115] with 32 bytes of data: Minimum = 101ms, Maximum = 106ms, Average = 103ms Pinging perl.com [208.201.239.56] with 32 bytes of data: Minimum = 183ms, Maximum = 186ms, Average = 184ms Pinging userfriendly.org [204.174.18.129] 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? my $.02; freddo ;---
|