Jmeter 如何使线程组时间不考虑总时间

Jmeter 如何使线程组时间不考虑总时间,jmeter,Jmeter,我有以下情况: Thread group1 - this sends requests to a server (lots of threads and iterations) HTTP Request Thread group2 - 1 thread 1 iterations JSR223 sampler (has a while loop which periodically check if a number is 0) and collects some times 当

我有以下情况:

Thread group1 - this sends requests to a server (lots of threads and iterations)
    HTTP Request
Thread group2 - 1 thread 1 iterations
    JSR223 sampler (has a while loop which periodically check if a number is 0) and collects some times
当threadgroup 2完成时,场景结束

我使用非GUI模式运行上述场景,我对RPS感兴趣。如下所示,222.0/s,但仅适用于第一个螺纹组

summary =  50002 in 00:03:29 =  222.0/s Avg:  4151 Min:    38 Max: 797601 Err:     0 (0.00%)
现在,当最后一个线程组结束时,我将有:

summary =  50003 in 00:09:12 =   90.7/s Avg:  4136 Min:    38 Max: 797601 Err:     0 (0.00%)
RPS现在很低,只是因为最后一个线程组需要很长时间才能完成

是否有任何方法不能将最后一个线程组的时间计入总时间?或者可能是解决此问题的另一种方法。

您可以使用jmeter.reportgenerator.sample_filter属性从报告中排除JSR223采样器

在命令行非GUI模式下运行测试,如:

jmeter -n -t test.jmx -l result.jtl
生成完整结果的命令如下所示:

jmeter -g result.jtl -o ALL-RESULTS
它将创建包含所有采样器信息的ALL-RESULTS文件夹

不使用JSR223采样器生成结果的命令如下:

jmeter -Jjmeter.reportgenerator.sample_filter="^((?!JSR223 Sampler).)*$" -g result.jtl -o FILTERED-RESULTS
它将使用HTTP请求采样器或其他采样器创建FILTERED-RESULTS文件夹,只有JSR223采样器将被排除

更多信息:


看,谢谢,这个应该可以帮我。