#!/bin/bash
Pno=50000
for ((i=1;i<=5000;i++)) ;
do
Pno=`expr $Pno + 1`
echo '=======' >> 1.log
echo $Pno >> 1.log
date >> 1.log
curl -o /dev/null --local-port $Pno -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{time_appconnect}"\n" curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{time_appconnect}"\n" https://www.aliyun.com/ >> 1.log
date >>1.log
sleep 2
done