Linux VPS速度性能测试一键脚本 持续更新

下载测试

# 说明:下载内容不保存在本地磁盘,而是直接丢弃

Online 法国 - 1000MB
wget -O /dev/null http://ping.online.net/1000Mo.dat

Online 荷兰 - 1000MB
wget -O /dev/null http://ping-ams1.online.net/1000Mo.dat

Speedtest

  • 方式一:Speedtest 官方
## Ubuntu/Debian

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash

sudo apt-get install speedtest

speedtest
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

chmod +x speedtest-cli

./speedtest-cli
## 或者
python3 ./speedtest-cli --share

测试详情:

## 如果出现以下错误:
/usr/bin/env: ‘python’: No such file or directory

## 输入以下命令安装:
apt-get install python

## 测试结果:
root@SunPma ~ # ./speedtest-cli --share
Retrieving speedtest.net configuration...
Testing from Microsoft Corporation (20.187.72.158)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by Misaka Network, Inc. (Hong Kong) [4.85 km]: 2.74 ms
Testing download speed.............................................
Download: 3514.72 Mbit/s
Testing upload speed...............................................
Upload: 964.31 Mbit/s
Share results: http://www.speedtest.net/result/12678652753.png

可选参数,展开查看

  -h--help              显示此帮助消息并退出
  --no-download         不执行下载测试
  --no-upload           不执行上传测试
  --single              使用单个连接,而不使用多个连接
  --bytes               以字节而不是位为单位显示值
  --share               生成并提供speedtest.net共享的URL结果图像
  --simple              不显示详细输出,仅显示基本信息
  --csv-header          打印CSV标题
  --list                按距离排序显示speedtest.net的服务器列表
  --server SERVER       指定要测试的服务器ID
  --mini MINI           Speedtest Mini服务器的URL
  --source SOURCE       要绑定到的源IP地址
  --timeout TIMEOUT     HTTP 超时(以秒为单位)默认 10
  --secure              与speedtest.net服务器进行通信时使用HTTPS而不是HTTP
  --no-pre-allocate     不要预先分配上传数据;默认预分配以提高上载性能,内存不足的系统使用可避免内存错误
  --version             显示版本号并退出

optional arguments:
  -h--help              show this help message and exit
  --no-download         Do not perform download test
  --no-upload           Do not perform upload test
  --single              Only use a single connection instead of multiple. This
                        simulates a typical file transfer.
  --bytes               Display values in bytes instead of bits. Does not
                        affect the image generated by --share, nor output from
                        --json or --csv
  --share               Generate and provide a URL to the speedtest.net share
                        results image, not displayed with --csv
  --simple              Suppress verbose output, only show basic information
  --csv                 Suppress verbose output, only show basic information
                        in CSV format. Speeds listed in bit/s and not affected
                        by --bytes
  --csv-delimiter CSV_DELIMITER
                        Single character delimiter to use in CSV output.
                        Default ","
  --csv-header          Print CSV headers
  --json                Suppress verbose output, only show basic information
                        in JSON format. Speeds listed in bit/s and not
                        affected by --bytes
  --list                Display a list of speedtest.net servers sorted by
                        distance
  --server SERVER       Specify a server ID to test against. Can be supplied
                        multiple times
  --exclude EXCLUDE     Exclude a server from selection. Can be supplied
                        multiple times
  --mini MINI           URL of the Speedtest Mini server
  --source SOURCE       Source IP address to bind to
  --timeout TIMEOUT     HTTP timeout in seconds. Default 10
  --secure              Use HTTPS instead of HTTP when communicating with
                        speedtest.net operated servers
  --no-pre-allocate     Do not pre allocate upload data. Pre allocation is
                        enabled by default to improve upload performance. To
                        support systems with insufficient memory, use this
                        option to avoid a MemoryError
  --version             Show the version number and exit

简单测试

wget -qO- bench.sh | bash

详细测试过程,展开查看


三网测速

全面的国内三大运营商(电信,联通,移动)上传下载速率测试
GitHub项目地址:https://github.com/sunpma/Speedtest

bash <(curl -Lso- https://git.io/J1SEh)
// 或者
bash <(curl -Lso- https://cdn.jsdelivr.net/gh/sunpma/Speedtest/speedtest.sh)

详细测试过程,展开查看


柠檬测试

快速测试

wget -qO- http://ilemonra.in/LemonBenchIntl | bash -s fast

完整测试

wget -qO- http://ilemonra.in/LemonBenchIntl | bash -s full

分类测试

# 磁盘测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --dtfast

# 磁盘测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --dtfull

# 宽带测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --spfast

# 宽带测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --spfull

# Traceroute测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --trfast

# Traceroute测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --trfull

# CPU基准测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbcfast

# CPU基准测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbcfull

# 内存基准测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbmfast

# 内存基准测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbmfull

作者链接:https://blog.ilemonrain.com/linux/LemonBench.html

详细测试过程,展开查看


CPU跑分

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh
# 或者
wget --no-check-certificate https://cdn.jsdelivr.net/gh/teddysun/across/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh

详细测试过程,展开查看



yabs.sh

完整测试

curl -sL yabs.sh | bash

参数测试

## 添加需要的参数
curl -sL yabs.sh | bash -s -- -{fdighr49}

## 例:(仅进行Geekbench 5测试)
curl -sL yabs.sh | bash -s -- -fdi

可选参数列表

  • -f 此选项禁用fio测试
  • -d 此选项禁用磁盘性能测试
  • -i 此选项禁用网络性能测试
  • -g 此选项将禁用Geekbench系统性能测试
  • -h 此选项打印包含用法、检测到的标志和本地包(fio/iperf)状态的帮助消息
  • -r 此选项可减少iperf位置的数量(Online.net/Clouvider LON+NYC)以减少带宽使用
  • -4 此选项覆盖geekbench5性能测试,而运行geekbench4测试
  • -9 这个选项除了运行Geekbench 5测试之外,还运行Geekbench 4测试

详细测试过程,展开查看


Geekbench 6

AMD or Intel

wget --no-check-certificate https://cdn.geekbench.com/Geekbench-6.3.0-Linux.tar.gz

tar xf Geekbench-6.3.0-Linux.tar.gz

cd Geekbench-6.3.0-Linux

./geekbench_x86_64

ARM

wget --no-check-certificate https://cdn.geekbench.com/Geekbench-6.3.0-LinuxARMPreview.tar.gz

tar xf Geekbench-6.3.0-LinuxARMPreview.tar.gz

cd Geekbench-6.3.0-LinuxARMPreview

./geekbench_aarch64

测试完成后会输出链接,复制链接在浏览器中打开即可查看测试分数;
官网地址:https://www.geekbench.com/download/

流媒体解锁

一:全流媒体解锁测试

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

详细测试过程,展开查看


二:NETFLIX(NF解锁测试)

## X86_64
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.6/nf_2.6_linux_amd64 && chmod +x nf && clear && ./nf -method full

## ARM
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.61/nf_2.61_linux_arm64 && chmod +x nf && clear && ./nf

详细测试过程,展开查看


综合工具箱

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

详细测试过程,展开查看


Speedtest-X

# 安装 Docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

# 拉取 Docker 镜像
docker pull badapple9/speedtest-x

# 运行容器
docker run -d -p 9001:80 -it badapple9/speedtest-x
  • -d:以常驻进程模式启动
  • 9001: 默认容器开放端口,可改为其他端口
  • 启动时可指定的环境变量:
  • -e WEBPORT=80: 容器内使用的端口
  • -e MAX_LOG_COUNT=100: 最大可保存多少条测速记录
  • -e IP_SERVICE=ip.sb: 使用的 IP 运营商解析服务(ip.sb 或 ipinfo.io)
  • -e SAME_IP_MULTI_LOGS=false: 是否允许同一IP记录多条测速结果

IP质量检测

bash <(curl -sL IP.Check.Place)

详细测试过程,展开查看


融合怪测试

curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

详细测试过程,展开查看

融合怪1.png
融合怪2.png
融合怪3.png
融合怪4.png
融合怪5.png
融合怪6.png
融合怪7.png
融合怪8.png

硬盘检测

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

详细测试过程,展开查看

硬盘检测

SSD检测

wget -c https://www.hdsentinel.com/hdslin/hdsentinel-019c-x64.gz

gunzip  hdsentinel-019c-x64.gz

chmod 755  hdsentinel-019c-x64

./hdsentinel-019c-x64

详细测试过程,展开查看

Hard Disk Sentinel for LINUX console 0.19c.9986 (c) 2021 info@hdsentinel.com
Start with -r [reportfile] to save data to report, -h for help

Examining hard disk configuration ...

HDD Device  0: /dev/sda             
HDD Model ID : INTEL SSDSC2BB800G6
HDD Serial No: BTWA614605V4800HGN
HDD Revision : G2010150
HDD Size     : 763098 MB
Interface    : S-ATA Gen3, 6 Gbps
Temperature  : 28 °C
Highest Temp.: 30 °C
Health       : 78 %
Performance  : 100 %
Power on time: 1012 days, 12 hours
Est. lifetime: 494 days
Total written: 343.61 TB
  The status of the solid state disk is PERFECT. Problematic or weak sectors were not found. 
  The health is determined by SSD specific S.M.A.R.T. attribute(s):  #233 Media Wearout Indicator
  It is recommended to continuously monitor the hard disk status.

IPV4和IPV6宽带分别测试

curl -sL yabs.sh | bash

详细测试过程,展开查看

root@SunPma:~# curl -sL yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2024-12-20                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Fri Dec 20 06:09:59 UTC 2024

Basic System Information:
---------------------------------
Uptime     : 0 days, 13 hours, 12 minutes
Processor  : Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
CPU cores  : 8 @ 2400.000 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM        : 31.2 GiB
Swap       : 0.0 KiB
Disk       : 1.4 TiB
Distro     : Ubuntu 22.04.5 LTS
Kernel     : 5.15.0-126-generic
VM Type    : NONE
IPv4/IPv6  : ✔ Online / ✔ Online

IPv6 Network Information:
---------------------------------
ISP        : OVH SAS
ASN        : AS16276 OVH SAS
Host       : OVH SAS
Location   : Roubaix, Hauts-de-France (HDF)
Country    : France

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/md2):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 203.12 MB/s  (50.7k) | 335.63 MB/s   (5.2k)
Write      | 203.65 MB/s  (50.9k) | 337.39 MB/s   (5.2k)
Total      | 406.77 MB/s (101.6k) | 673.02 MB/s  (10.5k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 377.33 MB/s    (736) | 358.13 MB/s    (349)
Write      | 397.38 MB/s    (776) | 381.98 MB/s    (373)
Total      | 774.71 MB/s   (1.5k) | 740.12 MB/s    (722)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
-----           | -----                     | ----            | ----            | ----           
Clouvider       | London, UK (10G)          | 287 Mbits/sec   | 940 Mbits/sec   | 3.94 ms        
Eranium         | Amsterdam, NL (100G)      | 286 Mbits/sec   | 939 Mbits/sec   | 9.85 ms        
Uztelecom       | Tashkent, UZ (10G)        | 178 Mbits/sec   | 236 Mbits/sec   | 98.3 ms               
Clouvider       | Los Angeles, CA, US (10G) | 123 Mbits/sec   | 580 Mbits/sec   | 137 ms         
Leaseweb        | NYC, NY, US (10G)         | 253 Mbits/sec   | 615 Mbits/sec   | 76.0 ms        
Edgoo           | Sao Paulo, BR (1G)        | 155 Mbits/sec   | 454 Mbits/sec   | 183 ms         

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
-----           | -----                     | ----            | ----            | ----           
Clouvider       | London, UK (10G)          | 906 Mbits/sec   | 915 Mbits/sec   | 3.93 ms        
Eranium         | Amsterdam, NL (100G)      | 917 Mbits/sec   | 923 Mbits/sec   | 9.87 ms               
Leaseweb        | Singapore, SG (10G)       | 768 Mbits/sec   | 505 Mbits/sec   | 160 ms         
Clouvider       | Los Angeles, CA, US (10G) | 775 Mbits/sec   | 242 Mbits/sec   | 137 ms         
Leaseweb        | NYC, NY, US (10G)         | 843 Mbits/sec   | 631 Mbits/sec   | 76.0 ms        
Edgoo           | Sao Paulo, BR (1G)        | 760 Mbits/sec   | 266 Mbits/sec   | 183 ms         

Geekbench 6 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 733                      
Multi Core      | 2601                              
Full Test       | https://browser.geekbench.com/v6/cpu/9519370

YABS completed in 16 min 48 sec

最后修改:2025 年 01 月 18 日

发表评论

2 条评论

  1. 无名小站

    有什么好的服务器测试脚本

  2. hxuf

    收了,感谢