在刚刚过去的黑色星期五优惠活动中,刚抢购了一台virmach的特殊机子,于是想着以前看到各种vps的性能网络测试的图,想着自己看下这个看起来性能挺不错的virmach的黑五kvm虚拟机好不好,搜索发现github上有个bench-scripts可以,于是拿来用了。该代码拥有多个测试脚本,但是最好用的也就是第一个了,这里看下27刀的vps性能把。

首先vps性能网络一键测试命令

wget -qO- bench.sh | bash

该命令输出不仅包括系统信息,包括cpu,内存,io等等,另外也从linode等多个数据中心查看网络速度。 - 显示当前测试的各种系统信息; - IO 测试三次,并显示平均值; - 全球linode等著名机房网络测试

请看virmach黑五机子结果

----------------------------------------------------------------------
CPU model            : QEMU Virtual CPU version (cpu64-rhel6)
Number of cores      : 2
CPU frequency        : 2099.998 MHz
Total size of Disk   : 30.0 GB (1.7 GB Used)
Total amount of Mem  : 4419 MB (134 MB Used)
Total amount of Swap : 255 MB (0 MB Used)
System uptime        : 0 days, 0 hour 16 min
Load average         : 0.00, 0.02, 0.05
OS                   : CentOS 7.7.1908
Arch                 : x86_64 (64 Bit)
Kernel               : 3.10.0-1062.4.3.el7.x86_64
----------------------------------------------------------------------
I/O speed(1st run)   : 169 MB/s
I/O speed(2nd run)   : 345 MB/s
I/O speed(3rd run)   : 346 MB/s
Average I/O speed    : 286.7 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         48.8MB/s
Linode, Tokyo2, JP              139.162.65.37           3.32MB/s
Linode, Singapore, SG           139.162.23.4            3.04MB/s
Linode, London, UK              176.58.107.39           5.52MB/s
Linode, Frankfurt, DE           139.162.130.8           7.48MB/s
Linode, Fremont, CA             50.116.14.9             7.02MB/s
Softlayer, Dallas, TX           173.192.68.18           27.6MB/s
Softlayer, Seattle, WA          67.228.112.250          17.4MB/s
Softlayer, Frankfurt, DE        159.122.69.4            5.22MB/s
Softlayer, Singapore, SG        119.81.28.170           5.00MB/s
Softlayer, HongKong, CN         119.81.130.170          5.83MB/s
----------------------------------------------------------------------

与vultr一个月5刀对比

为了对比vps性能,我拿已经在用的1个月5刀的vultr机子来对比测试看看,vultr结果

----------------------------------------------------------------------
CPU model            : Virtual CPU a7769a6388d5
Number of cores      : 1
CPU frequency        : 2394.454 MHz
Total size of Disk   : 25 GB ( GB Used)
Total amount of Mem  : 990 MB (403 MB Used)
Total amount of Swap : 1023 MB (55 MB Used)
System uptime        : 18 days, 18 hour 29 min
Load average         : 0.01, 0.04, 0.05
OS                   : CentOS 7.7.1908
Arch                 : x86_64 (64 Bit)
Kernel               : 3.10.0-1062.1.2.el7.x86_64
----------------------------------------------------------------------
I/O speed(1st run)   : 1073741824字节(1.1 GB)已复制,3.23266 秒,332 MB/秒
I/O speed(2nd run)   : 1073741824字节(1.1 GB)已复制,4.62318 秒,232 MB/秒
I/O speed(3rd run)   : 1073741824字节(1.1 GB)已复制,3.0579 秒,351 MB/秒
Average I/O speed    : 305 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         125MB/s
Linode, Tokyo2, JP              139.162.65.37           23.4MB/s
Linode, Singapore, SG           139.162.23.4            15.0MB/s
Linode, London, UK              176.58.107.39           18.8MB/s
Linode, Frankfurt, DE           139.162.130.8           14.78MB/s
Linode, Fremont, CA             50.116.14.9             171MB/s
Softlayer, Dallas, TX           173.192.68.18           59.6MB/s
Softlayer, Seattle, WA          67.228.112.250          62.6MB/s
Softlayer, Frankfurt, DE        159.122.69.4            12.8MB/s
Softlayer, Singapore, SG        119.81.28.170           16.9MB/s
Softlayer, HongKong, CN         119.81.130.170          18.9MB/s
----------------------------------------------------------------------

总结

对比下来virmach的黑色星期五的机子从网络上来看远远不及vultr,io读写速度差不多,但是毕竟内存相对比较大,磁盘大个5g,cpu频率不高但是有2核。vultr的快照备份是相当的强大,无限快找。价钱virmach便宜就是了。其他的等以后再看吧。