Performance Testing Using Jmeter

Performance Testing

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

  1. JMeter is an open source desktop Java application that is designed to load test and measure performance.
  2. 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.
  3.      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 :

  1. 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 info@evincetech.com, also you can call us at following numbers.
India: (+91) 44 42170775, (+91) 91766 40375
USA [Toll Free]: 866 220 6565

Ways to improve the website performance

1. Effective landing page

A landing page is a page designed to receive the traffic generated by a specific marketing campaign. The job of a landing page is to convert that traffic into actions, such as a phone call, sign up, download or a purchase. Provide information that serves the needs of your target audience. For example, if you are selling gift items, provide content that educates the customers on the Unique Selling Point (USP) and the ease of use of the Website Development India . This kind of information enhances your brand, builds trust and makes people want to do business with you.

2. Minimize HTTP Requests

Web page’s load time is spent downloading the different pieces-parts of the page: images, stylesheets, scripts, Flash, etc. An HTTP request is made for each one of these elements, so the more on-page components, the longer it takes for the page to render.
That being the case, the quickest way to improve site speed is to simplify your design.

1.       Combine CSS and JavaScript files to reduce HTTP requests.
2.       Avoid inline CSS and JavaScript
3.       Use CSS sprites to reduce HTTP requests
4.       Avoid inline CSS and JavaScript

3. Use right formatted image

If you have a lot of images, it’s essential to learn about the optimal format for each image. There are three common web image file formats: JPEG, GIF, and PNG. In general, you should use JPEG for realistic photos with smooth gradients and color tones. You should use GIF or PNG for images that have solid colors (such as charts and logos). GIF and PNG are similar, but PNG typically produces a lower file size.

4. Enable Browser Caching

When a web browser displays the webpage it has to load several things like your logo, CSS file, images, banner, java script and other elements.
What browser caching does is “remember” ie stores the elements/resources that the browser has already loaded in a temporary storage. When a visitor goes to another page on the website the logo or CSS file does not need to be loaded again, because the browser has them “remembered”. The end result is that the pages load much faster.
Set different caching time for all the elements/resources. The set  time period can be like “1 year” or “1 month”. The time period allocation is associated with file types and if you want to change that it can be directly changed in the code. The values above are pretty optimized for most of the WebPages. For all cacheable resources (JS and CSS files, image files, media files, PDFs, etc.), set Expires to a minimum of one week, and preferably up to one year in the future.

5.Minify Resources

Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser – e.g. code comments and formatting, removing unused code, using shorter variable and function names, and so on. WYSIWYG resources make it easy to build a Web page, but they sometimes create messy code—and that can slow your website considerably.
You should minify your HTML, CSS, and JavaScript resources.Web Development India There are minification tools that can be used to minify and rename the development files and save them to a production directory.

Some of the minification tools:

Ø  To minifying HTML, you can usePageSpeed Insights Chrome Extension to generate an optimized version of your HTML code. Run the analysis against your HTML page and browse to the ‘Minify HTML’ rule. Click on ‘See optimized content’ to get the optimized HTML code.

Ø  To minify CSS, you can tryYUI Compressor andcssmin.js.

Ø  To minify JavaScript, try theClosure Compiler,JSMin or theYUI Compressor.

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 info@evincetech.com, also you can call us at following numbers.
India: (+91) 44 42170775, (+91) 91766 40375
USA [Toll Free]: 866 220 6565

Key Points to develop a Better Website

The key things to focus on are making the site as easy to use and user-friendly as possible.Web Design India There are hundreds of things you could be doing but below explained are few points that helps you to build a better website:

1. Loading time of the page

The website must load as fast as possible. The readers must view the complete website in a fraction of a second. The thing about speed is that people only notice it when it’s absent. So creating fast web pages often feels unappreciated, but make sure that the website pages won’t be slow, and so your readers will stay longer. Below are few tips to speed up your website:

  • Speed up Images Load Time
  • Leverage browser caching
  • Remove query strings from static resources
  • Avoid bad requests and broken links
  • Remove Anything You Don’t Really Need

2. Action on every page

Every page on your website should be making your visitor act on something. Maybe it’s to get them to purchase your ebook, view your credentials, or watch a demo video. Whatever it is, make it known to the user. Remember, they don’t want to think when they’re browsing your site. Whether it’s a button or a hyperlink, but something on every page that leads them to the action you ultimately wants them to take.

3. Mobile Friendly website

Mobile is the current trend for most of the users. With over most of the users owning a smartphone, your new customers are likely to come from mobile browsing. But, it’s tough to navigate a site not optimized for mobile and tablet screens. So when designing a website make sure that its responsive so that it fits for the major resolution to support all mobile screens.

4. Contact details on the home page

Every website should have their own contact details like, phone no, mobile no, email id and address. These details are often buried on a contact page or not on the website at all. Web Development India That’s a big mistake! Make sure to place the contact no. on the most prominent place so that users can view the contact details throughout the website. Many users will just want to find your phone number to get in touch with you, so make it prominent on your homepage or in the header of your Website.

5. Go Social with customers

Today, people want, love and expect businesses to have an active social media presence. This also means having an active social presence that can help satisfy customer service needs with real-time responses. When customers can’t reach your company—or get an immediate response—through traditional channels such as your main phone number, help desk, or email address, they typically turn to your social media channels.
So go social – to start of with facebook, twitter and linked and then move on to other networks.

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 info@evincetech.com, also you can call us at following numbers.
India: (+91) 44 42170775, (+91) 91766 40375
USA [Toll Free]: 866 220 6565