我试图找出用于我的负载测试的计时器,以模拟网站流量的逐渐增长。
我看了一下高斯随机计时器的广告:
To delay every user request for random amount of time use Gaussian Random Timer with most of the time intervals happening near a specific value.
和泊松随机计时器:
To pause each and every thread request for random amount of time use Poisson Random Timer with most of the time intervals occurring close a specific value.
取自 this source.
现在我真的不明白这两者之间有什么区别。它们都应用了更可能接近特定值的随机延迟。那么我错过了什么?它们在实践中有何不同?
最佳答案
不同之处在于用于生成随机值的算法:
泊松基于此:
高斯用途:
两者都将基于泊松或高斯生成的随机数的值添加到 Constant Delay Offset 中。
关于performance - JMeter:高斯随机计时器与泊松随机计时器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31141153/