本文章转载自:Linux VPS 性能测试脚本 作者:托尼

1、一键测试服务器到国内的速度脚本Superspeed.sh :

wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh  
chmod +x superspeed.sh  
./superspeed.sh

2、一键检测VPS的CPU、内存、负载、IO读写、机房带宽等脚本:bench.sh

命令1:  
wget -qO- bench.sh | bash  
或者  
curl -Lso- bench.sh | bash  

命令2:  
wget -qO- 86.re/bench.sh | bash  
或者  
curl -so- 86.re/bench.sh | bash  

备注:  
bench.sh 既是脚本名,同时又是域名。如果以上失效,请使用以下地址下载再执行脚本:  

下载地址:  
https://github.com/teddysun/across/blob/master/bench.sh

3、可以看作bench.sh强化版:SuperBench.sh

wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash  
或者  
curl -Lso- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

4、一键带宽检测工具:speedtest-cli

安装命令:  

sudo apt-get update  
apt-get install python-pip  
sudo pip install speedtest-cli  

#CentOS  
yum update  
yum -y install epel-release  
yum install python-pip  
pip install speedtest-cli  

使用方法:  

speedtest-cli  

#后面也可以接以下参数:  

-h, --help show this help message and exit  
--share 分享你的网速,该命令会在speedtest网站上生成网速测试结果的图片。  
--simple Suppress verbose output, only show basic information  
--list 根据距离显示speedtest.net的测试服务器列表。  
--server=SERVER 指定列表中id的服务器来做测试。  
--mini=MINI URL of the Speedtest Mini server  
--source=SOURCE Source ip address to bind to  
--version Show the version number and exit

5、VPS性能综合跑分工具:unixbench

命令如下:  

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh  
chmod +x unixbench.sh  
./unixbench.sh

6、一键测试回程Ping值工具:mPing

wget https://raw.githubusercontent.com/helloxz/mping/master/mping.sh  
bash mping.sh

7、综合评测工具:Serverreview-benchmark

这是一个老外写的VPS主机综合评测工具,主要评测的项目有VPS主机磁盘IO、内存读写、CPU性能以及Benchmark性能,  
还有美国、欧洲、亚洲等不同节点的下载速度。  
主页:https://github.com/sayem314/serverreview-benchmark  

脚本使用使用方法:  

#简略版  
yum install curl -y  
curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share  

#完整版  
yum install curl -y  
curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share
Last modification:April 26, 2020
If you think my article is useful to you, please feel free to appreciate