Understanding performance, load and stress testing

性能测试通过实证技术调查提供有关产品或服务在速度、可扩展性和稳定性方面的质量信息。负载测试专注于确定或验证产品在预期生产操作时的工作负载模型和负载量下的性能特性。压力测试则是在产品承受超出预期生产操作工作负载模型和负载量的情况下,或在产品承受其他压力条件(如内存限制、磁盘空间不足或服务器故障)时,确定或验证其性能特性。

What are performance, load and stress testing?

Performance testing, load testing and stress testing are three different things done for different purposes. Certainly, in many cases they can be done by the same people with the same tools at virtually the same time as one another, but that does not make them synonymous.

Performance testing is an empirical technical investigation conducted to provide stakeholders with information about the quality of the product or service under test with regard to speed, scalability and/or stability characteristics. It is also the superset of other classes of performance-related testing such as load and stress testing.

load test is a performance test focused on determining or validating performance characteristics of the product under test when subjected to workload models and load volumes anticipated during production operations.

stress test is a performance test focused on determining or validating performance characteristics of the product under test when subjected to workload models and load volumes beyond those anticipated during production operations. Stress tests may also include tests focused on determining or validating performance characteristics of the product under test when subjected to workload models and load volumes while the product is subjected to other stressful conditions, such as limited memory, insufficient disk space or server failure.

let's take one example. Imagine your favorite Web site that sells things. Anyone that accepts credit cards and has a shopping cart paradigm will do.

 

Performance testing would involve things like determining the end user response time under various amounts of traffic and scenarios. For example, you may be interested in finding out what response times a user would encounter during an hour where there were 2000 searches for items, 500 items added to carts and 50 purchases were made. Or you may be interested in finding out what response times a user would encounter during a different hour where there were only 500 searches for items, 400 items were added to carts and 250 purchases were made.

 

Load testing the same site might involve determining how many searches can be conducted in a given hour before the response time slows to 5 seconds. Stress testing could involve determining how many searches can be conducted in a given hour before the users stop receiving results.

转载于:https://www.cnblogs.com/tomweng/p/4362496.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值