Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Timing web page download.

by sundialsvc4 (Monsignor)
on Jul 12, 2012 at 12:48 UTC ( #981392=note: print w/ replies, xml ) Need Help??


in reply to Timing web page download.

I think that the best way to estimate the page-load time of a web page is through simulation, or even deduction, not experiment.   Experimental results are too-heavily biased by the properties of the network you’re on ... which, in the case of in-house testing, is much too fast.   (Developers always have the fastest machines.)   The behavior of modern-day AJAX-driven web sites makes it difficult to produce truly-useful experimental results.

There are two aspects to the problem:   transmission time (as heavily affected by cacheing), and on-client processing time as done by javascript and as perceived by the user who is looking only at the screen display.   Since the latter is probably going to be more-or-less the same on any machine, transmission time is your singular biggest wait-time component, and browser caching behavior is your single biggest determinant of that.:   the size of the files, the number of files (line turnarounds), and the probability of a cache-hit (I/O avoidance).

One of the best and cheapest performance-improvements I managed to pull off, that really made a difference, was to observe (with Firebug) that a lot of pages in one site had been generated originally using Microsoft Word, and that this particular version of Word had generated a separate (but identical) image for every bullet and even for horizontal lines.   Even though the image content was identical, a separate file-name had been generated, hence there were many dozens of downloads of the same information ... and many duplicate copies of this data in the database(!) that served them.   It also served to “flood out” the client-side cache so that it wound up being full of lots of copies of these images (which would never be referred-to again).   A Perl script to locate and consolidate the identical images, then pass through th HTML to substitute file-names, had an enormous positive impact on the whole shebang.


Comment on Re: Timing web page download.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-08-20 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (107 votes), past polls