项目地址/脚本内容:https://github.com/teddysun/across/blob/master/bench.sh

如下4条命令,均可以执行测试

wget -qO- bench.sh | bash

curl -Lso- bench.sh | bash

wget -qO- 86.re/bench.sh | bash

curl -so- 86.re/bench.sh | bash

备注:bench.sh 既是脚本名,同时又是域名。

跑完脚本会输出如下内容:

-------------------- A Bench.sh Script By Teddysun -------------------
 Version            : v2022-06-01
 Usage              : wget -qO- bench.sh | bash
----------------------------------------------------------------------
 CPU Model          : Intel(R) Xeon(R) CPU @ 2.20GHz
 CPU Cores          : 2 @ 2200.196 MHz
 CPU Cache          : 56320 KB
 AES-NI             : Enabled
 VM-x/AMD-V         : Disabled
 Total Disk         : 9.7 GB (1.7 GB Used)
 Total Mem          : 3.8 GB (111.6 MB Used)
 System uptime      : 0 days, 0 hour 2 min
 Load average       : 0.10, 0.06, 0.02
 OS                 : Debian GNU/Linux 11
 Arch               : x86_64 (64 Bit)
 Kernel             : 5.10.0-14-cloud-amd64
 TCP CC             : cubic
 Virtualization     : KVM
 Organization       : AS396982 Google LLC
 Location           : Hong Kong / HK
 Region             : Central and Western
----------------------------------------------------------------------
 I/O Speed(1st run) : 730 MB/s
 I/O Speed(2nd run) : 865 MB/s
 I/O Speed(3rd run) : 910 MB/s
 I/O Speed(average) : 835.0 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    1966.36 Mbps      9194.08 Mbps        1.01 ms     
 Los Angeles, US  589.74 Mbps       5034.94 Mbps        154.94 ms   
 Dallas, US       495.34 Mbps       4278.73 Mbps        182.62 ms   
 Montreal, CA     204.65 Mbps       938.18 Mbps         198.29 ms   
 Paris, FR        371.30 Mbps       3263.68 Mbps        244.82 ms   
 Amsterdam, NL    359.94 Mbps       3108.15 Mbps        221.29 ms   
 Shanghai, CN     1964.96 Mbps      1648.49 Mbps        34.15 ms    
 Nanjing, CN      1780.10 Mbps      7792.37 Mbps        72.62 ms    
 Guangzhou, CN    1021.99 Mbps      5944.19 Mbps        7.99 ms     
 Hongkong, CN     1969.85 Mbps      9348.70 Mbps        1.70 ms     
 Seoul, KR        918.44 Mbps       894.82 Mbps         38.80 ms    
 Singapore, SG    1853.46 Mbps      9205.86 Mbps        40.80 ms    
 Tokyo, JP        1836.47 Mbps      9075.95 Mbps        46.80 ms    
----------------------------------------------------------------------
 Finished in        : 6 min 11 sec
 Timestamp          : 2022-06-21 10:26:51 UTC
----------------------------------------------------------------------