Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Firstly, short definition of each parameter:</p> <ol> <li><p>Number of Threads: simulates the number of users</p></li> <li><p>Ramp up period : how much time Jmeter takes to get all threads started</p></li> <li><p>Loop count: number of times each thread performs the test case</p></li> <li><p>Duration in scheduler: the duration for which the test is to be run. In this case, the value in the end-time field shall be ignored and the relative end-time will be calculated from the start-time and duration</p></li> </ol> <p>A important thing to understand here is that the Ramp-up period has no relation to the Loop count. It is only related to the Number of Threads. If there are 10 threads and a ramp-up time of 100 seconds, then each thread will begin 10 seconds after the previous thread started, for a total time of 100 seconds to start all threads in the thread group. </p> <p>Now the answer to each Thread Group Case:</p> <pre><code>Thread Group 1: # of threads:1, ramp up period:0, loop count:5, no scheduler Thread Group 2: # of threads:5, ramp up period:0, loop count:1, no scheduler Thread Group 3: # of threads:1, ramp up period:1s, loop count:5, no scheduler Thread Group 4: # of threads:5, ramp up period:5s, loop count:1, no scheduler Thread Group 5: # of threads:1, ramp up period:1s, loop count:forever, duration in scheduler:5s Thread Group 6: # of threads:5, ramp up period:5s, loop count:forever, duration in scheduler:5s </code></pre> <blockquote> <p>Q1. Is there any difference between thread group 1 and 2?</p> </blockquote> <p>Thread Group 1 has a single thread that will repeat the same test 5 times i.e. as one test finishes repeat the test till a loop count of 5 is reached</p> <p>Thread Group 2 has 5 threads that will start simultaneously as the Ramp-up Period is 0, so there it shall mock 5 users simultaneously on the system</p> <blockquote> <p>Q2. How long is the time cap between each loop?</p> </blockquote> <p>The time cap is a factor of the ramp-up period that is divided equally between the number of threads in the thread group. Loop is a continuous process that shall continue till the loop count is reached. "Time cap" is not a term used in the JMeter docs, but assuming what you mean, it can be set between loops by using <a href="http://jmeter.apache.org/usermanual/component_reference.html#Test_Action" rel="nofollow noreferrer">Test Action</a> or other JMeter mechanisms if you need fine-grained control.</p> <blockquote> <p>Q3. Is there any difference among thread group 3, 4, 5 and 6?</p> </blockquote> <p>Yes, all the parameters are different, so as described above, the behavior is different.</p> <blockquote> <p>Q4. Should group 3, 4, 5 and 6 all take 5 seconds to finish sending all requests? Should the total # of results be 5 in each group?</p> </blockquote> <p>No, it is all subjective to each condition. In Thread Group 3, a single thread shall execute the same thread 5 times, so no control over time</p> <p>In Thread Group 4, there are 5 thread and based on the ramp-up period, each thread shall start 1 s after the other, so it will take at-least 4-5 seconds to complete the test (after the last test)</p> <p>Thread Group 5 and 6 shall each only run for a duration for 5 seconds. If the test is completed before that then fine, otherwise the test shall be terminated and stopped</p> <blockquote> <p>Q5. When I tried thread group 5, I got around 83 responses, why is there not just 5 responses? Does this mean the ramp up period is not working?</p> </blockquote> <p>Why should there be only 5 responses??? Thread Group 5 shall create a single thread that shall execute the test in loop for ever. If the duration was not defined the test would run in an infinite loop. Since the duration is defined, the test shall only run for the duration period.</p> <p><strong>Note to All: The loop count is thread specific. It specifies the number of times the test should be repeated for each thread. The ramp-up period is related to the #Thread (User) and has no relation to the loop count</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload