-
Notifications
You must be signed in to change notification settings - Fork 0
个人常用VPS检测脚本
ECIAP edited this page Oct 4, 2019
·
3 revisions
-
快速测试
curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast 或 wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast
-
完全测试
curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full 或 wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
-
遇见-bash: wget/curl: command not found时
-
wget
Debian:apt-get -y install wget Ubuntu:apt-get -y install wget Centos:yum -y install wget
-
curl
Debian:apt-get -y install curl Ubuntu:apt-get -y install curl Centos:yum -y install curl
-
以下为20190102版本的测试项目列表! 测试内容随时可能发生变化,以实际版本为准!
-
系统信息收集
- 系统名称 (包括版本号、系统位数)
- CPU信息 (型号、缓存大小)
- CPU数量检测 (自适应识别区分虚拟机(即VPS)与独立服务器)
- 内存使用率
- Swap使用率
- 引导设备 (开机磁盘)
- 系统负载 (1分钟/5分钟/15分钟,测试结果取启动测试时的实时结果)
-
Speedtest网速测试
- 最近测速点
- 美国洛杉矶
- 中国东北地区 (联通/移动)
- 中国华北地区 (联通/移动)
- 中国华中地区 (联通/电信)
- 中国华东地区 (联通/移动)
- 中国华南地区 (电信/移动)
- 中国西南地区 (联通/移动)
- 中国西北地区 (联通/电信/移动)
-
磁盘性能测试 (4K测试结果适用于SSD介质磁盘,1M测试结果适用于SSD介质与HDD介质磁盘)
- 10MB测试-4K块 (2560次写入)
- 10MB测试-1M块 (10次写入)
- 100MB测试-4K块 (25600次写入)
- 100MB测试-1M块 (100次写入)
- 1000MB测试-4K块 (256000次写入)
- 1000MB测试-1M块 (1000次写入)
- 5000MB测试-4K块 (1280000次写入)
- 5000MB测试-1M块 (5000次写入)
-
路由追踪测试
- 北京联通/电信/移动
- 上海联通/电信/移动
- 广州联通/电信/移动
- 美国俄勒冈-MivoCloud
- 美国新泽西-Vultr
- 美国洛杉矶-CeraNetworks
- 德国法兰克福-acclerated.de
- 法国OVH
- 捷克FinalTek
- 日本东京IDCF
- 日本大阪XTOM
- 日本东京Vultr
- 香港HKT
- 香港HKBN
- 香港HGC
- 台湾CHT
- 台湾APTG
- 台湾TWMBroadBand
- 台湾Chief
-
Spoofer测试 (使用Caida的Spoofer)
-
CentOS / RHEL:
yum install wget -y yum groupinstall "Development Tools" -y wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp gcc -l stdc++ memtester.cpp ./a.out
-
Ubuntu / Debian:
apt-get update apt-get install wget build-essential -y wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp gcc -l stdc++ memtester.cpp ./a.out
在进程被杀死前可以测出当时最大的内存占用