说明

在这里插入图片描述

  1. Target Throughput(minute):每分钟吞吐量
  2. 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

更多推荐