Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
365 views
in Technique[技术] by (71.8m points)

performance - What is the difference between Ramp up time and Synchronization timer

Example:

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

  1. In the same time: If i will do like below No of Threads = 100 Ramp-up time = 1, Loop Count =1`

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.

question from:https://stackoverflow.com/questions/65883520/what-is-the-difference-between-ramp-up-time-and-synchronization-timer

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

enter image description here

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.

enter image description here

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

  • In case 1, 5 users are distributed over a period of one sec. i.e. per 0.2 sec one user is added.
  • In case 2, 5 users are added to the active thread in one go.

To know more about Synchronizing Timer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...