JMeter 监听器之【聚合报告】界面字段解析及计算方法概要说明

聚合报告是 JMeter 使用过程中使用率非常高的监听器之一,可通过右键单击,依次选择【添加 / 监听器 / 聚合报告】 来进行添加。执行 JMeter 脚本后,聚合报告显示如下:

各列的定义如下:

Label:标签名称,组成方式为:{线程组名称}:{HTTP请求名称},可简单理解为HTTP请求名称

# Samples:样本总数量,即为请求的总数量

Average:平均响应时间

Median:百分位数为 50% 的响应时间(90% Line、95% Line、99% Line 释义与此相同,其中 90% 分位数对应的响应时间为性能测试中一个重要的衡量指标)

Min:最小响应时间

Max:最大响应时间

Error %:失败率(也可理解为样本请求断言失败率)

Throughput:吞吐量,即为服务器单位时间内成功处理的样本数量,是性能测试的一个重要指标

KB/sec:数据传输速率,即为单位时间内传输的数据量,同样为性能测试的重要指标

 

需要着重说明的是百分位数(统计学术语,如果将一组数据从小到大排序,并计算相应的累计百分位,则某一百分位所对应数据的值就称为这一百分位的百分位数。可表示为:一组n个观测值按数值大小排列。如,处于p%位置的值称第p百分位数。)体现的是,当前HTTP请求样本中有多少样本的响应时间是在百分位对应响应时间之下,而非有多少样本的响应时间是聚集在这个响应时间周围的。

 

计算公式:

吞吐量 = 样本总数 / (当前HTTP请求对应最后一个样本处理完成时间 - 当前HTTP请求对应第一个样本的起始时间)

KB/sec = HTTP请求总响应数据大小 / (当前HTTP请求对应最后一个样本处理完成时间 - 当前HTTP请求对应第一个样本的起始时间)

 

百分位对应的Jmeter官方定义如下所示:

Median is a number which divides the samples into two equal halves. Half of the samples are smaller than the median, and half are larger. [Some samples may equal the median.] This is a standard statistical measure.The Median is the same as the 50th Percentile

吞吐量对应的Jmeter官方定义如下所示:

Throughput is calculated as requests/unit of time. The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server.
The formula is: Throughput = (number of requests) / (total time).

 

百分位数样例如下所示:

转载自:范丰平

posted @ 2017-08-02 11:20  HkGov  阅读(1327)  评论(0编辑  收藏  举报