How to do Performance Testing in the simplest way for Web Application
June 21, 2011 Leave a Comment
Introduction:
Performance testing is a type of testing intended to determine the responsiveness, throughput, reliability, and/or scalability of a system under a given workload. Performance testing is commonly conducted to accomplish the following:
1.Assess production readiness
2.Evaluate against performance criteria
3.Compare performance characteristics of multiple systems or system configurations
4.Find the source of performance problems
5.Support system tuning
This Blog explains how to carry out a performance testing in the simplest way without much coding, scripting with open source tools (Badboy, Jmeter) in Windows environment.
Please download Badboy from http://www.badboy.com.au/download
Please download Jmeter from http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
The 4 major steps to follow to do performance testing are as follow:
1.Scripting
2.Execution
3.Configure and Collect Performance Statistics
4.Reporting
1.Scripting:
Launch Badboy and record the business transactions to be measured.
Let’s take an example of measuring the performance of launching the Web Application and Login transaction as detailed below,

Export the Script to Jmeter using the “Export” option as mentioned below.

2.Execution:
Open the Exported jmx file in Jmeter and add necessary report features as available in Jmeter for measuring the Response Time

Configure the number of users to be run for the test as mentioned below in the ThreadGroup.

Execute the Test by typing Ctrl+E, Ctrl+R
3.Configure and Collect Performance Statistics:
All windows systems comes with “Perfmon” application to measure and monitor the Performance counters.Launch Perfmon by going to Start>Run>Perfmon of the Server.
Once Perfmon is launched , Navigate to Data collector Sets> User Defined and create an Performance Counter and configure necessary counters by adding to the set as below.



Start the Collector Set by clicking the “Start” option while running the tests so that the statistics are written in the csv file as configured. Stop the collector Set by clicking the “Stop” once the test is done.
4.Reporting:
Generate Response Time Graph from Jemeter Result as below sample.

Open the csv file in which the necessary performance counters data has been collected and generate graph using excel Chart Wizard feature as below CPU sample.

Thanks for Reading the blog. Hope it was useful for you. Please don’t hesitate to post comments if you got any clarification/feedback. Thanks a lot.
Recent Comments