Jmeter-聚合报告-字段分析

这个是我在学习测试的时候做的一个自动化性能脚本,使用到了聚合报告,用来查看我们的测试结果分析:

 name上面的每个字段表示的是什么意思呢?

首先来看下Jmeter的help是如何解释这些含义的。

1、Label - The label of the sample. If "Include group name in label?" is selected, then the name of the thread group is added as a prefix. This allows identical labels from different thread groups to be collated separately if required.

2、 Samples - The number of samples with the same label

3、Average - The average time of a set of results

4、Median - The median is the time in the middle of a set of results. 50% of the samples took no more than this time; the remainder took at least as long。

5、90% Line - 90% of the samples took no more than this time. The remaining samples took at least as long as this. (90th percentile)

6、95% Line - 95% of the samples took no more than this time. The remaining samples took at least as long as this. (95th percentile)

7、99% Line - 99% of the samples took no more than this time. The remaining samples took at least as long as this. (99th percentile)

8、Min - The shortest time for the samples with the same label

9、Max - The longest time for the samples with the same label

10、Error % - Percent of requests with errors

11、Throughput - the Throughput is measured in requests per second/minute/hour. The time unit is chosen so that the displayed rate is at least 1.0. When the throughput is saved to a CSV file, it is expressed in requests/second, i.e. 30.0 requests/minute is saved as 0.5.

12、Received KB/sec - The throughput measured in received Kilobytes per second

13、Sent KB/sec - The throughput measured in sent Kilobytes per second

然后看一下我翻译过后自己的解释:

聚合报告:Aggregate Report

Label:每个JMeter的element的Name值。例如HTTP Request的Name

#Samples:发出请求数量。如第三行记录,模拟20个用户,循环100次,所以显示了2000

Average:平均响应时间(单位:)。默认是单个Request的平均响应时间,当使用了Transaction Controller时,也可以以Transaction为单位显示平均响应时间

Median:中位数,也就是50%用户的响应时间

90%Line:90%用户的响应时间

95%Line:95%用户的响应时间

99%Line:99%用户的响应时间

注:为什么要有*%用户响应时间?因为在评估一次测试的结果时,仅仅有平均事物响应时间是不够的。假如有一次测试,总共有100个请求被响应,其中最小响应时间为0.02秒,最大响应时间为110秒,平均事务响应时间为4.7秒,你会不会想到最小和最大响应时间如此大的偏差是否会导致平均值本身并不可信?

我们可以在95 th之后继续添加96/ 97/ 98/ 99/ 99.9/ 99.99 th,并利用Excel的图表功能画一条曲线,来更加清晰表现出系统响应时间的分布情况。这时候你也许会发现,那个最大值的出现几率只不过是千分之一甚至万分之一,而且99%的用户请求的响应时间都是在性能需求所定义的范围之内的;如下图则是最低响应时间的值出现几率是很小的,实际99%的用户请求响应时间都要20000+。

Min:最小响应时间

Max:最大响应时间

Error%:本次测试中出现错误的请求的数量/请求的总数

Throughput:吞吐量。默认情况下标示每秒完成的请求数(具体单位如下图)

KB/sec:每秒从服务器端接收到的数据量。
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你可以使用 JMeter 对系统进行递增压测。以下是一些基本步骤: 1. 安装 JMeter:从 JMeter 官方网站下载并安装 JMeter。 2. 创建测试计划:在 JMeter 中创建一个测试计划。右键点击"Test Plan",选择"Add" > "Threads (Users)" > "Thread Group"来添加一个线程组。 3. 配置线程组:在线程组中设置并发用户数、循环次数和启动时间等参数。你可以通过修改线程组中的属性来调整这些配置。 4. 添加取样器:在线程组下添加取样器来模拟请求。常用的取样器包括 HTTP 请求、FTP 请求等。右键点击线程组,选择"Add" > "Sampler"来添加取样器。 5. 配置取样器:对每个取样器进行相应的配置,包括请求的 URL、方法、参数等。 6. 添加监听器:为了收集测试结果,你可以添加监听器来显示、分析和保存数据。常用的监听器包括聚合报告、查看结果树等。右键点击线程组,选择"Add" > "Listener"来添加监听器。 7. 配置监听器:对每个监听器进行相应的配置,例如选择要显示的字段、保存测试结果的文件路径等。 8. 运行测试:点击工具栏上的绿色三角形按钮,运行你的测试计划。 在运行测试之前,确保你的测试环境和服务器能够承受所设定的压力。递增压测需要逐渐增加并发用户数,以模拟真实世界中的负载情况。你可以通过修改线程组的属性来控制递增的速度和大小。 请注意,在进行压测时要小心,确保不会对生产环境产生负面影响。同时,了解系统的性能架构和限制,以便设计合理的测试方案。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值