陌涛测评服务器常用的测评VPS服务器性能的脚本

陌涛测评服务器常用的测评VPS服务器性能的脚本

前言

最近有几位朋友都来问我是怎么测试一台服务器的性能,因为他们买了服务器,但是是小厂的,不敢保证质量,所以想过来找我要几个测试服务器性能的脚本,博主陌涛今天来分享一下常用的测试 VPS 服务器性能的脚本,可以用来测试机器的配置和性能,测试 VPS 服务器的基本配置,网络速度,硬盘性能,运算能力等。

测试脚本均来自于网络,代码内有作者信息,感谢大佬们提供这么优秀的测试脚本

1.SuperBench

Superbench 可以测试 VPS 服务器配置信息、IO 性能、到国内节点的网速
执行脚本命令:

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

2.SuperSpeed

SuperSpeed 测试 VPS 服务器到国内节点的网速

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

3.Serverreview-Benchmark

Serverreview-Benchmark 测试 VPS 服务器配置信息、CPU / 内存 / 硬盘性能、全球节点测速
执行脚本命令:

yum install curl -y
curl -LsO https://raw.githubusercontent.com/sayem314/serverreview-benchmark/master/bench.sh
chmod +x bench.sh
./bench.sh -a share

4.Best Trace

Best Trace 是 IPIPNET 开发的一款可视化路由跟踪工具

### `Windows` 下载:[https://cdn.ipip.net/17mon/besttrace.exe][2]
### `MacOS` 下载:[https://itunes.apple.com/us/app/best-trace/id1037779758?l=zh&ls=1&mt=12][3]

5.ZBench

本脚本作者为雨落大佬,将秋水的 Bench.sh 和 Oldking 的 SuperBench 结合了,然后加入 Ping 同路由测试,可以详细的测试出服务器系统信息,下载速度,到国内的带宽,Ping 值等等,还可以生成 html 网页进行查看,让你可以对你的机器有所了解,挺不错的

执行脚本命令:

中文版:

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

英文版:

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh

6.91Yuntest

91YUN大佬的,测试包含:常规系统参数检测,带宽测试,IO 测试和全国 ping 测试、下载测试、路由测试、回程路由测试。下面代码直接复制到机器使用即可,默认会生成 html 页。
执行脚本命令:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/91yuntest/master/test.sh && bash test.sh -i "io,bandwidth,chinabw,download,traceroute,backtraceroute,allping,gotoping"

7.Ping.pe

Ping.pe 第一个用来简单、高效、快速测试全球ping 值的网页工具
网站地址:
Ping.pe

8.Memtester

Memtester 是一个检测 VPS 真实可分配内存的小工具,适用于检测 VPS 超售情况。本程序检测的可分配内存指的是用户使用时最大能占用的内存量。
执行脚本命令:

#CentOS/RHEL系统
yum install wget -y
yum groupinstall "Development Tools" -y
wget -N --no-check-certificate 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 -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

如有其他的测试代码,可在下方评论补充,我会及时查看评论并添加补充脚本

原创文章,作者:陌涛,如若转载,请注明出处:https://imotao.com/2375.html

(0)
陌涛的头像陌涛
上一篇 2020年5月4日 下午1:42
下一篇 2020年5月4日 下午2:15

相关推荐

回复 陌涛

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

评论列表(1条)