具有各种功能的 VPS 基准测试脚本

命令

wget --no-check-certificate https://raw.githubusercontent.com/Sn1F3rt/bench-sh/main/bench.sh && bash bench.sh && rm -rf bench.sh

或者

curl -O -k https://raw.githubusercontent.com/Sn1F3rt/bench-sh/main/bench.sh && bash bench.sh && rm -rf bench.sh

效果

Benchmark started on Sun 06 Mar 2022 11:27:10 AM CET
Full benchmark log: /root/bench.log

System Info
-----------
Processor : Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
CPU Cores : 2 @ 2399.998 MHz
Memory    : 1987 MiB
Swap      : 4094 MiB
Uptime    : 12 days, 5:26,

OS        : Ubuntu 20.04 LTS
Arch      : x86_64 (64 Bit)
Kernel    : 5.4.0-29-generic
Hostname  : xxx.cn

Speedtest (IPv4 only)
---------------------
Your public IPv4 is 139.28.*.*

Location                Provider        Speed
--------                --------        -----
CDN                     Cachefly        103MB/s
Atlanta, GA, US         Linode          3.08MB/s 
Dallas, TX, US          Softlayer       972KB/s 
Seattle, WA, US         Datapacket      9.57MB/s 
San Francisco, CA, US   HelioHost       1.29MB/s 
Washington, DC, US      Leaseweb        894KB/s 
Sao Paulo, Brazil       Softlayer       573KB/s 
Singapore               Softlayer       935KB/s 
Taiwan                  Hinet           312KB/s 
Tokyo, Japan            Linode          4.85MB/s 
Nuremberg, Germany      Hetzner         12.4MB/s
Rotterdam, Netherlands  id3.net         9.56MB/s
Haarlem, Netherlands    Leaseweb        40.5MB/s 
Milan, Italy            Softlayer       9.01MB/s
Darwin, AU              Internode       4.22MB/s 

Buffered Sequential Write Speed
-------------------------------
I/O (1st run)     : 335 MB/s
I/O (2nd run)     : 610 MB/s
I/O (3rd run)     : 616 MB/s
Average I/O       : 520.333 MB/s

解答

帮助页面: ./bench.sh -h

系统信息 + Speedtest IPv4 + Drive Speed: ./bench.sh 经典模式。这将使用 1.5 GB 带宽!

系统信息 + Speedtest IPv6 + Drive Speed: ./bench.sh -6 仅 IPv6 速度测试。这将使用 1 GB 带宽!

系统信息 + Speedtest IPv4 & IPv6 + Drive Speed: ./bench.sh -46./bench.sh -64 双栈速度测试。这将使用 2.5 GB 带宽!

系统信息: ./bench.sh -sys 仅系统信息。

行驶速度: ./bench.sh -io 仅通过 DD 进行行驶速度测试。

System Info + Speedtest IPv4 + Drive Speed + System Benchmark: ./bench.sh -b 带有系统基准的经典模式。这将使用 1.5 GB 带宽!

系统信息 + Speedtest IPv6 + Drive Speed + System Benchmark: ./bench.sh -b6 仅使用系统基准测试 IPv6 的速度。这将使用 1 GB 带宽!

系统信息 + Speedtest IPv4 & IPv6 + Drive Speed + System Benchmark: ./bench.sh -b46./bench.sh -b64 使用系统基准测试的双栈速度测试。这将使用 2.5 GB 带宽。