Performance testing is in general testing performed to determine how a system performs in terms of responsiveness and stability under a particular workload.
If you want customers to stay or return to your web site you have to make, sure the performance of your web site is good. If customers have long wait times to use your web site applications they will get frustrated and go to your competitor. You must ensure that web pages download quickly.
Performance Testing Using JMeter
- JMeter is an open source desktop Java application that is designed to load test and measure performance.
- JMeter can discover maximum number of concurrent users that your website can handle.It can be used to simulate loads of various scenarios and output performance data in several ways, including CSV and XML files, and graphs.
- JMeter Performance Testing includes:
- Load Testing :
Load Testing is a process to design and simulate usage traffic which can be used to test your application infrastructure for performance, reliability and scalability. Success of most Web Development India or database applications, specially the ones related to e-commerce highly depends on its performance and response time when multiple users access it simultaneously. An application with high response time and poor performance can lead to huge problems. Load Testing helps in identifying the performance problems before you deploy your application for end users. This modelling the expected usage by simulating multiple user access the web services concurrently.
- Stress Testing:
Every web server has a maximum load capacity. When the load goes beyond the limit, the web server start responding slowly and produce errors. The purpose of the stress testing is to find the maximum load the web server can handle. The Stress test can combine aspects of performance testing and security testing. An example in case is the process of stress testing firewalls which require concurrent system loads combined with actual attacks against the component.
The figure below shows how JMeter simulates the heavy load :
- Steps to build-up a Performance Test Plan in JMeter:
Step 1: Create the Thread Group
- Start JMeter
- Select Test Plan on the tree
- Add Thread Group
Right click on the Test Plan and add a new thread group: Add à Threads (Users) à Thread Group
In Thread Group control panel, enter Thread Properties as following:
Number of Threads: 100 (Number of users connects to target website: 100)
Ramp-Up Period: 100
Loop Count: 10 (Number of time to execute testing)
Step 2: Add JMeter elements
In this article we will Add,HTTP request Default element.
To get this element, go to Thread Group and right-clicking, from context menu select
Add -> Config Element -> HTTP Request Defaults.
In HTTP Request Defaults, under the Web Server section, fill in the Server Name or IP field with the name or IP address of the web server you want to test. Setting the server here makes it the default server for the rest of the items in this thread group.
If you keep the Path field blank JMeter will create the URL request http://www.evincetech.com to Evince server.
Step 3: Add a View Results in Table Listener
Add a View Results in Table Listener. In JMeter, listeners are used to output the results of a load test. There are a variety of listeners available, and the other listeners can be added by installing plugins. We will use the Table because it is easy to read.
Select Thread Group, then Right-click it
Mouse over Add >
Mouse over Listener >
Click on View Results in Table
You may also type in a value for Filename to output the results to a CSV file.
Table Result show summary of test result in table format
Step 4: Adding Graph result
JMeter can show the test result in Graph format.
Right click Test Plan, Add à Listener àGraph Results
In JMeter interface, click on Run button or press Ctrl + R on Toolbar to execute the test. It will display the real time test result in Graph.
Black: The total number of current samples sent.
Blue: The current average of all samples sent.
Red: The current standard deviation.
Green: Throughput rate that represents the number of requests per minute the server handled.
To know more about our web and mobile development service visit http://evincetech.com.
For more information, please contact us with the specifications for your project. You can email our sales team at firstname.lastname@example.org, also you can call us at following numbers.
India: (+91) 44 42170775, (+91) 91766 40375
USA [Toll Free]: 866 220 6565