蝗虫 - 测试统计元数据

时间:2018-03-09 16:12:40

标签: performance csv locust

蝗虫documentation没有清楚地调出将在测试统计信息的CSV文件中报告的各个字段。我遇到this question,其中包含对结果的一些描述。这是测试结果的样子吗?或者,还有其他格式吗?

1 个答案:

答案 0 :(得分:1)

现在它直接从您可以从端点手动下载的数据中获取,如下所示:

$cat foobar_distribution.csv 
"Name","# requests","50%","66%","75%","80%","90%","95%","98%","99%","100%"
"_get_token",0,"N/A","N/A","N/A","N/A","N/A","N/A","N/A","N/A","N/A"
"client _ping",2,5,5,5,5,5,5,5,5,5
"client _scores",7,4,4,4,4,5,5,5,5,5
"rpc_get_scores",7,5,5,5,5,7,7,7,7,7
"rpc_get_token",36,0,0,0,0,0,0,1,1,1
"rpc_ping",2,6,6,6,6,6,6,6,6,6
"None Total",54,0,1,4,4,5,5,6,7,7

 $cat foobar_requests.csv 
"Method","Name","# requests","# failures","Median response time","Average response time","Min response time","Max response time","Average Content Size","Requests/s"
"Method","_get_token",0,0,0,0,0,0,0,0.00
"Method","_ping",2,0,3,4,3,5,0,0.19
"Method","_scores",7,0,4,4,4,5,0,0.68
"Method","rpc_get_scores",7,0,5,5,4,7,0,0.68
"Method","rpc_get_token",36,0,0,0,0,1,0,3.51
"Method","rpc_ping",2,0,4,5,4,6,0,0.19

当我制作PR时,我显然忘记更新文档...您可以看到字段here from the PR though too