购买vps主机时、会因各地方网络线路不同、网络延迟也会不同、或者商家虚假标注vps主机参数、导致购买vps主机不尽人意、所以整理以下测试脚本、一键操作、非常简单
三合一脚本
1、整体性能进行测试,包含 VPS 的硬件信息,硬盘速率
2、网络性能进行测试,包含三网(电信、移动、联通)的下载速度和上传速度
3、回程路由进行测试,包含四网(电信、移动、联通、教育网)的回程线路
代码
wget -N --no-check-certificate https://raw.githubusercontent.com/V2RaySSR/vps/master/vpstest.sh && bash vpstest.sh
图片
SuperBench.sh
改用模块化方式加了参数,有时间IO或者速度那地方跑太久,太难等了,你就不必跑完整个脚本,只想测哪个就测哪个
-info 系统信息
-io 简单io测试
-speed 速度测试
-ip GEOIP信息
-fast 快速模式
代码
wget -qO- git.io/superbench.sh | bash -s info
wget -qO- git.io/superbench.sh | bash -s io
wget -qO- git.io/superbench.sh | bash -s speed
wget -qO- git.io/superbench.sh | bash -s fast
wget -qO- git.io/superbench.sh | bash -s share
图片
Zench
平时测试VPS的时候一直是靠着 Bench.sh 来测试的,最近看到 Oldking大佬 的 SuperBench 也很方便。我自己把这两者的脚本结合在一起,然后加入 Ping 以及 路由测试 功能。比较懒人,简单快捷
代码
如果中文版出现乱码等情况,请换成英文版。
中文版:
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
英文版:
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh
图片
测试后在 /root/ 下面生成一个 report.html 的文件
实例:https://www.imtqy.com/demo/zbench-example.html
Github 地址:https://github.com/FunctionClub/ZBench
原文链接:https://www.haoozi.com/archives/406,转载请注明出处。