Skip to content

vps测试测速脚本 – 20210501

bench.sh是秋水逸冰写的一个VPS测试脚本

全面适用于各种 Linux 发行版的网络(下行)和 IO 测试。

开源地址:https://github.com/teddysun/across

root@sakurajp:~# wget -qO- bench.sh | bash
----------------------------------------------------------------------
 CPU Model             : Intel Core Processor (Broadwell)
 CPU Cores             : 1
 CPU Frequency         : 2199.996 MHz
 CPU Cache             : 4096 KB
 Total Disk            : 46.0 GB (2.2 GB Used)
 Total Mem             : 481 MB (53 MB Used)
 Total Swap            : 4095 MB (3 MB Used)
 System uptime         : 0 days, 11 hour 44 min
 Load average          : 0.00, 0.00, 0.00
 OS                    : Ubuntu 18.04.5 LTS
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.15.0-55-generic
 TCP CC                : cubic
 Virtualization        : KVM
 Organization          : AS9370 SAKURA Internet Inc.
 Location              : Tokyo / JP
 Region                : Tokyo
----------------------------------------------------------------------
 I/O Speed(1st run)    : 207 MB/s
 I/O Speed(2nd run)    : 213 MB/s
 I/O Speed(3rd run)    : 213 MB/s
 Average I/O speed     : 211.0 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency
 Speedtest.net    97.45 Mbps        94.97 Mbps          1.13 ms
 Beijing    CU    54.83 Mbps        95.89 Mbps          62.36 ms
 Shanghai   CT    101.50 Mbps       96.74 Mbps          29.21 ms
 Shanghai   CU    83.12 Mbps        96.27 Mbps          35.40 ms
 Guangzhou  CT    108.45 Mbps       49.30 Mbps          54.65 ms
 Shenzhen   CU    83.09 Mbps        95.54 Mbps          64.28 ms
 Hongkong   CN    98.15 Mbps        96.20 Mbps          52.91 ms
 Singapore  SG    98.54 Mbps        94.41 Mbps          78.25 ms
 Tokyo      JP    97.50 Mbps        94.99 Mbps          1.14 ms
----------------------------------------------------------------------

三网测速 – SuperSpeed 全面测速版

bash <(curl -Lso- https://git.io/superspeed)

———————————————————SuperSpeed 全面测速版——————————————————
       bash <(curl -Lso- https://git.io/superspeed)
       全部节点列表:  https://git.io/superspeedList
       节点更新: 2020/04/09  | 脚本更新: 2020/04/09
——————————————————————————————————————————————————————————
  测速类型:    1. 三网测速    2. 取消测速
               3. 电信节点    4. 联通节点    5. 移动节点
  请输入数字选择测速类型: 1
——————————————————————————————————————————————————————————
ID    测速服务器信息       上传/Mbps   下载/Mbps   延迟/ms
3633  电信|上海      ↑ 98.12     ↓ 95.32     33.78
17145 电信|安徽合肥5G  ↑ 98.24     ↓ 95.36     36.74
27594 电信|广东广州5G  ↑ 98.19     ↓ 94.90     52.76
27575 电信|新疆乌鲁木齐  ↑ 91.23     ↓ 96.68     100.65
5396  电信|江苏苏州5G  ↑ 100.92    ↓ 96.97     38.89
23844 电信|湖北武汉    ↑ 108.08    ↓ 95.86     68.61
3973  电信|甘肃兰州    ↑ 94.68     ↓ 95.40     59.31
24447 联通|上海5G    ↑ 51.62     ↓ 96.30     33.93
5145  联通|北京      ↑ 43.83     ↓ 93.11     55.53
27154 联通|天津5G    ↑ 55.24     ↓ 96.17     50.49
26180 联通|山东济南5G  ↑ 64.28     ↓ 94.99     49.25
13704 联通|江苏南京    ↑ 64.97     ↓ 96.11     38.61
4870  联通|湖南长沙    ↑ 58.26     ↓ 91.32     52.10
4863  联通|陕西西安    ↑ 68.85     ↓ 95.44     58.48
25858 移动|北京      ↑ 95.75     ↓ 98.96     86.95
16398 移动|贵州贵阳    ↑ 97.48     ↓ 96.88     87.95
——————————————————————————————————————————————————————————
  测试完成, 本次测速耗时: 7 分 26 秒
  当前时间: 2021-05-01 11:50:45
  # 三网测速中为避免节点数不均及测试过久,每部分未使用所
  # 有节点,如果需要使用全部节点,可分别选择三网节点检测

包含了上面的三网测速SuperSpeed的SuperBench(同作者)

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
# ==
curl -Lso- -no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash


root@sakurajp:~# wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

 =========================================================
 \                 Superbench.sh  Script                 /
 \       Basic system info, I/O test and speedtest       /
 \                   v1.1.7 (7 Apr 2020)                 /
 \                   Created by Oldking                  /
 =========================================================

 Intro: https://www.oldking.net/350.html
 Copyright (C) 2020 Oldking [email protected]

 Installing tools.py ...
 Installing Fast.com-cli ...
----------------------------------------------------------------------
 Superbench.sh -- https://www.oldking.net/350.html
 Mode  : Standard    Version : 1.1.7
 Usage : wget -qO- sb.oldking.net | bash
----------------------------------------------------------------------
 CPU Model            : Intel Core Processor (Broadwell)
 CPU Cores            : 1 Cores 2199.996 MHz x86_64
 CPU Cache            : 4096 KB
 OS                   : Ubuntu 18.04.5 LTS (64 Bit) KVM
 Kernel               : 4.15.0-55-generic
 Total Space          : 2.8 GB / 46.0 GB
 Total RAM            : 86 MB / 481 MB (265 MB Buff)
 Total SWAP           : 79 MB / 4095 MB
 Uptime               : 0 days 12 hour 26 min
 Load Average         : 0.62, 0.26, 0.14
 TCP CC               : cubic
 ASN & ISP            : AS9370, SAKURA Internet Inc.
 Organization         : SAKURA Internet Inc.
 Location             : Tokyo, Japan / JP
 Region               : Tokyo
----------------------------------------------------------------------
 I/O Speed( 1.0GB )   : 208 MB/s
 I/O Speed( 1.0GB )   : 208 MB/s
 I/O Speed( 1.0GB )   : 213 MB/s
 Average I/O Speed    : 209.7 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency
 Speedtest.net    96.71 Mbit/s      95.34 Mbit/s        1.54 ms
 Fast.com         0.00 Mbit/s       94.4 Mbit/s         -
 Nanjing 5G   CT  97.91 Mbit/s      95.34 Mbit/s        34.59 ms
 Hefei 5G     CT  98.79 Mbit/s      95.33 Mbit/s        36.53 ms
 Guangzhou 5G CT  102.71 Mbit/s     93.16 Mbit/s        55.35 ms
 Shanghai 5G  CU  50.28 Mbit/s      97.07 Mbit/s        35.27 ms
 Wuxi 5G      CM  77.25 Mbit/s      91.03 Mbit/s        106.44 ms
 Nanjing 5G   CM  FAILED Mbit/s     1.70 Mbit/s         104.00 ms
 Changsha 5G  CM  83.58 Mbit/s      97.59 Mbit/s        92.33 ms
----------------------------------------------------------------------
 Finished in  : 4 min 23 sec
 Timestamp    : 2021-05-01 11:41:27 GMT+8
 Results      : ./superbench.log
----------------------------------------------------------------------
 Share result:
 · https://www.speedtest.net/result/c/02212109-f33c-48a4-bbad-ffd97fa50e22
 · https://paste.ubuntu.com/p/wSVrWk5g8J/
----------------------------------------------------------------------

LemonBench – IP直接显示在测试结果中不太好直接COPY

curl -fsSL https://ilemonra.in/LemonBenchIntl | bash -s fast
# ==
wget -qO- https://ilemonra.in/LemonBenchIntl | bash -s fast

curl -fsSL https://ilemonra.in/LemonBenchIntl | bash -s full
# ==
wget -qO- https://ilemonra.in/LemonBenchIntl | bash -s full

 -> System Information

 OS Release:		Ubuntu 18.04.5 LTS (Bionic Beaver)  (x86_64)
 CPU Model:		Intel Core Processor (Broadwell)  2.20 GHz
 CPU Cache Size:	4096 KB
 CPU Number:		1 vCPU
 Virt Type:		KVM
 Memory Usage:		119.30 MB / 481.48 MB
 Swap Usage:		81.00 MB / 4.00 GB
 Boot Device:		/dev/vda3
 Disk Usage:		2.68 GB / 47.41 GB
 CPU Usage:		0.9% used, 0.2% iowait, 0.3% steal
 Load (1/5/15min):	0.20 0.13 0.08
 Uptime:		0 Days, 12 Hours, 12 Minutes, 0 Seconds
 Kernel Version:	4.15.0-55-generic
 Network CC Method:	cubic + fq_codel

 -> Network Infomation

 IPV4 - IP Address:	[JP] 160.x.x.166
 IPV4 - ASN Info:	AS9370 (SAKURA-B - SAKURA Internet Inc., JP)
 IPV4 - Region:		Japan Tokyo Tokyo

 -> Media Unlock Test

 HBO Now:				No
 Bahamut Anime:				No
 Abema.TV:				No
 Princess Connect Re:Dive Japan:	No
 BBC:					No
 BiliBili China Mainland Only:		No
 BiliBili Hongkong/Macau/Taiwan:	No
 Bilibili Taiwan Only:			No

 -> CPU Performance Test (Fast Mode, 1-Pass @ 5sec)

 1 Thread Test: 		824 Scores

 -> Memory Performance Test (Fast Mode, 1-Pass @ 5sec)

 1 Thread - Read Test :		16746.28 MB/s
 1 Thread - Write Test:		11711.91 MB/s

 -> Disk Speed Test (4K Block/1M Block, Direct Mode)

 Test Name		Write Speed				Read Speed
 100MB-4K Block		6.2 MB/s (1502 IOPS, 17.04s)		34.9 MB/s (8510 IOPS, 3.01s)
 1GB-1M Block		209 MB/s (199 IOPS, 5.02s)		209 MB/s (199 IOPS, 5.01s)

 -> Speedtest.net Network Speed Test

 Node Name			Upload Speed	Download Speed	Ping Latency	Server Name
 Speedtest Default		11.77 MB/s	11.13 MB/s	0.83 ms		GLBB Japan (Japan Tokyo)
 China, Beijing CU  		4.35 MB/s	11.49 MB/s	90.95 ms	Beijing Unicom (China Beijing)
 China, Shanghai CT 		12.12 MB/s	11.39 MB/s	38.66 ms	China Telecom (China Shanghai)

回程测试脚本

wget -qO- git.io/besttrace | bash

2021-05-01 12:03:31 (11.4 MB/s) - 'besttrace2021' saved [9642256/9642256]
----------------------------------------------------------------------
广州电信
traceroute to 14.215.116.1 (14.215.116.1), 30 hops max, 32 byte packets
 1  _gateway (160.16.116.1)  1.36 ms  AS9370  Japan, Tokyo, sakura.ad.jp
 2  tkgrt1b-grt25e-2.bb.sakura.ad.jp (157.17.135.17)  17.54 ms  *  Japan, Tokyo, sakura.ad.jp
 3  tkgrt4b-grt1b-2.bb.sakura.ad.jp (157.17.130.185)  17.04 ms  *  Japan, Tokyo, sakura.ad.jp
 4  tkgrt1s-grt4b-1.bb.sakura.ad.jp (157.17.131.21)  0.49 ms  *  Japan, Tokyo, sakura.ad.jp
 5  tkort4-grt1s-2.bb.sakura.ad.jp (157.17.130.253)  1.15 ms  *  Japan, Tokyo, sakura.ad.jp
 6  210.138.107.33  0.80 ms  AS2497  Japan, Tokyo, iij.ad.jp
 7  tky001bb11.IIJ.Net (58.138.102.105)  2.33 ms  AS2497  Japan, Tokyo, iij.ad.jp
 8  tky009bb01.IIJ.Net (58.138.88.14)  1.61 ms  AS2497  Japan, Tokyo, iij.ad.jp
 9  tky009ix02.IIJ.Net (58.138.114.134)  2.09 ms  AS2497  Japan, Tokyo, iij.ad.jp
10  203.215.236.73  2.13 ms  AS4134  Japan, Tokyo, ChinaTelecom
11  202.97.42.241  65.11 ms  AS4134  China, ChinaTelecom
12  202.97.12.46  52.61 ms  AS4134  China, ChinaTelecom
13  202.97.94.149  56.89 ms  AS4134  China, ChinaTelecom
14  113.96.0.113  57.74 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
15  113.96.4.230  56.68 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
16  183.2.145.194  53.77 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
17  183.56.129.10  53.80 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom
18  14.215.116.1  55.70 ms  AS58466  China, Guangdong, Guangzhou, ChinaTelecom

----------------------------------------------------------------------
上海电信
traceroute to 101.95.120.109 (101.95.120.109), 30 hops max, 32 byte packets
 1  _gateway (160.16.116.1)  0.29 ms  AS9370  Japan, Tokyo, sakura.ad.jp
 2  tkgrt1b-grt25e-2.bb.sakura.ad.jp (157.17.135.17)  22.15 ms  *  Japan, Tokyo, sakura.ad.jp
 3  tkgrt3b-grt1b-2.bb.sakura.ad.jp (157.17.130.177)  0.99 ms  *  Japan, Tokyo, sakura.ad.jp
 4  tkwrt1s-grt3b-1.bb.sakura.ad.jp (157.17.131.1)  0.49 ms  *  Japan, Tokyo, sakura.ad.jp
 5  tkort3-wrt1s-3.bb.sakura.ad.jp (157.17.131.137)  0.81 ms  *  Japan, Tokyo, sakura.ad.jp
 6  tkort4-ort3.bb.sakura.ad.jp (157.17.130.122)  1.29 ms  *  Japan, Tokyo, sakura.ad.jp
 7  210.138.107.33  1.01 ms  AS2497  Japan, Tokyo, iij.ad.jp
 8  tky001bb11.IIJ.Net (58.138.102.105)  1.04 ms  AS2497  Japan, Tokyo, iij.ad.jp
 9  tky009bb01.IIJ.Net (58.138.88.14)  1.79 ms  AS2497  Japan, Tokyo, iij.ad.jp
10  tky009ix02.IIJ.Net (58.138.114.134)  2.05 ms  AS2497  Japan, Tokyo, iij.ad.jp
11  203.215.236.73  1.83 ms  AS4134  Japan, Tokyo, ChinaTelecom
12  202.97.6.81  31.71 ms  AS4134  China, ChinaTelecom
13  202.97.12.185  32.35 ms  AS4134  China, ChinaTelecom
14  202.97.94.238  32.81 ms  AS4134  China, ChinaTelecom
15  *
16  101.95.120.109  29.91 ms  AS4812  China, Shanghai, ChinaTelecom

----------------------------------------------------------------------
厦门电信
traceroute to 117.28.254.129 (117.28.254.129), 30 hops max, 32 byte packets
 1  _gateway (160.16.116.1)  1.18 ms  AS9370  Japan, Tokyo, sakura.ad.jp
 2  tkgrt1b-grt25e-2.bb.sakura.ad.jp (157.17.135.17)  15.76 ms  *  Japan, Tokyo, sakura.ad.jp
 3  tkgrt3b-grt1b-2.bb.sakura.ad.jp (157.17.130.177)  0.79 ms  *  Japan, Tokyo, sakura.ad.jp
 4  tkwrt1s-grt3b-2.bb.sakura.ad.jp (157.17.131.5)  0.49 ms  *  Japan, Tokyo, sakura.ad.jp
 5  tkort3-wrt1s.bb.sakura.ad.jp (157.17.130.101)  0.77 ms  *  Japan, Tokyo, sakura.ad.jp
 6  tkcrt2-ort3.bb.sakura.ad.jp (157.17.130.30)  0.90 ms  *  Japan, Tokyo, sakura.ad.jp
 7  ce-0-14-0-3.r03.tokyjp05.jp.bb.gin.ntt.net (203.105.72.145)  1.76 ms  AS2914  Japan, Tokyo, ntt.com
 8  ae-4.r31.tokyjp05.jp.bb.gin.ntt.net (129.250.3.57)  1.22 ms  AS2914  Japan, Tokyo, ntt.com
 9  ae-3.r00.tokyjp08.jp.bb.gin.ntt.net (129.250.6.129)  2.01 ms  AS2914  Japan, Tokyo, ntt.com
10  ae-1.a01.tokyjp03.jp.bb.gin.ntt.net (129.250.2.250)  2.06 ms  AS2914  Japan, Tokyo, ntt.com
11  xe-0-0-29-0.a01.tokyjp03.jp.ce.gin.ntt.net (117.103.177.106)  1.91 ms  AS2914  Japan, Tokyo, ntt.com
12  59.43.183.53  52.66 ms  *  China, ChinaTelecom
13  59.43.246.189  59.98 ms  *  China, ChinaTelecom
14  59.43.138.45  62.56 ms  *  China, ChinaTelecom
15  59.43.103.94  62.79 ms  *  China, ChinaTelecom
16  59.43.139.82  64.48 ms  *  China, ChinaTelecom
17  *
18  *
19  117.25.141.110  51.98 ms  AS133775  China, Fujian, Xiamen, ChinaTelecom
20  117.28.254.129  70.14 ms  AS4809  China, Fujian, Xiamen, ChinaTelecom

SpeedTest Docker直接下载测试

apt install -y docker.io && docker run -d -p 9080:80 --name speedtest --restart=always ilemonrain/html5-speedtest:alpine

Leave a Reply

Your email address will not be published.