在 autobench 中将查询作为 uri 的一部分给出
我正在使用 autobench 进行 becnhmark。 autobench 命令的示例如下所示。
autobench --single_host --host1 testhost.foo.com --uri1 /index.html --quiet
--timeout 5 --low_rate 20 --high_rate 200 --rate_step 20 --num_call 10
--num_conn 5000 --file bench.tsv**
我必须指定的 uri 附加了一个查询。当我运行包含查询的命令时,我得到以下结果:
dem_req_rate req_rate_localhost con_rate_localhost min_rep_rate_localhost avg_rep_rate_localhost max_rep_rate_localhost stddev_rep_rate_localhost resp_time_localhost net_io_localhost errors_localhost
200 0 20 0 0 0 0 0 0 101
400 0 40 0 0 0 0 0 0 101
600 0 60 0 0 0 0 0 0 101
800 0 80 0 0 0 0 0 0 101
1000 0 100 0 0 0 0 0 0 101
1200 0 120 0 0 0 0 0 0 101
1400 0 140 0 0 0 0 0 0 101
1600 0 160 0 0 0 0 0 0 101
1800 0 180 0 0 0 0 0 0 101
2000 0 200 0 0 0 0 0 0 101
查询请求、响应均为零。有人可以告诉我如何将查询作为 uri 的一部分吗?
先感谢您
I am using autobench for doing becnhmark. An example of autobench command is as shown below.
autobench --single_host --host1 testhost.foo.com --uri1 /index.html --quiet
--timeout 5 --low_rate 20 --high_rate 200 --rate_step 20 --num_call 10
--num_conn 5000 --file bench.tsv**
The uri which I have to specify has a query attached to it. When I run the command which has the query, I get the following result
dem_req_rate req_rate_localhost con_rate_localhost min_rep_rate_localhost avg_rep_rate_localhost max_rep_rate_localhost stddev_rep_rate_localhost resp_time_localhost net_io_localhost errors_localhost
200 0 20 0 0 0 0 0 0 101
400 0 40 0 0 0 0 0 0 101
600 0 60 0 0 0 0 0 0 101
800 0 80 0 0 0 0 0 0 101
1000 0 100 0 0 0 0 0 0 101
1200 0 120 0 0 0 0 0 0 101
1400 0 140 0 0 0 0 0 0 101
1600 0 160 0 0 0 0 0 0 101
1800 0 180 0 0 0 0 0 0 101
2000 0 200 0 0 0 0 0 0 101
The query request, response are all zeroes. Can anybody please tell me how to give a query as part of the uri?
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我将包含查询字符串的 uri 用单引号引起来时,它对我有用。类似于:
uri1 '/my/uri/query?string'
It worked for me when I surrounded the uri containing the query string in single quotes. Something like:
uri1 '/my/uri/query?string'