serverreview-benchmark是国外网友制作的Linux服务器(VPS)性能测试脚本,可以一键测试服务器信息(包括了安装什么版本系统、CPU型号、分配CPU核数、CPU缓存、内存、采用何种虚拟技术以、硬盘大小)、CDN加速节点的Speedtest测速(共3个节点)、各大洲节点的Speedtest测速(共27个节点)、IO测试(包括CPU、硬盘、内存的速度测试)。脚本特点:运行速度快、下载速度测试不会出现永久卡住情况、从谷歌云盘测试下载速度、可以测试内存平均速度、自动分享服务器测试结果到hastebin或ubuntu、Speedtest测速节点更多、使用curl而不是wget。
一、测试命令
1、安装“curl”。如果你的系统无法运行“curl”命令,请先运行下面命令安装“curl”:
apt-get install curl
或
yum install curl -y
2、完整测试脚本。对服务器信息、CDN加速节点的Speedtest测速、各大洲节点的Speedtest测速、IO测试进行全面测试。
curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share
测试结果演示。以下测试使用的是高品质美国CN2KVM CN2直连线路VPS。
[[email protected] ~]# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share
Benchmark started on 02-Jan-2018 23:45:33
## System Information
OS Name : CentOS release 6.8 (32 bit)
Kernel : KVM / 4.10.4-1.el6.elrepo.i686
Hostname : host.localdomain
CPU Model : QEMU Virtual CPU version (cpu64-rhel6)
CPU Cores : 1 core @ 2599.998 MHz
CPU Cache : 4096 KB
Total RAM : 1015 MiB (Free 84 MiB)
Total SWAP : 259 MiB (Free 259MiB)
Total Space : 20GB (22% used)
Running for : 30days - 00hrs 42min 40sec
## CDN Speedtest
CacheFly : 91.89 MiB/s | 735.15 Mbps | ping 0.770ms
CDN.net : 10.86 MiB/s | 86.91 Mbps | ping 63.911ms
Gdrive : 11.56 MiB/s | 92.46 Mbps | ping 0.583ms
## North America Speedtest
Softlayer, Washington, USA : 12.78 MiB/s | 102.26 Mbps | ping 62.635ms
SoftLayer, San Jose, USA : 27.39 MiB/s | 219.15 Mbps | ping 12.104ms
SoftLayer, Dallas, USA : 7.15 MiB/s | 57.23 Mbps | ping 132.266ms
Vultr, New Jersey, USA : 32.10 MiB/s | 256.82 Mbps | ping 62.099ms
Vultr, Seattle, USA : 62.42 MiB/s | 499.38 Mbps | ping 26.135ms
Vultr, Dallas, USA : 52.47 MiB/s | 419.76 Mbps | ping 27.531ms
Vultr, Los Angeles, USA : 13.37 MiB/s | 107.00 Mbps | ping 0.717ms
Ramnode, New York, USA : 23.73 MiB/s | 189.81 Mbps | ping 61.894ms
Ramnode, Atlanta, USA : 7.73 MiB/s | 61.84 Mbps | ping 61.046ms
OVH, Beauharnois, Canada : 9.59 MiB/s | 76.70 Mbps | ping 70.753ms
## Europe Speedtest
Vultr, London, UK : 11.95 MiB/s | 95.59 Mbps | ping 141.299ms
LeaseWeb, Frankfurt, Germany : 5.38 MiB/s | 43.01 Mbps | ping 155.542ms
Hetzner, Germany : 4.63 MiB/s | 37.03 Mbps | ping 160.928ms
Ramnode, Alblasserdam, NL : 1.31 MiB/s | 10.50 Mbps | ping 146.321ms
Vultr, Amsterdam, NL : 8.80 MiB/s | 70.39 Mbps | ping 152.307ms
EDIS, Stockholm, Sweden : 350.16 KiB/s | 2.74 Mbps | ping 181.008ms
OVH, Roubaix, France : 6.63 MiB/s | 53.01 Mbps | ping 134.683ms
Online, France : 3.95 MiB/s | 31.59 Mbps | ping 141.424ms
Prometeus, Milan, Italy : 3.61 MiB/s | 28.89 Mbps | ping 156.513ms
## Exotic Speedtest
Sydney, Australia : 6.51 MiB/s | 52.11 Mbps | ping 159.187ms
Lagoon, New Caledonia : 471.47 KiB/s | 3.68 Mbps | ping 170.227ms
Hosteasy, Moldova : 229.90 KiB/s | 1.80 Mbps | ping 195.818ms
Prima, Argentina : 309.80 KiB/s | 2.42 Mbps | ping error!
## Asia Speedtest
SoftLayer, Singapore : 671.59 KiB/s | 5.25 Mbps | ping 168.896ms
Linode, Tokyo, Japan : 15.88 MiB/s | 127.00 Mbps | ping 105.865ms
Linode, Singapore : 3.20 MiB/s | 25.59 Mbps | ping 171.947ms
Vultr, Tokyo, Japan : 12.21 MiB/s | 97.66 Mbps | ping 144.306ms
## IO Test
CPU Speed:
bzip2 512MB - 61.7 MB/s
sha256 512MB - 124 MB/s
md5sum 512MB - 375 MB/s
Disk Speed (512MB):
I/O Speed - 222 MB/s
I/O Direct - 168 MB/s
RAM Speed (507MB):
Avg. write - 1672.5 MB/s
Avg. read - 3549.9 MB/s
Benchmark finished in 156 seconds
results saved on /root/bench.log
3、简化测试脚本。只对服务器信息、CDN加速节点的Speedtest测速、IO测试进行测试。
curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -b share
测试结果演示。以下测试使用的是高品质美国CN2KVM CN2直连线路VPS。
[[email protected] ~]# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -b share
Benchmark started on 02-Jan-2018 23:49:06
## System Information
OS Name : CentOS release 6.8 (32 bit)
Kernel : KVM / 4.10.4-1.el6.elrepo.i686
Hostname : host.localdomain
CPU Model : QEMU Virtual CPU version (cpu64-rhel6)
CPU Cores : 1 core @ 2599.998 MHz
CPU Cache : 4096 KB
Total RAM : 1015 MiB (Free 51 MiB)
Total SWAP : 259 MiB (Free 259MiB)
Total Space : 20GB (12% used)
Running for : 30days - 00hrs 46min 12sec
## CDN Speedtest
CacheFly : 90.78 MiB/s | 726.24 Mbps | ping 1.254ms
CDN.net : 11.11 MiB/s | 88.92 Mbps | ping 64.055ms
Gdrive : 10.58 MiB/s | 84.68 Mbps | ping 0.516ms
## IO Test
CPU Speed:
bzip2 512MB - 55.1 MB/s
sha256 512MB - 109 MB/s
md5sum 512MB - 305 MB/s
Disk Speed (512MB):
I/O Speed - 628 MB/s
I/O Direct - 160 MB/s
RAM Speed (507MB):
Avg. write - 1621.4 MB/s
Avg. read - 4061.9 MB/s
Benchmark finished in 38 seconds
results saved on /root/bench.log
二、其他相关文章
- 如何对Linux系统服务器的路由追踪及回程路由追踪进行测试
- Superspeed一键测速脚本 测试服务器到中国电信/联通/移动速度
- Linux服务器性能测试一键包 一键性能/线路/速度/Ping/跑分检测
- Linux系统信息/IO读写/下载速度一键测试脚本bench.sh
- 如何对VPS进行性能测试及UnixBench跑分工具使用教程
- Linux系统服务器到国内电信、联通、移动回程Ping一键测试脚本