📜  负载测试与压力测试

📅  最后修改于: 2021-01-11 01:58:47             🧑  作者: Mango

负载测试与压力测试

负载测试

负载测试是性能测试中最重要的重要部分,用于通过施加一些小于或等于所需负载的负载来检查应用程序的性能,这称为负载测试。而且负载是数量,这意味着它仅关注用户数量。

压力测试

压力测试是测试,它通过施加大于所需负载的负载来检查应用程序的行为。由于它是非功能测试,因此我们在应用程序功能稳定时使用此测试。

负载测试和压力测试之间的区别

Load testing Stress testing
Load testing is used to find the performance of the application by testing the database, networks, and website servers. Stress testing is used to find the stability and response time of the given system.
Load testing helps the tester to identify the bottleneck and also able to tell the cause of bottlenecks before deployment to the production server. Stress testing helps the tester to check the system capacity when number of users increased suddenly before the system failure or crashed.
This type of testing reproduced the load on any application and software. It is used to figure out the robustness and stability of the application.
Load testing is used to test web-based and client-server types of application. Stress testing tests suddenly increased traffic of the application.
WebLOAD, LoadView, LoadRunner, SmartMeter.io, and LoadUI NG Pro are some of the load testing tools which help us to perform load testing on the applications. LoadRunner, JMeter, NeoLoad are some of the stress testing tools which help us to perform stress testing on the applications.
After doing the load testing on the application, the cost of failure may reduce, and the satisfaction of the customer is increased. After doing Stress testing on the application, if the system got to fail, it will recover quickly by finding the breaking point early and also see where the system got crashed.
For example: if we have one scenario where the load is 100 users using the application at a 2.5\sec of goal time.
And, the desired load is 100 user.
This scenario got passed because the desired load is equal to the load, which satisfies the load testing condition.
For example: if we took the same scenario where the actual load of 100 users which are using the application at a 2.5\sec of goal time.
When the desired load got increased by 200 users, and it will become 300. So now, 300 users using the application at 2.5\sec of goal time.
It will pass because the desired load is greater than the load according to the stress testing condition.