Forum Moderators: phranque

Message Too Old, No Replies

Optimizing Page Load . how to measure success?

More discussion of compression methods, and measuring their effect.

         

jcmoon

5:10 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



About a month ago, Brett said "Compression Works! [webmasterworld.com]" and there was insightful discussion on various methods of minimizing the bits sent out to the browser, to save on bandwidth and perhaps decrease the time it takes a page to load. Apache's mod_deflate utility was the big takeaway, along with advice to carefully consider ways of streamlining various processes with this goal in mind.

About a week ago, Google Engineer Aaron Hopkins discussed other methods [die.net] for reducing the page load time ... ideas such as HTTP pipelining (something a user can enable in their browser), spreading objects among multiple domains (something a web admin can do), and serving fewer, larger files as opposed to many small ones (again, something in our control). Fascinating stuff, especially the reasoning given behind each idea.

While these all sound like great methods to provide our visitors with a better experience, is there a way to simply measure the results?

At first I thought to myself, the bots! Google's webmaster console now shows the average time, in miliseconds, it spends downloading each of your pages over the last 3 months ... so there's one measurement. Then, there's Xenu's Link Sleuth -- it also shows the duration, although in seconds, for loading pages from whichever site it's hitting (note: I run Xenu on my top-priority sites bi-weekly).

But ... I am wrong on both counts, amn't I? While using mod_deflate will have an effect on the html sent to Googlebot or Xenu, that's the only change, as Googlebot doesn't retrieve every image every time it loads every page, does it? Xenu I know only retrieves an image once in a session.

Browsers don't work this way, do they? To the point, when I get these changes taken care of, I won't be able to use Google's console or Xenu's Link Sleuth to see much of a measurable change, will I? So, without being able to measure the improvement, it's more difficult to justify expending time and energy toward it.

So ... if you intend to move your site in this direction -- toward using less bandwidth, and toward decreasing the load time for your visitors -- how do you intend to measure your success?

physics

1:02 am on Nov 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Right, robots generally just grab the text of a page. Certain bots to grab images but usually on an individual basis.

All hope is not lost though. You may be able to do some tests with wget (on Linux or with Cygwin), use an online web site speed checker, or dowload a special browser extension.


wget --header="accept-encoding: gzip" --page-requisites --cache=off http://www.example.com/

By running this test several times and looking at the size of the output and how long it took (do with and without the --header command) you can get a measure of how much your compression is helping. You could also write a perl script to automate this...