日常使用快速检测VPS服务器CPU、磁盘和网络脚本

MacBook Pro showing programming language

YABS

VPS提供商:krypt 圣何塞

运行命令

wget -qO- yabs.sh | bash

脚本效果:

Last failed login: Sat Dec 18 01:32:04 EST 2021 from 61.177.173.11 on ssh:notty
There were 27879 failed login attempts since the last successful login.
Last login: Mon Dec 13 05:14:43 2021 from 113.104.245.19
[root@host176d4a3069 ~]# wget -qO- yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2021-12-03                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Sat Dec 18 01:32:31 EST 2021

Basic System Information:
---------------------------------
Processor  : Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
CPU cores  : 1 @ 2599.996 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM        : 1.8 GiB
Swap       : 1024.0 MiB
Disk       : 48.2 GiB

fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 47.56 MB/s   (11.8k) | 63.65 MB/s     (994)
Write      | 47.62 MB/s   (11.9k) | 64.10 MB/s    (1.0k)
Total      | 95.19 MB/s   (23.7k) | 127.75 MB/s   (1.9k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 75.76 MB/s     (147) | 73.38 MB/s      (71)
Write      | 79.79 MB/s     (155) | 78.27 MB/s      (76)
Total      | 155.56 MB/s    (302) | 151.65 MB/s    (147)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 798 Mbits/sec   | 152 Mbits/sec  
Online.net      | Paris, FR (10G)           | 802 Mbits/sec   | 340 Mbits/sec  
WorldStream     | The Netherlands (10G)     | 758 Mbits/sec   | 451 Mbits/sec  
WebHorizon      | Singapore (1G)            | 323 Mbits/sec   | 343 Mbits/sec  
Clouvider       | NYC, NY, US (10G)         | 915 Mbits/sec   | 338 Mbits/sec  
Velocity Online | Tallahassee, FL, US (10G) | 901 Mbits/sec   | 540 Mbits/sec  
Clouvider       | Los Angeles, CA, US (10G) | 983 Mbits/sec   | 922 Mbits/sec  
Iveloz Telecom  | Sao Paulo, BR (2G)        | 784 Mbits/sec   | 205 Mbits/sec  

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 642                           
Multi Core      | 657                           
Full Test       | https://browser.geekbench.com/v5/cpu/11671120

Bench Monster

VPS提供商:Racknerd圣何塞

运行命令

curl -LsO bench.monster/speedtest.sh; bash speedtest.sh

脚本效果:

---------------------------------------------------------------------------
 OS           : Debian GNU/Linux 10 (64 Bit)
 Virt/Kernel  : KVM / 4.19.0-6-amd64
 CPU Model    : AMD Ryzen 9 3900X 12-Core Processor
 CPU Cores    : 1 @ 3792.874 MHz x86_64 512 KB Cache
 CPU Flags    : AES-NI Enabled & VM-x/AMD-V Enabled
 Load Average : 0.00, 0.00, 0.00
 Total Space  : 9.4G (1.4G ~15% used)
 Total RAM    : 483 MB (82 MB + 387 MB Buff in use)
 Total SWAP   : 511 MB (15 MB in use)
 Uptime       : 206 days 17:58
---------------------------------------------------------------------------
 ASN & ISP    : AS36352, ColoCrossing
 Organization : ColoCrossing
 Location     : San Jose, United States / US
 Region       : California
---------------------------------------------------------------------------

 ## Geekbench v4 CPU Benchmark:

  Single Core : 3989  (VERY GOOD)
   Multi Core : 3827

 ## IO Test

 CPU Speed:
    bzip2     : 123 MB/s
   sha256     : 235 MB/s
   md5sum     : 564 MB/s

 RAM Speed:
   Avg. write : 2150.4 MB/s
   Avg. read  : 6553.6 MB/s

 Disk Speed:
   1st run    : 992 MB/s
   2nd run    : 963 MB/s
   3rd run    : 1.1 GB/s
   -----------------------
   Average    : 1027.1 MB/s

 ## Global Speedtest.net

 Location                       Upload           Download         Ping   
---------------------------------------------------------------------------
 Nearby                         830.50 Mbit/s    375.68 Mbit/s    6.067 ms
---------------------------------------------------------------------------
 USA, New York (Optimum)        235.43 Mbit/s    239.21 Mbit/s    65.458 ms
 USA, Chicago (Windstream)      278.85 Mbit/s    316.91 Mbit/s    47.981 ms
 USA, Dallas (Frontier)         311.11 Mbit/s    366.74 Mbit/s    38.625 ms
 USA, Miami (Sprint)            226.22 Mbit/s    255.28 Mbit/s    71.557 ms
 USA, Los Angeles (Windstream)  633.67 Mbit/s    800.34 Mbit/s     8.999 ms
 UK, London (toob Ltd)          140.66 Mbit/s    69.84 Mbit/s    129.576 ms
 France, Lyon (SFR)             83.40 Mbit/s     98.09 Mbit/s    150.968 ms
 Germany, Berlin (DNS:NET)      122.18 Mbit/s    119.58 Mbit/s   151.546 ms
 Spain, Madrid (MasMovil)       128.05 Mbit/s    77.99 Mbit/s    146.259 ms
 Italy, Rome (Unidata)          115.98 Mbit/s    84.66 Mbit/s    161.754 ms
 Russia, Moscow (Rostelecom)    100.38 Mbit/s    69.58 Mbit/s    180.303 ms
 Israel, Haifa (013Netvision)   73.57 Mbit/s     103.78 Mbit/s   187.189 ms
 India, New Delhi (Weebo)       23.70 Mbit/s     89.83 Mbit/s    261.904 ms
 Singapore (FirstMedia)         65.96 Mbit/s     43.86 Mbit/s    175.108 ms
 Japan, Tsukuba (SoftEther)     159.10 Mbit/s    133.91 Mbit/s   110.098 ms
 Australia, Sydney (Optus)      113.63 Mbit/s    113.00 Mbit/s   156.526 ms
 RSA, Randburg (Cool Ideas)     20.09 Mbit/s     53.61 Mbit/s    296.518 ms
 Brazil, Sao Paulo (Criare)     86.66 Mbit/s     185.28 Mbit/s   184.189 ms
---------------------------------------------------------------------------

 Finished in : 10 min 32 sec
 Timestamp   : 2021-12-18 06:44:07 GMT
 Saved in    : /root/speedtest.log

 Share results:
 - https://www.speedtest.net/result/12484467081.png
 - https://browser.geekbench.com/v4/cpu/16442137
 - https://clbin.com/4YAYu

Bench.sh

 查看系统信息并测试您的 Linux 服务器的网络、磁盘。

VPS提供商: Cloudcone 洛杉矶

运行命令

wget -qO- bench.sh | bash

脚本效果:

----------------------------------------------------------------------
 CPU Model             : Intel Xeon E312xx (Sandy Bridge, IBRS update)
 CPU Cores             : 1
 CPU Frequency         : 2194.840 MHz
 CPU Cache             : 16384 KB
 Total Disk            : 20.0 GB (3.0 GB Used)
 Total Mem             : 976 MB (240 MB Used)
 Total Swap            : 1024 MB (0 MB Used)
 System uptime         : 214 days, 19 hour 23 min
 Load average          : 0.06, 0.04, 0.00
 OS                    : CentOS Linux release 7.6.1810 (Core) 
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.19.8-1.el7.elrepo.x86_64
 TCP CC                : bbr
 Virtualization        : KVM
 Organization          : AS35916 MULTACOM CORPORATION
 Location              : Los Angeles / US
 Region                : California
----------------------------------------------------------------------
 I/O Speed(1st run)    : 398 MB/s
 I/O Speed(2nd run)    : 845 MB/s
 I/O Speed(3rd run)    : 770 MB/s
 Average I/O speed     : 671.0 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    457.22 Mbps       466.93 Mbps         26.54 ms    
 Shanghai   CT    192.17 Mbps       486.95 Mbps         170.28 ms   
 Shanghai   CU    297.69 Mbps       371.13 Mbps         207.40 ms   
 Guangzhou  CT    26.40 Mbps        346.99 Mbps         164.03 ms   
 Hongkong   CN    452.78 Mbps       453.43 Mbps         155.70 ms   
 Tokyo      JP    404.10 Mbps       22.11 Mbps          105.78 ms   
----------------------------------------------------------------------

NENCH

基于 freevps.us/bench.sh 脚本的优化

VPS提供商: Cloudcone 洛杉矶

运行命令

(curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log

脚本效果:

Last failed login: Sat Dec 18 01:32:04 EST 2021 from 61.177.173.11 on ssh:notty
There were 27879 failed login attempts since the last successful login.
Last login: Mon Dec 13 05:14:43 2021 from 113.104.245.19
[root@host176d4a3069 ~]# wget -qO- yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2021-12-03                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Sat Dec 18 01:32:31 EST 2021

Basic System Information:
---------------------------------
Processor  : Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
CPU cores  : 1 @ 2599.996 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM        : 1.8 GiB
Swap       : 1024.0 MiB
Disk       : 48.2 GiB

fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 47.56 MB/s   (11.8k) | 63.65 MB/s     (994)
Write      | 47.62 MB/s   (11.9k) | 64.10 MB/s    (1.0k)
Total      | 95.19 MB/s   (23.7k) | 127.75 MB/s   (1.9k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 75.76 MB/s     (147) | 73.38 MB/s      (71)
Write      | 79.79 MB/s     (155) | 78.27 MB/s      (76)
Total      | 155.56 MB/s    (302) | 151.65 MB/s    (147)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 798 Mbits/sec   | 152 Mbits/sec  
Online.net      | Paris, FR (10G)           | 802 Mbits/sec   | 340 Mbits/sec  
WorldStream     | The Netherlands (10G)     | 758 Mbits/sec   | 451 Mbits/sec  
WebHorizon      | Singapore (1G)            | 323 Mbits/sec   | 343 Mbits/sec  
Clouvider       | NYC, NY, US (10G)         | 915 Mbits/sec   | 338 Mbits/sec  
Velocity Online | Tallahassee, FL, US (10G) | 901 Mbits/sec   | 540 Mbits/sec  
Clouvider       | Los Angeles, CA, US (10G) | 983 Mbits/sec   | 922 Mbits/sec  
Iveloz Telecom  | Sao Paulo, BR (2G)        | 784 Mbits/sec   | 205 Mbits/sec  

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 642                           
Multi Core      | 657                           
Full Test       | https://browser.geekbench.com/v5/cpu/11671120

[root@host176d4a3069 ~]# ^C
[root@host176d4a3069 ~]# (curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log
-------------------------------------------------
 nench.sh v2019.07.20 -- https://git.io/nench.sh
 benchmark timestamp:    2021-12-18 06:44:01 UTC
-------------------------------------------------

Processor:    Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
CPU cores:    1
Frequency:    2599.996 MHz
RAM:          1.8Gi
Swap:         1.0Gi
Kernel:       Linux 4.18.0-305.3.1.el8.x86_64 x86_64

Disks:
vda     50G  HDD

CPU: SHA256-hashing 500 MB
    1.721 seconds
CPU: bzip2-compressing 500 MB
    5.271 seconds
CPU: AES-encrypting 500 MB
    1.470 seconds

ioping: seek rate
    min/avg/max/mdev = 89.9 us / 331.6 us / 12.2 ms / 452.3 us
ioping: sequential read speed
    generated 12.0 k requests in 5.00 s, 2.94 GiB, 2.41 k iops, 602.3 MiB/s

dd: sequential write speed
    1st run:    50.45 MiB/s
    2nd run:    48.35 MiB/s
    3rd run:    45.87 MiB/s
    average:    48.22 MiB/s

IPv4 speedtests
    your IPv4:    98.126.215.xxxx

    Cachefly CDN:         112.23 MiB/s
    Leaseweb (NL):        15.44 MiB/s
    Softlayer DAL (US):   47.13 MiB/s
    Online.net (FR):      15.71 MiB/s
    OVH BHS (CA):         29.56 MiB/s

No IPv6 connectivity detected
-------------------------------------------------

-------------------------------------------------
 nench.sh v2019.07.20 -- https://git.io/nench.sh
 benchmark timestamp:    2021-12-18 06:45:53 UTC
-------------------------------------------------

Processor:    Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
CPU cores:    1
Frequency:    2599.996 MHz
RAM:          1.8Gi
Swap:         1.0Gi
Kernel:       Linux 4.18.0-305.3.1.el8.x86_64 x86_64

Disks:
vda     50G  HDD

CPU: SHA256-hashing 500 MB
    1.766 seconds
CPU: bzip2-compressing 500 MB
    5.277 seconds
CPU: AES-encrypting 500 MB
    1.506 seconds

ioping: seek rate
    min/avg/max/mdev = 97.4 us / 347.9 us / 13.5 ms / 518.3 us
ioping: sequential read speed
    generated 16.0 k requests in 5.00 s, 3.91 GiB, 3.20 k iops, 801.1 MiB/s

dd: sequential write speed
    1st run:    62.37 MiB/s
    2nd run:    53.41 MiB/s
    3rd run:    50.45 MiB/s
    average:    55.41 MiB/s

IPv4 speedtests
    your IPv4:    98.126.215.xxxx

    Cachefly CDN:         113.25 MiB/s
    Leaseweb (NL):        13.81 MiB/s
    Softlayer DAL (US):   44.41 MiB/s
    Online.net (FR):      15.37 MiB/s
    OVH BHS (CA):         29.04 MiB/s

No IPv6 connectivity detected
-------------------------------------------------

VPSBENCH

在 CPU 和 IO 性能上运行简单而全面的基准测试的脚本

VPS提供商:krypt 圣何塞

bash <(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench)

脚本效果:

Redirecting output to ‘wget-log’.
Benching I/O ... OK
Benching CPU. Bzipping 25MB file ... OK
Benching inbound network. Downloading 100MB file ... OK
Share at https://github.com/mgutz/vpsbench/wiki/VPS-Hosts


_12/18/2021 - VMPLAN - DATACENTER - OS - AUTHOR_
```
CPU model:  Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
Number of cores: 1
CPU frequency:  2599.996 MHz
Total amount of RAM: 1817 MB
Total amount of swap:  MB
System uptime:   5 days, 1:43,       
I/O speed:  46.3 MB/s
Bzip 25MB: /dev/fd/63: line 29: /usr/bin/time: No such file or directory
Download 100MB file: 116MB/s
```