【发布时间】:2022-01-11 20:02:00
【问题描述】:
我们正在尝试添加一个 locust grpc 客户端并从示例目录 here 获取代码。
我们的用例是 locust 将用作库而不是通过 UI。
我们在 csv 文件或代码中看到的统计信息输出的问题。我在 locust doc here 中看到的代码和我们的代码之间的唯一区别是服务是独立启动的。
此问题已在此 GitHub 存储库中重现:https://github.com/saurabhsharma721/grpc_locust_stats_repro_prj
此问题仅在库模式下观察到。如果我们通过 ui 运行它,则生成的统计信息是正确的。请帮忙。
【问题讨论】:
-
我看到我们有类似的问题,但想检查在测试中放置请求事件的位置。代码 sn-p 会有所帮助。 stackoverflow.com/questions/68229131/…
标签: python grpc performance-testing load-testing locust