蝗虫的自定义形状请求
我正在使用蝗虫进行负载测试,我们有一些问题。我们希望以指数分配的毫秒为单位发送请求。就我搜索而言,我发现蝗虫在几秒钟内起作用,我们不能说我们以12ms和59ms的下一个请求发送了一个请求。有什么办法吗?
I am using Locust for our load test and we have some issues. We want control sending request in milliseconds with an exponential distribution. As far as I searched, I found out that Locust works within seconds and we couldn't say that we sent one request in 12ms and the next request in 59ms. Is there any way to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是蝗虫的新手,但是我可以看到它支持定义迭代之间的自定义wait_times。
您可以在用户类中的类似内容中覆盖wait_time方法:
I am new to Locust, but I can see that it supports defining custom wait_times between iterations.
You may override the wait_time method by something like this in your User class: