VPS 测评脚本大全
2026/6/26大约 2 分钟
VPS 测评脚本大全
新买 VPS 后,建议先做一次基线测试,再决定它适合建站、代理、存储还是跑服务。本文按测试目标整理常用工具,并把旧链接替换成当前项目仓库中的来源。
一键综合测评
NodeQuality
NodeQuality 是最省事的一站式脚本,包含 CPU、磁盘、网络、IP 质量、流媒体和路由信息:
bash <(curl -fsSL https://raw.githubusercontent.com/xykt/NodeQuality/main/NodeQuality.sh)YABS、bench.sh 和 SuperBench
curl -fsL yabs.sh | bash
wget -qO- bench.sh | bash
bash <(wget -qO- https://raw.githubusercontent.com/spiritLHLS/superbench/main/superbench.sh)这类脚本会同时运行多个测试,耗时和磁盘写入量较大,生产机器应避开业务高峰。
分项测试
CPU
# Geekbench 下载官方 Linux CLI 后执行
./geekbench6
# UnixBench
git clone https://github.com/kdlucas/byte-unixbench.git
cd byte-unixbench/UnixBench && make && ./Run磁盘
fio 比 dd 更适合比较 IOPS 和队列深度;不要在生产盘上直接做长时间随机写。
sudo apt install -y fio
fio --name=randread --filename=/tmp/fio.test --size=1G --bs=4k \
--rw=randread --ioengine=libaio --direct=1 --runtime=60 --time_based网络、流媒体和 IP 质量
speedtest
bash <(curl -fsSL https://raw.githubusercontent.com/i-abc/speed-test/main/speedtest.sh)
iperf3 -c <server_ip> -t 30
bash <(curl -fsSL https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
bash <(curl -fsSL https://raw.githubusercontent.com/xykt/IPQuality/main/ip.sh)回程路由
curl -fsSL https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh | sh
curl nxtrace.org/nt/install.sh | bash
nexttrace <target_ip>推荐组合
先跑 NodeQuality;需要复核时再单独跑 YABS、IPQuality、流媒体检测和 backtrace。记录实例规格、区域、测试时间、磁盘类型和网络限制,否则不同时间的结果很难比较。
安全注意事项
- 先阅读脚本内容,再执行远程脚本;生产机器不要盲目使用
curl | bash。 - 磁盘测试可能产生大量写入,避免使用系统盘或业务目录作为测试文件。
- 公共 iperf3 节点不稳定,结果只能作为参考。
- 不要把公网 IP、完整路由和敏感配置连同测试日志公开。
bash.icu、ilemonra.in、check.unlock.moe等旧链接已失效,应使用官方仓库。
| 目标 | 推荐工具 |
|---|---|
| 一站式 | NodeQuality、YABS |
| CPU | Geekbench、UnixBench |
| 磁盘 | fio |
| 网络 | Ookla、speed-test、iperf3 |
| 流媒体 | RegionRestrictionCheck |
| IP 质量 | IPQuality |
| 回程 | backtrace、NextTrace、BestTrace |
