如何从 JMeter 摘要中排除预热时间? [英] How to exclude warmup time from JMeter summary?

查看:23
本文介绍了如何从 JMeter 摘要中排除预热时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的 JMeter 吞吐量测试,它产生 20 个线程,每个线程对数据库执行一个简单的 SQL 查询.我设置了 10 秒的加速时间和 70 秒的总测试时间.

I have a simple JMeter throughput test that spawns 20 threads and each thread executes a simple SQL query against a database. I have set a ramp up time of 10 seconds and a total test time of 70 seconds.

当我在非 GUI 模式下执行测试时,我看到以下摘要输出:

When I execute the test in non-GUI mode I see the following summary output:

summary +      1 in   0.1s =    7.4/s Avg:   135 Min:   135 Max:   135 Err:     0 (0.00%) Active: 1 Started: 1 Finished: 0
summary + 137501 in  28.5s = 4831.0/s Avg:     3 Min:     1 Max:   614 Err:     0 (0.00%) Active: 20 Started: 20 Finished: 0
summary = 137502 in    29s = 4796.9/s Avg:     3 Min:     1 Max:   614 Err:     0 (0.00%)
summary + 171000 in    30s = 5703.8/s Avg:     3 Min:     1 Max:   519 Err:     0 (0.00%) Active: 20 Started: 20 Finished: 0
summary = 308502 in    59s = 5260.8/s Avg:     3 Min:     1 Max:   614 Err:     0 (0.00%)
summary +  61016 in  11.5s = 5309.0/s Avg:     3 Min:     1 Max:   518 Err:     0 (0.00%) Active: 0 Started: 20 Finished: 20
summary = 369518 in  70.1s = 5268.9/s Avg:     3 Min:     1 Max:   614 Err:     0 (0.00%)

如您所见,前 30 秒的吞吐量较低,但稍后会回升.我知道这可能是由于线程启动和其他系统组件预热.

As you can see that the throughput is low in the first 30 seconds but picks up later. I understand that this could be due to the threads starting and other system components warming up.

有没有办法可以从最终计算中排除X"秒的起始数字.我使用了一些自定义性能测试,在测量输出之前,我总是排除前X"秒,直到系统达到稳定状态.

Is there a way I can exclude "X" seconds worth of starting numbers from the final calculation. I have used some custom performance tests where I always excluded the first "X" seconds until the system reached a steady state before measuring the output.

无论如何我可以在 JMeter 中做到这一点?

Is there anyway I can do that in JMeter?

推荐答案

可以使用jmeter-plugins生成图表

You can use jmeter-plugins to generate graphs

并填写起始偏移字段.

阅读本文以使用代:

这篇关于如何从 JMeter 摘要中排除预热时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆