linux服务器性能测试IO/ping/bench

Linux服务器网络测试一键包是91yun制作的Linux服务器IO测试带宽测试下载测试路由测试回程路由测试全国Ping测试国外Ping测试UnixBench跑分测试一键测试包。可以一个命令完成服务器全方位的测试,测试完日志存在你执行测试代码的目录下,可以使用cat test91yun.log查看,选择不生成html页面的话,也不会上传任何日志到服务器。
一、完整测试代码 下面是Linux服务器性能测试一键包的完整测试代码。只要运行该代码就能一键实现服务器IO测试、带宽测试、下载测试、路由测试、回程路由测试、全国Ping测试、国外Ping测试、UnixBench跑分测试。
yum -y install wget wget -N –no-check-certificate https://raw.githubusercontent.com/91yun/91yuntest/master/test.sh bash test.sh -i “io,bandwidth,chinabw,download,traceroute,backtraceroute,allping,gotoping,benchtest” -u
当然也可以根据自己需要测试的项目进行选择,上面代码中的”io、bandwidth、download、traceroute、backtraceroute、allping、gotoping、benchtest”指的就是测试项目,所以项目可以根据自己需要进行删减。
io:IO测试,通过DD命令来测试服务器的平均IO水平。
bandwidth:带宽测试,使用speedtest来测试服务器的上传和下载带宽。
download:下载测试,使用wget来测试到世界各地的下载速度,如果服务器带宽小于10M的话谨慎使用。
traceroute:路由测试,从国内部分节点到测试服务器的路由线路。
backtraceroute:回程路由测试,测试服务器到国内部分节点的回程路由线路。
allping:全国Ping测试,全国各地到测试服务器的Ping值。
gotoping:国外Ping测试,测试服务器到日韩美欧等地域的ping值。
benchtest:UnixBench跑分测试,该测试耗时将近1小时,并会跑满CPU,请谨慎测试。

二、测试组合推荐
1、IO测试、带宽测试、下载测试、全国Ping测试
yum -y install wget wget -N –no-check-certificate https://raw.githubusercontent.com/91yun/91yuntest/master/test.sh bash test.sh -i “io,bandwidth,download,allping” -u
2、IO测试、带宽测试、下载测试、全国Ping测试、路由测试、回程路由测试
yum -y install wget wget -N –no-check-certificate https://raw.githubusercontent.com/91yun/91yuntest/master/test.sh bash test.sh -i “io,bandwidth,download,traceroute,backtraceroute,allping” -u
3、IO测试、带宽测试、下载测试、全国Ping测试、路由测试、回程路由测试、国外Ping测试
yum -y install wget wget -N –no-check-certificate https://raw.githubusercontent.com/91yun/91yuntest/master/test.sh bash test.sh -i “io,bandwidth,download,traceroute,backtraceroute,allping,gotoping” -u

GitHuB地址:https://github.com/91yun/91yuntest

原创文章,作者:Safeidc,如若转载,请注明出处:https://www.safeidc.cn/533.html

本站不销售、不代购、不提供任何支持,仅分享网络信息,请自行辨别,请遵纪守法、文明上网。