> 教程分享 > 【整理】VPS/云主机/服务器等一键测试命令简单测试

【整理】VPS/云主机/服务器等一键测试命令简单测试

对于自己购买的vps或者云主机您知道他的配置吗?知道性能到底如何吗?CPU频率是否被限制?等等。面对这些问题,知道所使用vps或者云服务器的性能还是一个比较重要的因素,下面主机指南博主简单的收集整理了一些常见的主机测试方法,供需要测试的朋友可以去试试哦!

简单测试硬盘I/O的两条命令

  1. dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
  2. dd if=/dev/zero of=test bs=8k count=256k conv=fdatasync

【整理】VPS/云主机/服务器等一键测试命令简单测试

简单测试SSD硬盘I/O的两条命令

  1. yum install hdparm -y
  2. fdisk -l
  3. hdparm -t /dev/hda

测试下载速度的一键脚本

  1. wget -qO- bench.sh | bash

演示

[root@v450 ~]# wget -qO- bench.sh | bash
----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
Number of cores : 1
CPU frequency : 2194.880 MHz
Total amount of ram : 490 MB
Total amount of swap : 2046 MB
System uptime : 0days, 4:29:27
Load average : 0.07, 0.02, 0.00
OS : CentOS 6.7
Arch : x86_64 (64 Bit)
Kernel : 2.6.32-573.1.1.el6.x86_64
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 52.0MB/s
Linode, Tokyo, JP 106.187.96.148 9.16MB/s
Linode, Singapore, SG 139.162.23.4 2.94MB/s
Linode, London, UK 176.58.107.39 3.93MB/s
Linode, Frankfurt, DE 139.162.130.8 3.58MB/s
Linode, Fremont, CA 50.116.14.9 24.6MB/s
Softlayer, Dallas, TX 173.192.68.18 23.7MB/s
Softlayer, Seattle, WA 67.228.112.250 32.6MB/s
Softlayer, Frankfurt, DE 159.122.69.4 2.70MB/s
Softlayer, Singapore, SG 119.81.28.170 5.96MB/s
Softlayer, HongKong, CN 119.81.130.170 7.19MB/s
----------------------------------------------------------------------
Node Name IPv6 address Download Speed
Linode, Atlanta, GA 2600:3c02::4b 6.91MB/s
Linode, Dallas, TX 2600:3c00::4b 8.91MB/s
Linode, Newark, NJ 2600:3c03::4b 5.38MB/s
Linode, Singapore, SG 2400:8901::4b 5.59MB/s
Linode, Tokyo, JP 2400:8900::4b 5.22MB/s
Softlayer, San Jose, CA 2607:f0d0:2601:2a::4 18.8MB/s
Softlayer, Washington, WA 2607:f0d0:3001:78::2 16.3MB/s
Softlayer, Paris, FR 2a03:8180:1301:8::4 4.79MB/s
Softlayer, Singapore, SG 2401:c900:1101:8::2 5.40MB/s
Softlayer, Tokyo, JP 2401:c900:1001:16::4 3.02MB/s
----------------------------------------------------------------------
I/O speed(1st run) : 503 MB/s
I/O speed(2nd run) : 546 MB/s
I/O speed(3rd run) : 526 MB/s
Average I/O speed : 525 MB/s