LoadRunner性能测试--90%响应时间

LoadRunner--90%响应时间

先看看之前官方的一段说明:

Solution: The 90th percentile is the value for which 90% of the data points are smaller

The 90th percentile is a measure of stastical distribution, not unlike the median. The median is the middle value. The median is the value for which 50% of the values were bigger, and 50% smaller. The 90th percentile tells you the value for which 90% of the data points are smaller and 10% are bigger.

Statistically, to calculate the 90th percentile value:
1. Sort the transaction instances by their value.
2. Remove the top 10% instances.
3. The highest value left is the 90th percentile.

Example:
There are ten instances of transaction "t1" with the values 1,3,2,4,5,20,7,8,9,6 (in sec).
1. Sort by value -- 1,2,3,4,5,6,7,8,9,20.
2. Remove top 10 % -- remove the value "20."
3. The highest value left is the 90th percentile -- 9 is the 90th percentile value.
PS:这里有点类似某些比赛的评分规则中,去掉最高分;
The 90th percentile value answers the question, "What percentage of my transactions have a response time less than or equal to the 90th percentile value?" Given the above information, here is how LoadRunner calculates the 90th percentile.

In Analysis 6.5:
The values for the transaction are ordered in a list.
The 90% is taken from the ordered list of values. The place from which it is taken is

   Rounding to the small value the number: 0.9 * (Number of Values - 1) + 1

In Analysis 7 and above:
Each value is counted in a range of values. For example, 5 can be counted in a range of 4.95 to 5.05, 7.2 in a range of 7.15 to 7.25. The 90% is taken from the range of values that the number of transaction in it and before it is >= ( 0.9 * Number of Values).

This difference in the methods can lead to different 90% values. Again, both methods lead to correct values as defined by the 90th percentile. However, the algorithm to calculate these figures has changed in LoadRunner 7 and above.

由此可见,仅仅有平均事务响应时间是不够的。因为平均事务响应时间满足了性能需求,未必就表示系统的性能已经满足了绝大多数用户的要求。

假如有两组测试结果,响应时间分别是 {1,3,5,10,16} 和 {5,6,7,8,9},它们的平均值都是7,你认为哪次测试的结果更理想?

所以

1)90%响应时间它是统计响应时间的参数,带有统计学意义,是科学性的;

2)可以这样理解,这个事务所有的运行次数中,90%的次数落在这个响应时间里;

3)90%响应时间可以在LoadRunner中根据需要进行自由设置的,例如70%,95%;

4)为了真实的评估软件性能,建议让测试场景执行较长的时间,让工具采集更多数据,数据越多,在概率论中的数据分布中看,最具有真实性;

5)该参数是性能测试结果的一个算法,与测试工具无关,无论你是使用LoadRunner、JMeter或其它性能测试工具,该理论同样适用。

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
LoadRunner是一款功能强大的性能测试工具,可以模拟多种不同的负载情况,对应用程序进行压力测试、性能测试、负载测试和容量规划等。在LoadRunner中,测试人员可以使用多种协议(如HTTP、HTTPS、FTP、SMTP、POP3、IMAP、Oracle、SAP、Citrix等)来模拟不同的应用程序行为。 LoadRunner的工作原理是通过模拟真实用户的行为,通过不同的协议和脚本来模拟用户访问应用程序的过程。LoadRunner的测试流程一般包括以下几个步骤: 1. 计划测试:定义测试目标、测试场景、测试脚本以及测试负载等。 2. 脚本录制:使用LoadRunner提供的录制工具,记录用户在应用程序中的操作过程。 3. 脚本编辑:对录制的脚本进行编辑和修改,以满足测试需求。 4. 参数化:对脚本中的一些参数进行参数化,使测试脚本具有更好的复用性和可维护性。 5. 调试脚本:对脚本进行调试和验证,确保脚本能够正确地模拟用户的行为。 6. 配置场景:配置测试场景,包括虚拟用户、并发用户数、测试持续时间、测试负载等。 7. 执行测试:执行测试并收集测试数据,包括响应时间、吞吐量、错误率、CPU利用率、内存使用率等。 8. 分析测试结果:对测试数据进行分析和比较,以评估应用程序的性能和可靠性,并识别性能瓶颈。 总之,LoadRunner是一个功能强大、灵活性高的性能测试工具,它可以模拟多种不同的负载情况,对应用程序进行全方位的性能测试和容量规划。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值