Jmeter 吞吐量定时器 Constant Throughput Timer

Jmeter 吞吐量定时器 Constant Throughput Timer

一、Constant Throughput Timer界面

Constant Throughput Timer元素名称Constant Throughput Timer功能
Comments注释,描述Constant Throughput Timer在业务中的作用
Target throughput(in samples per minute)目标吞吐量(单位分钟)
Calculate Throughput based on计算吞吐量策略
This thread only仅对当前线程,也就是每个线程相互是不干扰的,都互相分开计算需要多少延迟时间(总吞吐量=Target throughput乘以线程数)
All active threads针对所有线程,把所有线程的吞吐量合在一起作为因子计算
All active threads in current thread group针对当前线程组中的所有线程
All active threads(shared)线程延迟计算是基于任意一个线程上次运行的时间,也就是随便获取一个线程的运行时间来计算,既然是随机,结果就不一定准确,所以只能是努力控制吞吐量在某一个范围
All active threads in current thread group (shared)在当前线程组中任取一个线程的上次运行时间来计算延时,与上面意思相近

二、Constant Throughput Timer实例 

未设置Constant Throughput Timer时,运行的TPS是20

 设置Constant Throughput Timer 的Target throughput为10

运行结果

TPS值从未设置吞吐量时的20变为了8,说明 Constant Throughput Timer对吞吐量控制起了限定作用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值