压测某个系统,多个交易同时压测时,交易之间存在占比关系,这时就需要控制每支交易的TPS,Constant Throughput Timer可实现该功能
1.添加方式
2.元件介绍
Target throughput(in samples per minute):目标吞吐量(单位分钟),即每分钟执行多少次(TPM)
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--固定吞吐量控制器
最新推荐文章于 2024-05-27 10:14:57 发布