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

查看:407
本文介绍了如何从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

并填写起始偏移量字段.

And fill in start offset field.

请阅读以下内容以使用世代:

Read this for using generation:

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