一、带宽压测 iperf
Server-数据接收端
sudo apt remove iperf3 libiperf0
sudo apt install libsctp1
wget https://iperf.fr/download/ubuntu/libiperf0_3.9-1_amd64.deb
wget https://iperf.fr/download/ubuntu/iperf3_3.9-1_amd64.deb
sudo dpkg -i libiperf0_3.9-1_amd64.deb iperf3_3.9-1_amd64.deb
rm libiperf0_3.9-1_amd64.deb iperf3_3.9-1_amd64.deb
iperf3 -s
Client-数据发送端
sudo apt remove iperf3 libiperf0
sudo apt install libsctp1
wget https://iperf.fr/download/ubuntu/libiperf0_3.9-1_amd64.deb
wget https://iperf.fr/download/ubuntu/iperf3_3.9-1_amd64.deb
sudo dpkg -i libiperf0_3.9-1_amd64.deb iperf3_3.9-1_amd64.deb
rm libiperf0_3.9-1_amd64.deb iperf3_3.9-1_amd64.deb
iperf3 -c <server-ip> -t 1800 -i 1 -u -b 50m
二、HTTP压测 wrk
git clone https://github.com/wg/wrk
cd wrk
make
wrk -t8 -c200 -d30s --latency http://www.bing.com
wrk -t10 -c30 -d2s -T5s --latency http://www.baidu.com
三、上传和下载带宽测试
Speedtest 测速
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
python speedtest.py --share
Superspeed 测速
bash <(curl -Lso- https://git.io/superspeed)
bash <(curl -Lso- https://git.io/superspeed_uxh)
四、云服务器综合性能测试
wget -qO- bench.sh | bash
五、PING 延迟测速
全国各地–>目标云服务器
- 全国各地到目标云服务器的 PING 延迟测试,使用 http://ipip.net 的在线工具测试工具 https://tools.ipip.net/ping.php ,输入目标云服务器的 IP,测试全国各地区到主机的PING延迟。
目标云服务器–>国内三大运营商
wget https://raw.githubusercontent.com/helloxz/mping/master/mping.sh
bash mping.sh
六、IP 路由
wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
./besttrace <ip>