以下是常用的VPS测评脚本推荐,涵盖性能测试、网络测速、硬件检测等核心功能:
一、综合性能测试脚本
Bench.sh
测试内容:CPU性能、磁盘I/O、带宽速度、网络延迟
使用命令:wget -qO- bench.sh | bash
特点:支持IPv6测试,结果简洁直观。
LemonBench
测试内容:CPU/内存/磁盘性能、多地区网络下载速度、路由追踪
使用命令:curl -fsL https://raw.githubusercontent.com/LemonBench/LemonBench/master/LemonBench.sh | bash -s fast
特点:支持全球节点测速,输出详细硬件信息。
SuperBench.sh
测试内容:I/O读写(小/中/大文件)、三网(电信/联通/移动)下载速度
使用命令:wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
特点:彩色显示结果,测试项更贴近实际场景。
二、专项测试脚本
YABS (Yet Another Bench Script)
测试内容:CPU算力(sysbench)、磁盘I/O、多线程带宽
使用命令:curl -sL yabs.sh | bash
特点:快速生成硬件基准报告,适合对比不同VPS
UnixBench.sh
测试内容:系统调用、进程管理、2D/3D图形性能(需GPU支持)
使用命令:
特点:全面但耗时较长(约30分钟)
ZBench
测试内容:中英文双语报告,涵盖CPU/内存/磁盘/网络
使用命令(中文版):wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
特点:支持结果分享至网页
三、网络与路由测试
回程路由测试(BestTrace)
测试内容:追踪VPS到国内三大运营商的路由路径
使用命令:wget -qO- git.io/besttrace | bash
特点:可视化路由跳点和延迟
三网测速(Superspeed)
测试内容:电信/联通/移动的下载速度
使用命令:bash <(curl -Lso- https://git.io/superspeed)
特点:国内节点覆盖全面
四、高级工具
Geekbench
测试内容:专业CPU/GPU性能评分(跨平台)
使用步骤:wget https://cdn.geekbench.com/Geekbench-5.2.3-Linux.tar.gz
tar -xzf Geekbench-5.2.3-Linux.tar.gz
cd Geekbench-5.2.3-Linux
./geekbench5
特点:生成可比对的标准化分数
超开检测(Memtester)
测试内容:内存可用性检测(判断VPS是否超售)
使用命令:wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp && ./a.out
特点:直接显示剩余可用内存。
五、使用建议
快速综合测试:优先使用 Bench.sh 或 LemonBench
深度性能对比:结合 YABS 和 Geekbench
国内线路优化:必跑 三网测速 和 回程路由。
所有脚本均需通过SSH执行,部分需依赖 wget 或 curl,建议先安装基础工具包(如 apt install -y wget curl )

文章评论