了解蝗虫汇总结果

时间:2015-04-13 05:50:46

标签: locust

我有一个问题是理解蝗虫结果,因为这是第一次加载测试我的服务器,我在当地时间00:00使用命令行运行蝗虫; 1000个用户,每秒100个孵化和10000个请求。以下是结果

Name                                                          # reqs      # fails     Avg     Min     Max  |  Median   req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET /api/v0/business/result/22918                                452  203(30.99%)    9980    2830   49809  |    6500    1.70
GET /api/v0/business/result/36150                                463  229(33.09%)   10636    2898   86221  |    7000    1.50
GET /api/v0/business/result/55327                                482  190(28.27%)   10401    3007   48228  |    7000    1.60
GET /api/v0/business/result/69274                                502  203(28.79%)    9882    2903   48435  |    6800    1.50
GET /api/v0/business/result/71704                                469  191(28.94%)   10714    2748   62271  |    6900    1.70
POST /api/v0/business/query                                    2268  974(30.04%)   10528    2938   55204  |    7100    7.10
GET /api/v0/suggestions/query/?q=na                            2361 1013(30.02%)   10775    2713   63359  |    6800    7.80
--------------------------------------------------------------------------------------------------------------------------------------------
Total                                                           6997 3003(42.92%)                                      22.90

Percentage of the requests completed within given times
Name                                                           # reqs    50%    66%    75%    80%    90%    95%    98%    99%   100%
--------------------------------------------------------------------------------------------------------------------------------------------
GET /api/v0/business/result/22918                                 452   6500   8300  11000  13000  20000  35000  37000  38000  49809
GET /api/v0/business/result/36150                                 463   7000   9400  12000  14000  21000  35000  37000  38000  86221
GET /api/v0/business/result/55327                                 482   7000   9800  12000  13000  21000  34000  38000  39000  48228
GET /api/v0/business/result/69274                                 502   6800   9000  11000  12000  20000  35000  37000  38000  48435
GET /api/v0/business/result/71704                                 469   6900   9500  11000  13000  21000  36000  38000  40000  62271
POST /api/v0/business/query                                     2268   7100   9600  12000  13000  21000  35000  37000  38000  55204
GET /api/v0/suggestions/query/?q=na                             2361   6800   9900  12000  14000  22000  35000  37000  39000  63359
--------------------------------------------------------------------------------------------------------------------------------------------

Error report
# occurences       Error                                                                                               
--------------------------------------------------------------------------------------------------------------------------------------------
80                 GET /api/v0/business/result/71704: "HTTPError('502 Server Error: Bad Gateway',)"                    
111                GET /api/v0/business/result/71704: "HTTPError('504 Server Error: Gateway Time-out',)"               
134                GET /api/v0/business/result/22918: "HTTPError('504 Server Error: Gateway Time-out',)"               
69                 GET /api/v0/business/result/22918: "HTTPError('502 Server Error: Bad Gateway',)"                    
92                 GET /api/v0/business/result/69274: "HTTPError('502 Server Error: Bad Gateway',)"                    
594                GET /api/v0/suggestions/query/?q=na: "HTTPError('504 Server Error: Gateway Time-out',)"            
111                GET /api/v0/business/result/69274: "HTTPError('504 Server Error: Gateway Time-out',)"               
419                GET /api/v0/suggestions/query/?q=na: "HTTPError('502 Server Error: Bad Gateway',)"                 
69                 GET /api/v0/business/result/55327: "HTTPError('502 Server Error: Bad Gateway',)"                    
121                GET /api/v0/business/result/55327: "HTTPError('504 Server Error: Gateway Time-out',)"               
397                POST /api/v0/business/query: "HTTPError('502 Server Error: Bad Gateway',)"                         
145                GET /api/v0/business/result/36150: "HTTPError('504 Server Error: Gateway Time-out',)"               
577                POST /api/v0/business/query: "HTTPError('504 Server Error: Gateway Time-out',)"                    
84                 GET /api/v0/business/result/36150: "HTTPError('502 Server Error: Bad Gateway',)"                    
--------------------------------------------------------------------------------------------------------------------------------------------

这是我对此感到困惑:

  1. #reqs,#fails,Avg以及第一张和第二张桌子上的所有号码后面的数字是什么意思?它是显示已发送的总请求还是第n个请求已发送?
  2. 在#excurences下面的错误报告中,总数是否代表导致错误的请求数?
  3. 感谢您的回答

1 个答案:

答案 0 :(得分:3)

第一个表显示与每行相关的统计信息,其中给定的列说明以毫秒为单位,但总raw表示每个给定列的总数。但是在您的示例中,每个原始的faliure的累积计算存在问题。对于第一个raw:发送了452个请求但其中203个失败,这意味着203/453 ~= 44.81%但是在原始总数中它是正确计算的。

第二个表是分配表,它显示了在给定时间间隔内完成的请求的百分比,表中表示完成对归属的总请求的50%完成6500ms,66%的请求在8300ms内完成并分别继续。