Linux服务器常用的测速一键脚本

脚本:一

面向国内地区下载上传速度测试

wget -qO- git.io/superbench.sh | bash

可以使用参数分别进行测试:

wget git.io/superbench.sh; chmod +x superbench.sh
./superbench.sh info
./superbench.sh io
./superbench.sh speed
./superbench.sh share

详细测试过程,展开查看

----------------------------------------------------------------------
 CPU Model            : AMD EPYC 7551 32-Core Processor
 CPU Cores            : 2 Cores @ 1996.244 MHz x86_64
 CPU Cache            : 512 KB 
 OS                   : Ubuntu 16.04.6 LTS (64 Bit) Dedicated
 Kernel               : 4.14.129-bbrplus
 Total Space          : 6.0 GB / 45.5 GB 
 Total RAM            : 382 MB / 986 MB (434 MB Buff)
 Total SWAP           : 57 MB / 1999 MB
 Uptime               : 8 days 20 hour 9 min
 Load Average         : 0.00, 0.00, 0.00
 TCP CC               : bbrplus
 ASN & ISP            : AS31898, Oracle Corporation
 Organization         : Oracle Public Cloud
 Location             : Palo Alto, United States / US
 Region               : California
----------------------------------------------------------------------
 I/O Speed( 1.0GB )   : 55.8 MB/s
 I/O Speed( 1.0GB )   : 51.7 MB/s
 I/O Speed( 1.0GB )   : 51.5 MB/s
 Average I/O Speed    : 53.0 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    49.89 Mbit/s      47.24 Mbit/s        18.712 ms  
 Fast.com         0.00 Mbit/s       47.5 Mbit/s         -           
 Guangzhou CT     43.65 Mbit/s      43.57 Mbit/s        -          
 Wuhan     CT     50.70 Mbit/s      40.07 Mbit/s        -          
 Hangzhou  CT     41.08 Mbit/s      14.41 Mbit/s        -          
 Lanzhou   CT     41.35 Mbit/s      37.82 Mbit/s        -          
 Shanghai  CU     55.85 Mbit/s      48.61 Mbit/s        -          
 Heifei    CU     50.94 Mbit/s      48.21 Mbit/s        -          
 Chongqing CU     47.33 Mbit/s      43.52 Mbit/s        -          
----------------------------------------------------------------------

脚本:二

测速虚高修复版

wget -qO- https://git.io/Jvh0J | bash

详细测试过程,展开查看

----------------------------------------------------------------------
 CPU Model            : QEMU Virtual CPU version 2.5+
 CPU Cores            : 2 Cores 1999.999 MHz x86_64
 CPU Cache            : 16384 KB 
 OS                   : Ubuntu 18.04 LTS (64 Bit) KVM
 Kernel               : 4.15.0-22-generic
 Total Space          : 1.6 GB / 49.0 GB 
 Total RAM            : 97 MB / 1993 MB (533 MB Buff)
 Total SWAP           : 0 MB / 511 MB
 Uptime               : 0 days 0 hour 10 min
 Load Average         : 0.08, 0.08, 0.03
 TCP CC               : cubic
 ASN & ISP            : AS4842, LightNetwork Computing Limited
 Organization         : Rackip Consultancy Pte. LTD
 Location             : Clichy-sous-Bois, France / FR
 Region               : Île-de-France
----------------------------------------------------------------------
 I/O Speed( 1.0GB )   : 828 MB/s
 I/O Speed( 1.0GB )   : 863 MB/s
 I/O Speed( 1.0GB )   : 842 MB/s
 Average I/O Speed    : 844.3 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    10.60 Mbit/s      27.44 Mbit/s        (*) 122.89 ms
 Fast.com         0.00 Mbit/s       29.3 Mbit/s         -           
 Nanjing 5G   CT  10.75 Mbit/s      27.19 Mbit/s        -          
 Hefei 5G     CT  10.51 Mbit/s      25.65 Mbit/s        -          
 Guangzhou 5G CT  4.09 Mbit/s       20.59 Mbit/s        -          
 TianJin 5G   CU  8.83 Mbit/s       24.64 Mbit/s        -          
 Shanghai 5G  CU  5.18 Mbit/s       25.18 Mbit/s        -          
 Guangzhou 5G CU  10.22 Mbit/s      27.59 Mbit/s        -          
 Wuxi 5G      CM  10.10 Mbit/s      27.91 Mbit/s        -          
 Nanjing 5G   CM  10.03 Mbit/s      23.82 Mbit/s        -          
 Hefei 5G     CM  6.38 Mbit/s       24.64 Mbit/s        -          
 Changsha 5G  CM  10.64 Mbit/s      27.84 Mbit/s        -          
----------------------------------------------------------------------

脚本:三

Github项目:https://github.com/FunctionClub/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

详细测试过程,展开查看

--------------------------------------------------------------------------
CPU 型号             : AMD EPYC 7551 32-Core Processor
CPU 核心数           : 2
CPU 频率             : 1996.244 MHz
总硬盘大小           : 46.0 GB (6.0 GB Used)
总内存大小           : 986 MB (411 MB Used)
SWAP大小             : 1999 MB (58 MB Used)
开机时长             : 8 days, 20 hour 24 min
系统负载             : 0.88, 0.71, 0.38
系统                 : Ubuntu 16.04.6 LTS
架构                 : x86_64 (64 Bit)
内核                 : 4.14.129-bbrplus
虚拟化平台           : kvm
--------------------------------------------------------------------------
硬盘I/O (第一次测试) : 54.7 MB/s
硬盘I/O (第二次测试) : 51.5 MB/s
硬盘I/O (第三次测试) : 51.5 MB/s
--------------------------------------------------------------------------
节点名称                  IP地址            下载速度            延迟      
CacheFly                  205.234.175.175   5.59MB/s            134.651 ms  
Linode, Tokyo, JP                                                ms         
Linode, Singapore, SG     139.162.23.4      5.56MB/s            85.552 ms   
Linode, London, UK        176.58.107.39     5.05MB/s            266.739 ms  
Linode, Frankfurt, DE     139.162.130.8     111KB/s             257.171 ms  
Linode, Fremont, CA       50.116.14.9       5.24MB/s            137.535 ms    
--------------------------------------------------------------------------
节点名称                  上传速度          下载速度            延迟      
西安电信                  45.22 Mbit/s      45.63 Mbit/s        62.521 ms  
重庆联通                  52.50 Mbit/s      44.84 Mbit/s        65.788 ms  
北京联通                  50.63 Mbit/s      47.23 Mbit/s        51.154 ms  
--------------------------------------------------------------------------
合肥        : 30.84 ms   北京        : 95.11 ms   武汉        : Fail       
昌吉        : Fail       成都        : Fail       上海        : Fail       
太原        : Fail       杭州        : 67.78 ms   宁夏        : 68.23 ms   
呼和浩特    : 110.0 ms   南昌        : Fail       拉萨        : Fail       
乌鲁木齐    : 112.38 ms  天津        : 115.68 ms  襄阳        : Fail       
郑州        : Fail       沈阳        : Fail       兰州        : 66.26 ms   
哈尔滨      : 67.24 ms   宁波        : Fail       苏州        : Fail       
济南        : 59.94 ms   西安        : 60.11 ms   西宁        : Fail       
重庆        : 80.23 ms   深圳        : Fail       南京        : Fail       
长沙        : 92.93 ms   长春        : 62.17 ms   福州        : 46.7 ms    
--------------------------------------------------------------------------

脚本:四

秋水逸冰的脚本

wget -qO- bench.sh | bash

详细测试过程,展开查看

----------------------------------------------------------------------
CPU model            : Intel(R) Atom(TM) CPU  C2338  @ 1.74GHz
Number of cores      : 2
CPU frequency        : 1293.967 MHz
Total size of Disk   : 916.0 GB (565.0 GB Used)
Total amount of Mem  : 3945 MB (2703 MB Used)
Total amount of Swap : 2048 MB (0 MB Used)
System uptime        : 2 days, 6 hour 32 min
Load average         : 0.04, 0.04, 0.00
OS                   : Ubuntu 16.04.6 LTS
Arch                 : x86_64 (64 Bit)
Kernel               : 4.14.129-bbrplus
----------------------------------------------------------------------
I/O speed(1st run)   : 110 MB/s
I/O speed(2nd run)   : 102 MB/s
I/O speed(3rd run)   : 113 MB/s
Average I/O speed    : 108.3 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         76.9MB/s      
Linode, Tokyo2, JP              139.162.65.37           2.32MB/s      
Linode, Singapore, SG           139.162.23.4            2.86MB/s      
Linode, London, UK              176.58.107.39           40.1MB/s      
Linode, Frankfurt, DE           139.162.130.8           39.3MB/s      
Linode, Fremont, CA             50.116.14.9             4.66MB/s      
Softlayer, Dallas, TX           173.192.68.18           10.2MB/s      
Softlayer, Seattle, WA          67.228.112.250          9.82MB/s      
Softlayer, Frankfurt, DE        159.122.69.4            36.6MB/s      
Softlayer, Singapore, SG        119.81.28.170           8.89MB/s      
Softlayer, HongKong, CN         119.81.130.170          6.88MB/s      
----------------------------------------------------------------------

参考文章:https://sunpma.com/42.html

本文链接: https://www.168itw.com/web-server/linux-speed-test/
转载请注明转载自:168itw

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注