欢迎访问我的网站,希望内容对您有用,感兴趣的可以加入免费知识星球。

VPS测速

Linux 迷途小书童 4年前 (2019-12-03) 2939次浏览 0个评论

本文视频

测速脚本

采用的是bench.sh,官方的网站也叫bench.shhttps://bench.sh/,同时作者也将代码开源了,存放在github上了,地址是https://github.com/teddysun/across/blob/master/bench.sh。脚本的使用非常简单,执行一条命令就行

wget -qO- bench.sh | bash

或者

curl -Lso- bench.sh | bash

之后就是一段时间的等待,测试结束后会显示测试的结果

----------------------------------------------------------------------
CPU model            : QEMU Virtual CPU version (cpu64-rhel6)
Number of cores      : 2
CPU frequency        : 2599.996 MHz
Total size of Disk   : 22.4 GB (1.6 GB Used)
Total amount of Mem  : 1001 MB (78 MB Used)
Total amount of Swap : 425 MB (0 MB Used)
System uptime        : 0 days, 6 hour 59 min
Load average         : 0.00, 0.00, 0.00
OS                   : Ubuntu 18.04.3 LTS
Arch                 : x86_64 (64 Bit)
Kernel               : 4.15.0-20-generic
----------------------------------------------------------------------
I/O speed(1st run)   : 364 MB/s
I/O speed(2nd run)   : 597 MB/s
I/O speed(3rd run)   : 705 MB/s
Average I/O speed    : 555.3 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         99.1MB/s      
Linode, Tokyo2, JP              139.162.65.37           14.6MB/s      
Linode, Singapore, SG           139.162.23.4            6.89MB/s      
Linode, London, UK              176.58.107.39           9.80MB/s      
Linode, Frankfurt, DE           139.162.130.8           10.2MB/s      
Linode, Fremont, CA             50.116.14.9             69.7MB/s      
Softlayer, Dallas, TX           173.192.68.18           45.9MB/s      
Softlayer, Seattle, WA          67.228.112.250          52.9MB/s      
Softlayer, Frankfurt, DE        159.122.69.4            9.36MB/s      
Softlayer, Singapore, SG        119.81.28.170           7.61MB/s      
Softlayer, HongKong, CN         119.81.130.170          9.36MB/s      
----------------------------------------------------------------------
root@core-node-1:~#

如上所示,结果中的第一部分是测试vps的基本信息,包括cpu的信息、磁盘的信息及操作系统的信息。接着是磁盘io的速度,会依次进行3轮然后取平均值,最后一部分是从linode网站的分节点分别下载100Mb的文件然后计算下载速度,这些分节点分布在世界的不同地方,如美国、日本、新加坡、香港等。

参考资料

喜欢 (0)

您必须 登录 才能发表评论!

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

请关闭 Adblock 等类似浏览器插件,然后刷新页面访问,感谢您的支持!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.