为了测试我的程序,我想尽可能快地发送大约50个http请求.目前我正在使用调用curl的bash脚本并发送每个请求
curl "http://my.host.com/test.php?param=1" &
curl "http://my.host.com/test.php?param=2" &
curl "http://my.host.com/test.php?param=100" &
Run Code Online (Sandbox Code Playgroud)
但似乎不够快.我想因为每个curl调用将首先建立一个tcp连接,如果连接只建立一次,性能可以提高.有没有其他工具可以有效地发送请求?