天天看點

Load 測試和stress測試之間的差別

Difference between Load Testing and Stress Testing:

    * Testing the app with maximum number of user and input is defined as load testing. While testing the app with more than maximum number of user and input is defined as stress testing.

    * In Load testing we measure the system performance based on a volume of users. While in Stress testing we measure the breakpoint of a system.

    * Load Testing is testing the application for a given load requirements which may include any of the following criteria:

          o  Total number of users.

          o  Response Time

          o Through Put

          o Some parameters to check State of servers/application.

    * While stress testing is testing the application for unexpected load. It includes

          o Vusers

          o Think-Time

Example:

If an app is build for 500 users, then for load testing we check up to 500 users and for stress testing we check greater than 500.

另一篇,來自wiki:

    [...]A load test is usually conducted to understand the behaviour of the system under a specific expected load. This load can be the expected concurrent number of users on the application performing a specific number of transactions within the set duration. This test will give out the response times of all the important business critical transactions.[...]

and on stress testing:

    understand the upper limits of capacity within the system. This kind of test is done to determine the system's robustness in terms of extreme load and helps application administrators to determine if the system will perform sufficiently if the current load goes well above the expected maximum.

So the bottom line is: if you are testing normal, expected load (you know the system will be used by up to 100 users at a time), this is load testing. But when you want to determine how the system behaves under extreme load (DoS, Slashdot effect) and when it breaks, this is stress testing