查看JMeter压测报告
- 1. JTL结果文件
- (1) 下载
- (2) 查看
- 2. HTML压测报告
- (1) dashboard
- 1) Test and Report information
- 2) APDEX(Application performance Index)
- 3) Requests Summary
- 4) Statistics
- (2) Charts
- 1) Over Time
- a. Response Times Over Time
- b. Response Time Percentiles Over Time (successful responses)
- c. Active Threads Over Time
- d. Bytes Throughput Over Time
- e. Latencies Over Time
- f. Connect Time Over Time
- 2) Throughput
- a. Hits Per Second (excluding embedded resources)
- b. Codes Per Second (excluding embedded resources)
- c. Transactions Per Second
- d. Response Time Vs Request
- e. Latency Vs Request
- 3) Response Times
- a. Response Time Percentiles
- b. Response Time Overview
- c. Time Vs Threads
- d. Response Time Distribution
1. JTL结果文件
(1) 下载
通过FileZilla将远程Linux上压测生成的jtl文件下载到本地指定目录
(2) 查看
打开jmeter,在 Summary Report 监听器中浏览打开
2. HTML压测报告
下载方式与jtl一致,需要注意的是:要下载整个reports文件夹,若只下载单个index.html,将无法正常打开
(1) dashboard
1) Test and Report information
- Source file: jtl文件名
- Start Time: 压测开始时间
- End Time: 压测结束时间
- Filter for display: 过滤器
2) APDEX(Application performance Index)
- Apdex: 应用程序性能指标,范围在0~1之间,1表示达到所有用户均满意
- T(Toleration threshold): 可接受阀值
- F(Frustration threshold): 失败阀值
- Label: sampler采样器名称
3) Requests Summary
- PASS: 成功率
- FAIL: 失败率
4) Statistics
- Label: sampler采样器名称
- Samples: 请求总数 = 并发数 * 循环次数
- FAIL: 失败次数
- Error%: 失败率
- Average: 平均响应时间
- Min: 最小响应时间
- Max: 最大响应时间
- 90th pct: 90%的用户响应时间不会超过这个值(关注这个就可以了)
- 95th pct: 95%的用户响应时间不会超过这个值
- 99th pct: 99%的用户响应时间不会超过这个值 (存在极端值)
- Throughtput: Request per Second吞吐量 qps
- Received:每秒从服务器接收的数据量
- Sent:每秒发送的数据量
(2) Charts
1) Over Time
a. Response Times Over Time
响应时间变化趋势
b. Response Time Percentiles Over Time (successful responses)
最大,最小,平均,用户响应时间分布
c. Active Threads Over Time
并发用户数趋势
d. Bytes Throughput Over Time
每秒接收和请求字节数变化,蓝色表示发送,黄色表示接受
e. Latencies Over Time
平均响应延时趋势
f. Connect Time Over Time
连接耗时趋势
2) Throughput
a. Hits Per Second (excluding embedded resources)
每秒点击次数
b. Codes Per Second (excluding embedded resources)
每秒状态码数量
c. Transactions Per Second
即TPS,每秒事务数
- 一个事务可能会包含多个查询,故一般TPS小于QPS
d. Response Time Vs Request
响应时间和请求数对比
- 自己的理解:每秒发送x条请求的查询,它们响应时间的中位数为y毫秒
e. Latency Vs Request
延迟时间和请求数对比
3) Response Times
a. Response Time Percentiles
响应时间百分比
b. Response Time Overview
响应时间概述
c. Time Vs Threads
活跃线程数(即并发数)和响应时间
d. Response Time Distribution
响应时间分布图