Imagos Consulting Weblog

Developers Cant Do Design (or Can They?) – Neville Richards Personal Blog

Site Performance Testing (Part 1)

There are a number of approaches to getting performance metrics for a web site. Ultimately web site performance should be best gauged by the page response within a client browser.

Using a collection of available tools such as Firefox, Firebug and Harlog you can get a realistic baseline of your expected site performance. This approach leverages Firefox and Firebug to collect data on site performance. Using Firebox to fetch pages from the site gives results that would be similar to those seen by visitors. Firebug is used to collect detailed metrics on page performance.  NetExport is a plug-in for Firebug that lets to send Firebug results to a data receiving service. Harlog is used as a data reciever to  collect metrics and to generate a tab delimited file that can be used to generate reports in Excel or another reporting tool.

Install Firefox, Firebug, NetExport and Harlog on a test PC.

Setup Harlog by downloading the latest files from http://www.imagossoftware.com/harlog/ and copying them into a suitable directory. For this example I will use c:\harlog. Create a directory under c:\harlog also called logs. Edit the HarLog.exe.config file and create a series of XML format settings between the tags. These settings are:

<add key=”directory” value=”C:\harlog\logs”/>
<add key=”output” value=”c:\harlog\results.txt”/>
<add key=”header” value=”all”/>
<add key=”style” value=”basic”/>

Now you can run the HarLog.exe with a -w switch to run as a mini-web server.

Now launch Firefox, and go to about:config (this will allow you to change the beacon URL for NetExport to send data to HarLog). Find the preference setting for extensions.firebug.netexport.beaconServerURL and if you have installed HarLog locally set the value to http://localhost:9090/ also set extensions.firebug.netexport.autoExportToServer to true. If are running HarLog on another PC or port set the address appropriately.

Next launch Firefox go to your test site, and open the Firebug window and go to the Net panel. Under the “Export” activate “Auto Export”. This will send the results from the Firebug Net “waterfall” to HarLog each time a page from the site is loaded.

When you have completed your testing, import the “results.txt” file into Excel or another reporting application to format and or chart your site results. More in part 2

Advertisements
Leave a comment »