【问题标题】:Locust result summary. How to understand Avg, Min and Max?蝗虫结果总结。如何理解 Avg、Min 和 Max?
【发布时间】:2016-09-23 16:12:22
【问题描述】:

我用的是负载测试框架Locust,下面是一个测试结果的总结。

Name                                                          # reqs      # fails     Avg     Min     Max  |  Median   req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET /sample                                                    10000     0(0.00%)      97      56     349  |      96  761.90
--------------------------------------------------------------------------------------------------------------------------------------------
Total                                                          10000     0(0.00%)                                     761.90

我猜 req/s 意味着 761.90 个请求在 1 秒内被处理。 Avg、Min、Max 和 Median 怎么样?如何阅读这些专栏?

此性能测试大约需要 15 秒。我设置 min_wait = 0 max_wait = 0。

【问题讨论】:

    标签: locust


    【解决方案1】:

    Looking at the source,好像是指响应时间

    【讨论】:

    • 谢谢。我发现“avg_response_time = float(self.total_response_time) / self.num_requests”。我的情况是 97ms = total_response_time / 10,000。总响应时间 = 970,000 毫秒。大约16分钟。这没有意义,所以我发布了这个问题。但现在我想我明白了。 total_response_time 只是总数。请求是并行发送的。整个处理时间无所谓,15秒左右。
    猜你喜欢
    • 2015-06-18
    • 1970-01-01
    • 1970-01-01
    • 2013-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-13
    相关资源
    最近更新 更多