本文介绍了性能测试中思考时间和起搏时间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

起搏用于在 X 分钟内实现 X 次迭代,但我可以通过仅指定思考时间而不使用起搏时间来在 X 分钟或 x 小时或 x 秒内实现 x 次迭代.

Pacing is used to achieve X number of iterations in X minutes, But I'm able to achieve x number of iterations in X minutes or x hours or x seconds by specifying only think time without using pacing time.

我想知道思考时间和起搏时间之间的实际差异?迭代之间需要提及起搏时间吗?这个起搏时间有什么作用?

I want to know the actual difference between think time and pacing time? pacing time is necessary to mention between iterations? what this pacing time does?

推荐答案

认为时间是在迭代完成之后和下一次开始之前添加的延迟.迭代请求率取决于响应时间和思考时间的总和.由于响应时间会因负载级别而异,因此迭代请求率也会有所不同.

Think time is a delay added after iteration is complete and before the next one is started. The iteration request rate depends on the sum of the response time and the think time. Because the response time can vary depending on a load level, iteration request rate will vary as well.

对于恒定的请求率,您需要使用 pacing.与思考时间不同,调步添加了一个动态确定的延迟,以在响应时间可能发生变化的同时保持迭代请求率恒定.

For constant request rate, you need to use pacing. Unlike think time, pacing adds a dynamically determined delay to keep iteration request rate constant while the response time can change.

例如,要在 2 分钟内实现 3 次迭代,起搏时间应为 2 x 60/3 = 40 秒.这是如何在我们的工具中使用起搏的示例 http://support.stresstimulus.com/display/doc46/Delay+after+the+Test+Case

For example, to achieve 3 iteration in 2 minutes, pacing time should be 2 x 60 / 3 = 40 seconds. Here's an example how to use pacing in our tool http://support.stresstimulus.com/display/doc46/Delay+after+the+Test+Case

这篇关于性能测试中思考时间和起搏时间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:08