performance - JMeter:高斯随机计时器与泊松随机计时器

标签 performance jmeter load-testing

我试图找出用于我的负载测试的计时器,以模拟网站流量的逐渐增长。
我看了一下高斯随机计时器的广告:

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.

现在我真的不明白这两者之间有什么区别。它们都应用了更可能接近特定值的随机延迟。那么我错过了什么?它们在实践中有何不同?

最佳答案

不同之处在于用于生成随机值的算法:

泊松基于此:

  • http://en.wikipedia.org/wiki/Poisson_distribution
  • http://www.johndcook.com/blog/2010/06/14/generating-poisson-random-values/

  • 高斯用途:
  • java.util.Random#nextGaussian()

  • 两者都将基于泊松或高斯生成的随机数的值添加到 Constant Delay Offset 中。

    关于performance - JMeter:高斯随机计时器与泊松随机计时器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31141153/

    相关文章:

    python - 为什么我的(新手)代码这么慢?

    java - 使用 Java I/O 通过 HTTP 网络读取流

    unit-testing - 如何在线程组中对用户进行分组并在 apache jmeter 中创建用户?

    testing - 可以发送 PUT/DELETE 方法的负载测试工具

    benchmarking - [alert] HTTP : unable to determine chunk size的原因是什么

    sql-server - 添加参数时SSIS性能下降

    java - 将 Java SQL ResultSet 转换为对象或结构集

    jmeter - native 内存分配 (malloc) 无法为 ChunkPool::allocate 分配 32756 字节

    jmeter - 目标服务器响应失败 - Jmeter

    database - JMeter测试运行前如何设置数据库状态?