for循环中的apache ab
我想使用不同的参数运行 apache ab test 更多次,这些参数将存储在数组中。 例如:
$array {10,50,100,500,1000}
for $i in $array
ab -A name:pass -n $i -c $i http://www.google.com/.... > file_$i.txt
虽然重要的是,要开始第 i 个测试,必须完成前一个测试。
I'd like to run apache ab test more times with different parameters that will be stored in an array.
eg.:
$array {10,50,100,500,1000}
for $i in $array
ab -A name:pass -n $i -c $i http://www.google.com/.... > file_$i.txt
While it's important that, to begin the i-th test, the previous test has to be finished.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从我的头顶上下来(未经测试)
off the top of my head (untested)