"How much CPU time do you expect to use to gzip a 70KB page ?"

Wouldn't that depend on various factors?

My point was that your suggested ten minute change could end up doing more harm than good, as others have also suggested.

The metric in your example does not take into consideration any of the factors including the servers CPU speed, the servers memory, the applications (Perlmonks custom version of everything and the DB queries) or the load. As you say "I don't have the statistics of your site, nor the server specifications".

Your suggestion that compressing data on your laptop (with a relatively modern CPU) is a comparable benchmark for running compression on old servers isn't, IMHO, a sensible approach to benchmarking the impact nor justification for someone taking ten minutes out of their day to implement your untested change, which may take longer to recover from should the resulting performance be unfavourable.

Failure to consider your environment can lead to trouble.


In reply to Re^3: Enhancing Speed by marto
in thread Enhancing Speed by ahmad

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.