怎么使用 ab.exe 测试多个url。 how to use ab.exe test many url

from a commandline in windows:

for /F %q in (list.txt) DO ab -n 1000 https://test.com/search?%q
 

I don't know Apache Bench nor how it collects its data. My approach will probably start a new collection of data for each line in list.txt which is something you might not want. You'll have to aggregate the results of different runs by hand.

(to debug:

for /F %q in (list.txt) DO echo ab -n 1000 https://test.com/search?%q
 

which will output on the console the statement that will execute)

posted @ 2015-12-29 15:54  iDEAAM  阅读(679)  评论(0编辑  收藏  举报