jmeter定时器-Constant Throughput Timer
jmeter定时器-Constant Throughput Timer
- 说明
- 测试场景
- 新增Constant Throughput Timer
- this Thread only
- 执行结果
- 结论
- all active threads
- 执行结果
- 结论
- all active threads in current thread group
- 执行结果
- 结论
- all active threads(shared)
- 执行结果
- 结论
- all active threads in current thread group(shared)
- 执行结果
- 结论
说明
- Target Throughput(minute):每分钟吞吐量
- Calculate Ghtrouhput based on:吞吐量基于下面几种方式计算
(1)this thread only:基于当前线程。如Number of Thread=5.则TPS=5*2=10
(2)all active threads:所有活跃的线程
(3)all active threads in current thread group:当前线程组所有活跃的线程
(4)all active thread(shared):所有活跃的线程(共享)
(5)all active threads in current thread group(shared):当前线程组中的所有活跃的线程(共享)
测试场景
新增Constant Throughput Timer
this Thread only
执行结果
结论
选择this thread only时,TPS=目标吞吐量*线程数
all active threads
执行结果
结论
选择all active threads 时,TPS=目标吞吐量
all active threads in current thread group
执行结果
结论
选择all active threads in current thread group时,TPS=目标吞吐量
all active threads(shared)
执行结果
结论
选择all active threads(shared)时,TPS=目标吞吐量/所有活跃线程=2/2=1
all active threads in current thread group(shared)
执行结果
结论
选择all active threads(shared)时,TPS=目标吞吐量/单线程组下所有活动的线程=2/1=1