public static enum DslThroughputTimer.ThroughputMode extends Enum<DslThroughputTimer.ThroughputMode> implements EnumParam.EnumPropertyValue
| Enum Constant and Description |
|---|
ALL_THREADS_ACCURATE
The configured throughput is controlled checking the last time each active thread executed.
|
ALL_THREADS_EVEN
The configured throughput will be divided among active threads (across thread groups) and
each thread will control that part of the throughput regardless if other threads were far
from expected throughput.
|
PER_THREAD
The configured throughput specifies the maximum throughput for each thread.
|
THREAD_GROUP_ACCURATE
The configured throughput is controlled checking the last time each active thread, in the
thread group, executed.
|
THREAD_GROUP_EVEN
The configured throughput will be divided among active threads of the current thread group
(ignoring other thread groups) and each thread will control that part of the throughput
regardless if other threads in the same thread group were far from expected throughput.
|
| Modifier and Type | Method and Description |
|---|---|
String |
propertyValue() |
static DslThroughputTimer.ThroughputMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DslThroughputTimer.ThroughputMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslThroughputTimer.ThroughputMode PER_THREAD
This is the same as JMeter option "this thread only".
public static final DslThroughputTimer.ThroughputMode ALL_THREADS_EVEN
Check ALL_THREADS_ACCURATE as an alternative.
In general use this mode only on test plan level timers, otherwise it might lead to confusion
or unexpected behavior. E.g.: avoid having timers inside thread groups with ALL_THREADS_EVEN.
Prefer in such scenarios THREAD_GROUP_EVEN).
This is the same as Jmeter option "all active threads".
public static final DslThroughputTimer.ThroughputMode THREAD_GROUP_EVEN
If you place the timer at test plan level, then each thread group in the test plan will try to achieve configured throughput.
Check THREAD_GROUP_ACCURATE as an alternative.
This is the same as Jmeter option "all active threads in current thread group".
public static final DslThroughputTimer.ThroughputMode ALL_THREADS_ACCURATE
This avoids not achieving the configured throughput when one thread is particularly slow,
making the timer behavior more accurate with expected behavior (than
ALL_THREADS_EVEN). BUT, this timer uses only one mark for last thread execution,
shared across all timers using same calculation mode, which means that one timer calculation
might/will affect other timers calculations. So, if you use this method, make sure you only
use one timer with such method.
To avoid this issue you might use ALL_THREADS_EVEN, but total throughput would not
adjust when some threads are slower than others.
In general use this mode only on test plan level timers, otherwise it might lead to confusion
or unexpected behavior. E.g.: avoid having timers inside thread groups with
ALL_THREADS_ACCURATE. Prefer in such scenarios THREAD_GROUP_ACCURATE).
This is the same as Jmeter option "all active threads (shared)".
public static final DslThroughputTimer.ThroughputMode THREAD_GROUP_ACCURATE
This avoids not achieving the configured throughput when one thread is particularly slow,
making the timer behavior more accurate with expected behavior (than
THREAD_GROUP_EVEN). BUT, this timer uses only one mark per thread group for last
thread execution, shared across all timers in same thread group using same calculation mode,
which means that one timer calculation might/will affect other timers calculations in same
thread group. So, if you use this method, make sure you only use one timer per thread group
with such method.
To avoid this issue you might use THREAD_GROUP_EVEN, but total throughput would not
adjust when some threads are slower than others.
If you place the timer at test plan level, then each thread group in the test plan will try to achieve configured throughput.
This is the same as Jmeter option "all active threads in current thread group (shared)".
public static DslThroughputTimer.ThroughputMode[] values()
for (DslThroughputTimer.ThroughputMode c : DslThroughputTimer.ThroughputMode.values()) System.out.println(c);
public static DslThroughputTimer.ThroughputMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String propertyValue()
propertyValue in interface EnumParam.EnumPropertyValueCopyright © 2024. All rights reserved.