目前一键测试脚本bench.sh已经非常成熟,你看到过的很多VPS服务器评测可能都是使用此脚本进行系统信息、IO读写、下载速度测试。bench.sh几乎支持所有Linux发行版系统的带宽、IO测试和服务器基本信息检测。
登录VPS后,执行下列命令:
wget -qO- bench.sh | bash
返回结果:
-------------------- A Bench.sh Script By Teddysun -------------------
Version : v2022-02-22
Usage : wget -qO- bench.sh | bash
----------------------------------------------------------------------
CPU Model : AMD EPYC 7K62 48-Core Processor
CPU Cores : 4 @ 2595.124 MHz
CPU Cache : 512 KB
AES-NI : Enabled
VM-x/AMD-V : Disabled
Total Disk : 79.7 GB (6.8 GB Used)
Total Mem : 3.6 GB (655.9 MB Used)
System uptime : 3 days, 12 hour 10 min
Load average : 0.00, 0.00, 0.00
OS : Debian GNU/Linux 11
Arch : x86_64 (64 Bit)
Kernel : 5.10.0-9-amd64
TCP CC : cubic
Virtualization : KVM
Organization : AS45090 Shenzhen Tencent Computer Systems Company Limited
Location : Beijing / CN
Region : Beijing
----------------------------------------------------------------------
I/O Speed(1st run) : 176 MB/s
I/O Speed(2nd run) : 159 MB/s
I/O Speed(3rd run) : 159 MB/s
I/O Speed(average) : 164.7 MB/s
----------------------------------------------------------------------
Node Name Upload Speed Download Speed Latency
Speedtest.net 8.18 Mbps 103.36 Mbps 12.97 ms
Los Angeles, US 11.53 Mbps 2.43 Mbps 159.24 ms
Dallas, US 10.62 Mbps 1.98 Mbps 187.64 ms
Montreal, CA 13.10 Mbps 111.57 Mbps 222.20 ms
Paris, FR 8.24 Mbps 1.24 Mbps 179.76 ms
Amsterdam, NL 8.72 Mbps 110.83 Mbps 227.02 ms
Shanghai, CN 10.53 Mbps 102.70 Mbps 24.43 ms
Nanjing, CN 13.76 Mbps 102.55 Mbps 18.92 ms
脚本使用小结
bench.sh使用非常简单。基本支持所有的Linux系统,而且测试结果呈现出来非常美观。
使用此脚本可以一目了然的知道当前测试的各种系统信息、IO读写情况、全球下载速度测试。脚本的IO读写测试,采用三次读写测试后取平均值;下载测速是采用全球多处知名数据中心进行测试,并且还支持IPv6下载测速。
如果再配合 unixbench.sh 脚本测试,即可全面测试 VPS 的性能。