gpt4 book ai didi

benchmarking - 与wrk一起发布请求?

转载 作者:行者123 更新时间:2023-12-03 13:39:29 26 4
gpt4 key购买 nike

我开始尝试wrk。它非常易于使用,并且在服务器上非常难,但是我不知道如何执行其他类型的请求,例如POST。实际上,我什至不知道该工具是否允许。该文档非常少。

谢谢

最佳答案

现在这是可能的。这是https://github.com/wg/wrk/blob/master/scripts/post.lua的示例。

wrk.method = "POST"
wrk.body = "foo=bar&baz=quux"
wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"

将其保存在* .lua脚本中,并使用-s标志将其传递到命令行测试中。

关于benchmarking - 与wrk一起发布请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15261612/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com