我想用存储在数组中的不同参数多次运行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个测试,必须完成前一个测试。
发布于 2011-04-12 23:53:21
从我的头顶(未经测试)
array=(10 50 100 500 1000)
for i in ${array[@]}; do
ab -A name:pass -n $i -c $i http://www.google.com/.... > file_$i.txt
donehttps://stackoverflow.com/questions/5635850
复制相似问题