常用的VPS服务器性能一键测试脚本,可以用来测试机器的配置和性能,测试 VPS 服务器的基本配置,网络速度,硬盘性能,运算能力等。
测试脚本均来自于网络
1、秋水逸冰 bench.sh
wget -qO- bench.sh | bash
curl -Lso- bench.sh | bash
wget -qO- 86.re/bench.sh | bash
curl -so- 86.re/bench.sh | bash
以上四个任选一个使用。
2、融合怪测评脚本
最全能测试服务器的脚本,根据提示进行需要测试的项目
交互形式命令:
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
或
curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
3、SuperSpeed
SuperSpeed 测试 VPS 服务器到国内节点的网速
wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh
chmod +x superspeed.sh
./superspeed.sh
4、Serverreview-Benchmark
Serverreview-Benchmark 测试 VPS 服务器配置信息、CPU / 内存 / 硬盘性能、全球节点测速
执行脚本命令:
yum install curl -y
curl -LsO https://raw.githubusercontent.com/sayem314/serverreview-benchmark/master/bench.sh
chmod +x bench.sh
./bench.sh -a share
5、Best Trace
Best Trace 是 IPIPNET 开发的一款可视化路由跟踪工具
### `Windows` 下载:[https://cdn.ipip.net/17mon/besttrace.exe]
### `MacOS` 下载:[https://itunes.apple.com/us/app/best-trace/id1037779758?l=zh&ls=1&mt=12]
6、ZBench
本脚本作者为雨落大佬,将秋水的 Bench.sh 和 Oldking 的 SuperBench 结合了,然后加入 Ping 同路由测试,可以详细的测试出服务器系统信息,下载速度,到国内的带宽,Ping 值等等,还可以生成 html 网页进行查看,让你可以对你的机器有所了解,挺不错的
执行脚本命令:
中文版:
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
7、91Yuntest
91YUN大佬的,测试包含:常规系统参数检测,带宽测试,IO 测试和全国 ping 测试、下载测试、路由测试、回程路由测试。下面代码直接复制到机器使用即可,默认会生成 html 页。
执行脚本命令:
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"
8、Memtester
Memtester 是一个检测 VPS 真实可分配内存的小工具,适用于检测 VPS 超售情况。本程序检测的可分配内存指的是用户使用时最大能占用的内存量。
执行脚本命令:
CentOS/RHEL系统
yum install wget -y
yum groupinstall "Development Tools" -y
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
Ubuntu/Debian系统
apt-get update
apt-get install wget build-essential -y
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
9、yabs.sh服务器性能测试脚本命令
一个比较全面测试Linux系统服务器CPU性能及硬盘性能的脚本,有兴趣的可以试试,特别是对CPU性能测试比较全面。此脚本支持在CentOS 6+、Debian 8+、Fedora 30、Ubuntu 16.04+系统中使用,并且无需安装其他依赖程序。测试命令如下:
curl -sL yabs.sh | bash
yabs.sh脚本比较全面的测试下面CPU、基本信息、硬盘、带宽等内容,如果需要排除一些不想测试的项目可以使用下面命令。
如:跳过磁盘和网络性能测试,只测试CPU的Geekbench5性能测试
curl -sL yabs.sh | bash -s -- -fi5
可以将选项组合在一起以跳过多个测试,即-fg跳过磁盘和系统性能测试(实际上仅测试网络性能)。
-b 强制使用 repo 中的预编译二进制文件而不是本地包
-f/-d 禁用 fio(磁盘性能)测试
-i 禁用 iperf(网络性能)测试
-G 禁用 Geekbench(系统性能)测试
-n 跳过网络信息查找和打印
-h 打印包含使用情况、检测到的标志和本地包 (fio/iperf) 状态的帮助消息
-r 减少 iperf 位置(Scaleway/Clouvider LON+NYC)的数量以减少带宽使用
-4 运行 Geekbench 4 测试并禁用 Geekbench 6 测试
-5 运行 Geekbench 5 测试并禁用 Geekbench 6 测试
-9 同时运行 Geekbench 4 和 5 测试而不是 Geekbench 6 测试
-6 如果使用了以下任何一项,则重新启用 Geekbench 6 测试:-4、-5 或 -9(-6 标志必须在最后才能被覆盖)
-j 将结果的 JSON 表示打印到屏幕
-w <filename> 使用提供的文件名将 JSON 结果写入文件
-s <url> 将结果的 JSON 表示形式发送到指定的 URL(请参阅下面的部分)
10、两个好用的Linux回程路由脚本,可自定义回程IP
(1)、自动四网回程路由测试
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
(2)、自动四网回程路由测试
wget -qO- git.io/autobesttrace | bash
(3)、手动输入IP测试回程路由
wget https://github.com/zhucaidan/BestTrace-Linux/raw/master/besttrace && chmod +x besttrace
./besttrace 测试的IP/域名
(3)、一键测试回国各地TCP路由脚本
bash <(curl -sL mcnb.top/besttcp.sh)
555