Skip to content

Commit 3f153c8

Browse files
committed
doc: add load profile samples to Open Model Thread Group documentation
1 parent 7548000 commit 3f153c8

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

xdocs/usermanual/component_reference.xml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6521,17 +6521,39 @@ See <a href="get-started.html#classpath">JMeter's Classpath</a> and
65216521
The users are generated according to the schedule.
65226522
</p>
65236523
<p>The load profile consists of a sequence of constant, increasing or decreasing load.
6524-
The following commands are available:
6524+
The basic configuration is <code>rate(1/sec) random_arrivals(2 min) rate(3/sec)</code> which means the load will increase linearly
6525+
from 1 request per second to 3 requests per second during 2-minute timeframe.
6526+
If you omit "end" rate, then it will be set to the same value as "start". For example,
6527+
<code>rate(1/sec) random_arrivals(2 min)</code> is exactly the same as <code>rate(1/sec) random_arrivals(2 min) rate(1/sec)</code>.
6528+
That is why <code>rate(1/sec) random_arrivals(2 min) random_arrivals(3 min) rate(4/sec)</code> is exactly the same as
6529+
<code>rate(1/sec) random_arrivals(2 min) rate(1/sec) random_arrivals(3 min) rate(4/sec)</code>, so the load is 1/sec during the first two minutes,
6530+
and then it increases linearly from 1/sec to 4/sec during 3 minutes.
6531+
</p>
6532+
<p>Here are examples for using the schedule:
6533+
<ul>
6534+
<li><code>rate(10/sec) random_arrivals(1 min) rate(10/sec)</code> &mdash; constant load rate of 10/sec during 1 minute</li>
6535+
<li><code>rate(0) random_arrivals(1 min) rate(10/sec)</code> &mdash; linearly increase the load from 0 to 10/sec during 1 minute</li>
6536+
<li><code>rate(0) random_arrivals(1 min) rate(10/sec) random_arrivals(1 min) rate(10/sec) random_arrivals(1 min) rate(0)</code> &mdash;
6537+
linearly increase the load from 0 to 10/sec during 1 minute, then hold the load during 1 minute,
6538+
then linearly decrease the load from 10/sec to 0 during 1 minute</li>
6539+
<li><code>rate(10) random_arrivals(1 min) rate(10/sec) random_arrivals(1 min) rate(10/sec) random_arrivals(1 min) rate(0)</code> &mdash;
6540+
linearly increase the load from 0 to 10/sec during 1 minute, then hold the load during 1 minute,
6541+
then linearly decrease the load from 10/sec to 0 during 1 minute</li>
6542+
<li><code>rate(10) random_arrivals(1 min) pause(2 sec) random_arrivals(1 min)</code> &mdash;
6543+
run with constant load of 10 per second during 1 minute, then make 2 second pause, then resume the load of 10 per second for 1 minute</li>
6544+
</ul>
6545+
</p>
6546+
<p>The following commands are available:
65256547
<ul>
65266548
<li><code>rate(&lt;number&gt;/sec)</code> &mdash; configures target load rate.
65276549
The following time units are supported: <code>ms</code>, <code>sec</code>, <code>min</code>, <code>hour</code>, <code>day</code>.
65286550
You can omit time unit in case the rate is 0: <code>rate(0)</code></li>
65296551
<li><code>random_arrivals(&lt;number&gt; sec)</code> &mdash; configures random arrivals schedule with the given duration.
65306552
The starting load rate is configured before <code>random_arrivals</code>, and the finish load rate is configured after <code>random_arrivals</code>.
6531-
For example, 10 minute test from 5/sec at the beginning till 15/sec at the end could be configured as <code>rate(5/sec) random_arrivals(10 min) rate(15/sec)</code>.
6553+
For example, 10 minute test from 5/sec at the beginning to 15/sec at the end could be configured as <code>rate(5/sec) random_arrivals(10 min) rate(15/sec)</code>.
65326554
<br/>The implicit rate at the beginning of the test is 0. If the finish rate is not provided (or if several <code>random_arrivals</code> steps go one after another),
65336555
then the load is constant. For instance, <code>rate(3/sec) random_arrivals(1 min) random_arrivals(2 min) rate(6/sec)</code> configures
6534-
constant rate of 3/sec for the first 1 minute, and then the load increases from 3/sec till 6/sec during the next 2 minutes.
6556+
constant rate of 3/sec for the first 1 minute, and then the load increases from 3/sec to 6/sec during the next 2 minutes.
65356557
The time units are the same as in <code>rate</code>.
65366558
</li>
65376559
<li><code>even_arrivals(&lt;number&gt; sec)</code> &mdash; configures even arrivals (TODO: not implemented yet). For instance, if the desired load

0 commit comments

Comments
 (0)