前言

买了 VPS 之后,第一件事就是想知道它的性能怎么样——CPU 快不快、硬盘读写速度如何、网络带宽够不够、流媒体能不能解锁。本文整理了 Linux VPS 上最常用的测试脚本,一键搞定。

常规测试

Bench 脚本(最经典)

wget -qO- bench.sh | bash
# 或者
curl -Lso- bench.sh | bash

Yabs 脚本

wget -qO- yabs.sh | bash
# 或者
curl -sL yabs.sh | bash

SuperBench(带国内三网测速)

wget -qO- git.io/superbench.sh | bash

综合测试

融合怪脚本(推荐)

curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

带宽测速

Speedtest(国际)

curl -LsO bench.monster/speedtest.sh
bash speedtest.sh
# 加参数 -Global 可测全球节点

Speedtest(国内多节点)

bash <(curl -Lso- https://raw.githubusercontent.com/sjlleo/speedtest/main/speedtest.sh)

IP 及流媒体检测

IP 质量检测

bash <(curl -sL IP.Check.Place)

流媒体解锁检测

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

回程路由测试

KOS 工具箱

wget -q route.f2k.pub -O route && bash route

Backtrace

curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh

BestTrace

wget -qO- git.io/besttrace | bash

全自动路由追踪

wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh

以上就是最常用的 VPS 测试脚本合集,建议收藏备用。每次购买新 VPS 后,跑一遍就能对机器性能心里有数。