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对吞吐量控制起了限定作用。

发布了293 篇原创文章 · 获赞 106 · 访问量 39万+

猜你喜欢

转载自blog.csdn.net/m0_38039437/article/details/104115312