JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy
  • Contact Us

Difference Between Load Testing and Stress Testing

February 10, 2016 by Krishna Srinivasan Leave a Comment

Load testing and stress testing are different testing activity that are often confused among the developers. Both are measuring the performance of the application but the difference is that they measure at different conditions. In simple words, load testing tests with large amount of users but stress testing tests with too many users, too much data, too little time and too little resources. In this short tutorial, I would explain the key differences between load testing and stress testing with simple examples. If you have any questions, please write it in the comments section.

Load Testing vs Stress Testing

What is Load Testing?

Load testing is conducted to a system to test the behavior of the system under the specific amount of load. Most commonly load test refers to the number of concurrent users accessing the system. The output for this testing is the response time for the requests under a specific load as mentioned in the requirements.

Example: The requirement would say that system has to respond with in 5 seconds for every request with the maximum concurrent users of 10000. In this scenario, you will have to simulate the behavior of system so that 10000 users accessing the system simultaneously and test the response time if that meets the system’s performance requirements.

  • Read : JMeter Tutorial

What is Stress Testing?

Stress testing is super set of a load testing. Load testing is checks only the specific load but stress test would goes beyond that requirements. Stress testing is kind of negative testing, it checks if the load of the system goes well beyond the limit set by the load testing and at what point of time the system will fail.

Also stress testing would check the unexpected situations like reducing the system resources, one of the server goes down and observe how the system is recover the unexpected failures of the system.

  • Read : Testing support in Spring Framework

Example: In the above example for load testing we have learnt that it checks for the specified number of users whether it responds within stipulated time period, but stress testing would checks what is the maximum number of users that can be responded till server’s resources are exhausted and finally server can not respond.

Load Testing Tools

There are many popular load testing tools available in the market. Here I am listing down few of the well tools for performing the load testing.

  • Apache JMeter
  • Load Runner
  • Web Load
  • Rational Performance Tester

 

Filed Under: Java Tagged With: Java Performance Testing

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow Us

  • Facebook
  • Pinterest

As a participant in the Amazon Services LLC Associates Program, this site may earn from qualifying purchases. We may also earn commissions on purchases from other retail websites.

JavaBeat

FEATURED TUTORIALS

Answered: Using Java to Convert Int to String

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved