博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Jmeter性能报告页面生成
阅读量:7021 次
发布时间:2019-06-28

本文共 2599 字,大约阅读时间需要 8 分钟。

hot3.png

155331_3KHX_3069003.png

找到对应的 user.properties文件中并进行修改

155414_SKsD_3069003.png

 

14.2.1 Requirements

To enable the generator to operate, the input CSV files must include certain required data. Check that your JMeter configuration follows these settings (these are the defaults):

jmeter.save.saveservice.bytes = true# Only available with HttpClient4#jmeter.save.saveservice.sent_bytes=truejmeter.save.saveservice.label = truejmeter.save.saveservice.latency = truejmeter.save.saveservice.response_code = truejmeter.save.saveservice.response_message = truejmeter.save.saveservice.successful = truejmeter.save.saveservice.thread_counts = truejmeter.save.saveservice.thread_name = truejmeter.save.saveservice.time = truejmeter.save.saveservice.connect_time = true# the timestamp format must include the time and should include the date.# For example the default, which is milliseconds since the epoch: jmeter.save.saveservice.timestamp_format = ms# Or the following would also be suitablejmeter.save.saveservice.timestamp_format = yyyy/MM/dd HH:mm:ss

The input CSV file must include the timeStamp

 

14.3 Generating reports

The report generation can be done as a stand alone process from a sample log file or automatically after running load test.

14.3.1 Generation from an existing sample CSV log file

Use the following command:

jmeter -g 
-o

 

14.3.2 Generation after load test

Use the following command:

jmeter -n -t 
-l
-e -o
jmeter -n -t C:\Users\Administrator\Desktop\MySQL5.7.jmx -l C:\Users\Administrator\Desktop\case\mysql5.7.cvs -e -o C:\Users\Administrator\Desktop\case\html

 

摘自:http://jmeter.apache.org/usermanual/generating-dashboard.html 

212345_9vFN_3069003.png

聚合报告(aggregate report)

对于每个请求,它统计响应信息并提供请求数,平均值,最大,最小值,错误率,大约吞吐量(以请求数/秒为单位)和以kb/秒为单位的吞吐量.

吞吐量是以取样目标点的视角来统计的(例如:HTTP请求样例中设置的远程服务器). JMeter会把已生成请求的总响应时间考虑在内,所以,如果相同线程组中有其它取样器或定时器,将增加总时间,进而减少吞吐量的值。因此,两个仅名称不同的取样器,其吞吐量为该两个取样器吞吐量总和的一半。正确的选择取样器名字对于重聚合报告中获取最佳的结果来说很重要。

表头说明:

Label:每个 JMeter 的 element(例如 HTTP Request)都有一个 Name 属性,这里显示的就是 Name 属性的值

#Samples:表示你这次测试中一共发出了多少个请求,如果模拟10个用户,每个用户迭代10次,那么这里显示100

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

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

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

Note:关于 50% 和 90% 并发用户数的含义,请参考下文

http://www.cnblogs.com/jackei/archive/2006/11/11/557972.html

Min:最小响应时间

Max:最大响应时间

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

Throughput:吞吐量——默认情况下表示每秒完成的请求数(Request per Second),当使用了 Transaction Controller 时,也可以表示类似 LoadRunner 的 Transaction per Second 数

KB/Sec:每秒从服务器端接收到的数据量,相当于LoadRunner中的Throughput/Sec

注意:

1.无特别说明,以上时间的单位均为ms

 

转载于:https://my.oschina.net/wuweixiang/blog/1808937

你可能感兴趣的文章
JQuery选择器
查看>>
nmcli 使用记录---fatt
查看>>
【技巧】EasyUI分页组件pagination显示项控制
查看>>
POJ 3989 A hard Aoshu Problem
查看>>
ubuntu系统的谷歌浏览器的安装
查看>>
在JavaScript中"+"什么时候是链接符号,什么时候是加法运算?
查看>>
POJ1179 Polygon
查看>>
矩阵覆盖,基本DP题目
查看>>
定义一个不能被继承的类
查看>>
xgboost参数调优的几个地方
查看>>
python3编写网络爬虫13-Ajax数据爬取
查看>>
JVM监控启动参数
查看>>
npm 是干什么的
查看>>
视达配色教程1 色彩是什么
查看>>
枚举2--熄灯问题
查看>>
overload和override二者之间的区别
查看>>
Spring MVC工作原理(好用版)
查看>>
html5--1.18 div元素与布局
查看>>
HTML.7表单
查看>>
企业架构研究总结(7)——联邦企业架构之FEAF的出现和构成(下)
查看>>