功能更全的VPS测试脚本ZBench 支持中英文显示

之前都是用的bench做VPS性能测试,今天发现一个更帅的VPS测试脚本ZBench,支持中文和英文显示,分享一下。

中文版:

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

测试VPS性能和网速的一键脚本bench.sh

通常我们购买vps后会在意VPS的性能和网速,所以就需要来给vps跑一个性能测试。

目前用的最多的就是bench.sh这个脚本了。使用方法也很简单。直接输入下面的命令。

wget -qO- bench.sh | bash

或者

curl -Lso- bench.sh | bash

如果提示wget或者curl命令不存在的话,就需要自己安装,命令如下:

apt-get install wget 或者 yum install wget

Debian和Ubuntu用apt-get命令,Centos用Yum命令,如果要安装curl直接替换命令就行了。

最后测试出来的结果如下:

[root@localhost ~]# bash bench.sh

------------------------VPS基本信息------------------------------------
CPU model : Common KVM processor
Number of cores : 1
CPU frequency : 3199.998 MHz
Total size of Disk : 20.0 GB (1.1 GB Used)
Total amount of Mem : 992 MB (67 MB Used)
Total amount of Swap : 0 MB (0 MB Used)
System uptime : 7 days, 14 hour 28 min
Load average : 0.18, 0.07, 0.06
OS : CentOS 7.2.1511
Arch : x86_64 (64 Bit)
Kernel : 3.10.0-327.el7.x86_64
-----------------------VPS硬盘读写------------------------------------
I/O speed(1st run) : 769 MB/s
I/O speed(2nd run) : 1.0 GB/s
I/O speed(3rd run) : 1.0 GB/s
Average I/O speed : 939.0 MB/s
-----------------------VPS网速测试------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 90.7MB/s
Linode, Tokyo, JP 106.187.96.148 15.2MB/s
Linode, Singapore, SG 139.162.23.4 3.21MB/s
Linode, London, UK 176.58.107.39 2.39MB/s
Linode, Frankfurt, DE 139.162.130.8 3.51MB/s
Linode, Fremont, CA 50.116.14.9 12.5MB/s
Softlayer, Dallas, TX 173.192.68.18 34.5MB/s
Softlayer, Seattle, WA 67.228.112.250 7.78MB/s
Softlayer, Frankfurt, DE 159.122.69.4 3.44MB/s
Softlayer, Singapore, SG 119.81.28.170 2.40MB/s
Softlayer, HongKong, CN 119.81.130.170 4.32MB/s
----------------------------------------------------------------------
Node Name IPv6 address Download Speed
Linode, Atlanta, GA 2600:3c02::4b 6.89MB/s
Linode, Dallas, TX 2600:3c00::4b 13.5MB/s
Linode, Newark, NJ 2600:3c03::4b 4.20MB/s
Linode, Singapore, SG 2400:8901::4b 3.87MB/s
Linode, Tokyo, JP 2400:8900::4b 20.7MB/s
Softlayer, San Jose, CA 2607:f0d0:2601:2a::4 13.1MB/s
Softlayer, Washington, WA 2607:f0d0:3001:78::2 3.72MB/s
Softlayer, Paris, FR 2a03:8180:1301:8::4 7.48MB/s
Softlayer, Singapore, SG 2401:c900:1101:8::2 3.28MB/s
Softlayer, Tokyo, JP 2401:c900:1001:16::4 9.33MB/s
----------------------------------------------------------------------