加速时间和同步计时器有什么区别 [英] What is the difference between Ramp up time and Synchronization timer

查看:119
本文介绍了加速时间和同步计时器有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:

`1.线程数= 100 加速时间= 20,表示每1秒= 5个请求将被处理. 循环计数= 1

`1. No of Threads = 100 Ramp-up time = 20, means every 1 second = 5 requests will be processed. Loop Count =1

  1. 同时: 如果我会像下面这样 线程数= 100 上升时间= 1 循环计数= 1`
  1. In the same time: If i will do like below No of Threads = 100 Ramp-up time = 1, Loop Count =1`

并将同步计时器":模拟用户数"归为组= 5. 同样在这种情况下,J计量器一次处理5个请求.

And put Synchronization Timer : No of Simulated user to group = 5. In this case as well, J meter process 5 requests at one time.

那么,以上两个概念之间的逻辑有何不同?

So what is the different logic between the above 2 concepts.

推荐答案

考虑情况1, 线程数= 100,启动时间= 20,循环计数= 1. 这意味着每1秒将引发5个线程. 根据响应所花费的时间,测试将运行至少20秒或更长时间.

Considering case 1 where the Number of threads = 100, Ramp-up time = 20 and loop count =1. This means that for every one sec 5 threads will be induced. Depending on the time taken for the response the test will run for at least 20 sec or more.

考虑情况2, 线程数= 100,加速= 1,循环计数= 1并且 将没有模拟用户的同步计时器添加到组= 5 将会一次添加5个用户批次.

Considering case 2 where the Number of threads = 100, Ramp-up=1, loop count=1 and Adding Synchronization Timer with No of Simulated user to group = 5 A batch of 5 users will be added at once.

两个测试都不需要花费相同的时间来完成.

Both the tests don't take the same amount of time to complete.

  • 在情况1中,在1秒钟的时间内分配了5个用户.即每0.2秒增加一个用户.
  • 在第2种情况下,一口气将5个用户添加到活动线程中.

要了解有关同步计时器

为了最好地理解这两种用例之间的区别,请将线程数增加到200,同时保持其余参数不变.这样就可以轻松注意到差异.

To best understand the difference between the 2 use cases, increase the number of threads to 200 while keeping the remaining parameters as is. Then the difference can be noticed easily.

这篇关于加速时间和同步计时器有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆