Thursday, January 29, 2009

Client-side performance testing of Web applications

Testing Goals:
- Improve Web-site performance

Measurements:
- Total Sequence Time (total time of page loading)
- Request Count (amount of requests while opening testing page)
- Page download Size

Tools Required:
- IE / FireFox
- Fiddler2

Test Flow:
- Prepare the test cases you would like to cover in Performance Testing
- Clear cache and cookies of the browser
- Get Fiddler in to the recording mode - F12
- Run prepared test cases
- Save the Fiddler log and clear the fiddler session
- Run prepared test cases again without clearing cache and cookies to measure cached site performance
- Analyze results

Analyzing results:
- Total Sequence Time: good result is <= 3 seconds
- Request Count: good result is <= 50 requests
- Page download Size: good result is <= 100 KB

Example:
- Google search for 'fiddler2' - good performance :)