Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.


In reply to Re: Timing web page download. by sundialsvc4
in thread Timing web page download. by Eyck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-18 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found