SuperBench.sh 一键测试服务器的基本参数

 Linux  oldking   2017-09-21   27,801 人阅读  48 条评论

 

之前写 Superspeed 的时候,就有人让我整合到 teddysun 大佬的 bench.sh 脚本里面,当时没啥时间弄,而且人家写的东西也不能直接抄,今天花了点时间弄了一下,去查询了相关的 Linux 命令,发现写来写去,那些基本的获取参数的命令都是一样的,变不出啥花样了,就偷懒参照了 bench.sh 改了一份,一会就弄完了,测试了一下没啥大问题,就放出来了。

再次更新

2018.10.25    v1.1.3   增加TCP拥塞控制检测

2018.10.24    v1.1.2   取消speedtest默认的latency显示

2018.8.27    v1.1.1   当默认的speedtest由于自身ip库信息导致连接到较远的节点时候增加(*)提示

2018.8.14    v1.1.0    增加speedtest.net分享链接

2018.7.18    v1.0.9    修复部分bug

2018.7.14     v1.0.8     测速部分增加 fast-cli

2018.7.5     v1.0.7     ipip.net api 改用http,修复bug

2018.6.29     v1.0.6

修复硬盘容量重复bug

修改系统参数信息颜色

增加 hyper 识别

更换至 ipip.net 数据库

2018.5.11     v1.0.5       改用 ipip.net 数据显示 ip 地理位置信息

2018.5.5    v1.0.3       详细见 https://www.oldking.net/599.html

更新

  1. 新增 Virt 检测服务器类型参数,常见 openvz,kvm,独服都能检测出来
  2. 新增独服通电时间检测。
  3. 修复,speedtest 延迟飘逸,飘逸延迟统一改为 000.000 ms
  4. 修改 I/O 测试块大小
  5. 统一字符为英文,解决乱码问题

OpenVZ

SuperBench.sh 一键测试服务器的基本参数

Kvm

SuperBench.sh 一键测试服务器的基本参数

独服

SuperBench.sh 一键测试服务器的基本参数

一、特点

  1. 改进了显示的模式,基本参数添加了颜色,方面区分与查找。
  2. I/O测试,更改了原来默认的测试的内容,采用小文件,中等文件,大文件,分别测试IO性能,然后取平均值。
  3. 速度测试替换成了 Superspeed 里面的测试,第一个默认节点是,Speedtest 默认,其他分别测试到中国电信,联通,移动,各三个不同地区的速度。

二、使用方法

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

或者

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

三、演示图

SuperBench.sh 一键测试服务器的基本参数

四、下载地址

https://github.com/oooldking/script/blob/master/superbench.sh

 

 

本文地址:https://www.oldking.net/350.html
版权声明:本文为原创文章,版权归 oldking 所有,转载需要提前告知并保留原文链接!
 关于作者
oldking 老鬼(oldking),程序员,VPS爱好者,长时间以各种名称出没于各类主机论坛,技术社区,08年开始接触建站,09年开始有了第一个自己的网站,熟悉一点 Web 知识,熟悉一点服务器运维知识,爱好鼓捣各种新奇的东西,现在,一切从头开始,认真做一个自己喜欢的东西。

 发表评论 取消回复


表情

  1. zhujiwiki
    zhujiwiki @回复

    比一般的多了硬盘时间和虚拟类型,实用。
    有的含有CPU跑分,看能否加上。

    • oldking
      oldking【站长】2017-09-22 at 17:10  回复

      @zhujiwikiCPU跑分的耗时过长,在这个脚本的基本模式里面暂时不加入了,后面我想办法通过参数的模式加进去。

  2. zvv
    zvv @回复

    -qO 后面好像要加个- 不加会提示错误。

  3. 橙影
    橙影 @回复

    wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
    少了个- 不然missing url

  4. 阿明
    阿明 @回复

    在centos6.9、7.4下测试只有IO结果输出,没有速率:
    ———————————————————————-
    Node Name Upload Speed Download Speed Latency
    ———————————————————————-
    Total time : 2 min 27 sec
    Current time : 2017-11-15 20:25:03
    Finished!
    ———————————————————————-

    • oldking
      oldking【站长】2017-11-15 at 23:21  回复

      @阿明能说下在哪家的机子上测的么

      • 阿明
        阿明 【农民】2017-11-15 at 23:24  回复

        @oldking你好,我在vultr测试的,我也有测过其他家的VPS,仍然如此。不知是不是和 iptabels 有关?

  5. 繁花
    繁花 @回复

    [[email protected] ~]# wget -qO- –no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
    ———————————————————————-
    CPU model : Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
    Number of cores : 1
    CPU frequency : 3499.889 MHz
    Total size of Disk : 30.0 GB (0.6 GB Used)
    Total amount of Mem : 1024 MB (8 MB Used)
    Total amount of Swap : 0 MB (0 MB Used)
    System uptime : 0 days 0 hour 21 min
    Load average : 0.00, 0.00, 0.00
    OS : CentOS 7.4.1708
    Arch : x86_64 (64 Bit)
    Kernel : 2.6.32-042stab126.1
    Virt : openvz
    ———————————————————————-
    I/O speed( 32M ) : 203 MB/s
    I/O speed( 256M ) : 229 MB/s
    I/O speed( 2G ) : 260 MB/s
    Average I/O speed : 230.7 MB/s
    ———————————————————————-
    Node Name Upload Speed Download Speed Latency
    chmod: cannot access ‘speedtest.py’: No such file or directory
    ———————————————————————-
    Total time : 24 sec
    Current time : 2016-01-01 23:26:12
    Finished!
    ———————————————————————-

    下载的时候有点问题,希望能补上–no-check-certificate

  6. 豆芽
    豆芽 @回复

    我的treudler的小鸡上硬盘只有3G。测完IO就结束了。没有测网络。

    • oldking
      oldking【站长】2018-01-03 at 05:33  回复

      @豆芽是哪个版本的系统啊

      • 豆芽
        豆芽 【农民】2018-01-03 at 09:19  回复

        @oldkingdebian7.8 64 。我发现是测IO2G的时候写入不到2G就终止了。文件也还残留在上面。建议以后io测试不全还是先删除文件,再测试网络。

  7. hostloc
    hostloc @回复

    有没有支持测试国外 上传下载的 脚本,理论上,下载速度是 入口,上传速度才是出口速度 对吧,才代表网络速度,

    • oldking
      oldking【站长】2018-01-25 at 14:44  回复

      @hostloc是的,speedtest 的测试是站在服务器本身的角度来讲的,他测的上传就可以理解为服务器传输到你本机(测试点)的速度

  8. rular
    rular @回复

    在mac os执行有如下错误,root执行的
    cat: /etc/issue: No such file or directory
    cat: /etc/issue: No such file or directory
    cat: /etc/issue: No such file or directory
    cat: /proc/version: No such file or directory
    cat: /proc/version: No such file or directory
    cat: /proc/version: No such file or directory
    Error: This script must be run as root!

  9. 很淡很淡的伤
    很淡很淡的伤 @回复

    IO测试好像提示
    Not enough space!

  10. wwng
    wwng @回复

    虚拟化技术显示不准,Hyper-V显示成Dedicated

    • oldking
      oldking【站长】2018-05-28 at 15:12  回复

      @wwng已经在修改了,下一版本更新

      • wwng
        wwng 【农民】2018-05-28 at 15:14  回复

        @oldking嗯,硬盘容量在运行docker的机器上显示也不准,会多出好几倍

  11. John.C
    John.C @回复

    总是出现错误,怎么办?
    ———————————————————————-
    Superbench.sh — https://www.oldking.net/350.html
    Mode : Standard Version : 1.0.6
    Usage : wget -qO- git.io/superbench.sh | bash
    ———————————————————————-
    CPU Model : Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz
    CPU Cores : 2 Cores @ 3599.996 MHz x86_64
    CPU Cache : 4096 KB
    OS : Ubuntu 16.04.4 LTS (64 Bit) Dedicated
    Kernel : 4.16.3-041603-generic
    Total Space : 25.0 GB (4.9 GB Used)
    Total RAM : 985 MB (124 MB Used 103 MB Buff)
    Total SWAP : 511 MB (102 MB Used)
    Uptime : 3 days 3 hour 10 min
    Load average : 0.05, 0.03, 0.00
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 291, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 291, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 291, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 291, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    ASN & ISP : AS201106, Spartan Host Ltd
    Organization : Spartan Host Ltd
    Location : , /
    Region :
    ———————————————————————-
    I/O Speed( 1.0GB ) : 991 MB/s
    I/O Speed( 1.0GB ) : 1.1 GB/s
    I/O Speed( 1.0GB ) : 1.1 GB/s
    Average I/O Speed : 1081.3 MB/s
    ———————————————————————-
    Node Name Upload Speed Download Speed Latency
    Speedtest.net 611.28 Mbit/s 759.14 Mbit/s 2.556 ms

  12. John.C
    John.C @回复

    1.0.4版本可以, 1.0.6不行啊,总是错误:
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 291, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded

    • oldking
      oldking【站长】2018-07-01 at 15:30  回复

      @John.C我这边几台机子测试都没有问题,看错误提示,可能是ipip的接口你那边访问有问题或者其他原因,方便的话可以邮件提供一台临时测试机给我。

  13. 乔峰
    乔峰 @回复

    测试io显示空间不足
    Not enough space!
    经发现,默认安装的系统有测试结果,一旦使用萌咖大佬的一键dd centos6 之后就会出现,Not enough space!,应该是硬盘接口改变了,获取不到信息的问题,望修复

  14. py
    py @回复

    好像不显示虚拟类型

  15. J
    J @回复

    多台机都是这样

    [email protected]:~# ./superbench.sh

    =========================================================
    \ Superbench.sh Script /
    \ Basic system info, I/O test and speedtest /
    \ v1.1.3 (25 Oct 2018) /
    \ Created by Oldking /
    =========================================================

    Intro: https://www.oldking.net/350.html
    Copyright (C) 2018 Oldking [email protected]
    The Previous Version: superbench_old.sh

    Installing Speedtest-cli …
    Installing tools.py …
    Installing Fast.com-cli …
    ———————————————————————-
    Superbench.sh — https://www.oldking.net/350.html
    Mode : Standard Version : 1.1.3
    Usage : wget -qO- git.io/superbench.sh | bash
    ———————————————————————-
    CPU Model : Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
    CPU Cores : 1 Cores @ 3599.994 MHz x86_64
    CPU Cache : 15360 KB
    OS : Debian GNU/Linux 8 (64 Bit) KVM
    Kernel : 3.16.0-4-amd64
    Total Space : 19.0 GB (3.0 GB Used)
    Total RAM : 494 MB (414 MB Used 34 MB Buff)
    Total SWAP : 1022 MB (88 MB Used)
    Uptime : 42 days 23 hour 48 min
    Load Average : 0.14, 0.07, 0.05
    TCP CC : cubic
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 290, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 338, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 290, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 338, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 290, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 338, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    Traceback (most recent call last):
    File “tools.py”, line 68, in
    GetIpipInfo(sys.argv[2])
    File “tools.py”, line 14, in GetIpipInfo
    ijson = json.load(f)
    File “/usr/lib/python2.7/json/__init__.py”, line 290, in load
    **kw)
    File “/usr/lib/python2.7/json/__init__.py”, line 338, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
    raise ValueError(“No JSON object could be decoded”)
    ValueError: No JSON object could be decoded
    ASN & ISP : AS20473, ReliableSite.Net LLC
    Organization : Choopa, LLC
    Location : , /
    Region :
    ———————————————————————-
    I/O Speed( 1.0GB ) : ^C

  16. ice
    ice @回复

    =========================================================
    \ Superbench.sh Script /
    \ Basic system info, I/O test and speedtest /
    \ v1.1.3 (25 Oct 2018) /
    \ Created by Oldking /
    =========================================================

    Intro: https://www.oldking.net/350.html
    Copyright (C) 2018 Oldking [email protected]
    The Previous Version: superbench_old.sh

    Installing Speedtest-cli …
    Installing tools.py …
    Installing Fast.com-cli …
    ———————————————————————-
    Superbench.sh — https://www.oldking.net/350.html
    Mode : Standard Version : 1.1.3
    Usage : wget -qO- git.io/superbench.sh | bash
    ———————————————————————-
    CPU Model : QEMU Virtual CPU version (cpu64-rhel6)
    CPU Cores : 1 Cores @ 2899.998 MHz i686
    CPU Cache : 4096 KB
    OS : CentOS 6.10 (32 Bit) KVM
    Kernel : 4.18.20-1.el6.elrepo.i686
    Total Space : 19.5 GB (1.3 GB Used)
    Total RAM : 429 MB (226 MB Used 82 MB Buff)
    Total SWAP : 1023 MB (0 MB Used)
    Uptime : 1 days 22 hour 34 min
    Load Average : 0.00, 0.00, 0.00
    TCP CC : bbr
    ASN & ISP : AS46844, Sharktech
    Organization : Sharktech
    Location : Los Angeles, United States / US
    Region : California
    ———————————————————————-
    bash: line 346: =16339: command not found
    Not enough space!
    ———————————————————————-
    硬盘速度测试用不了呢

    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/vg_cb-lv_root
    19G 1.2G 16G 7% /
    tmpfs 215M 0 215M 0% /dev/shm
    /dev/vda1 477M 98M 350M 22% /boot

    fdisk -l

    Disk /dev/ram0: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram1: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram2: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram3: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram4: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram5: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram6: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram7: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram8: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram9: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram10: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram11: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram12: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram13: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram14: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/ram15: 16 MB, 16777216 bytes
    255 heads, 63 sectors/track, 2 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000

    Disk /dev/vda: 21.5 GB, 21474836480 bytes
    16 heads, 63 sectors/track, 41610 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00065368

    Device Boot Start End Blocks Id System
    /dev/vda1 * 3 1018 512000 83 Linux
    Partition 1 does not end on cylinder boundary.
    /dev/vda2 1018 41611 20458496 8e Linux LVM
    Partition 2 does not end on cylinder boundary.

    Disk /dev/mapper/vg_cb-lv_root: 19.9 GB, 19872612352 bytes
    255 heads, 63 sectors/track, 2416 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    Disk /dev/mapper/vg_cb-lv_swap: 1073 MB, 1073741824 bytes
    255 heads, 63 sectors/track, 130 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sr0 11:0 1 1024M 0 rom
    vda 252:0 0 20G 0 disk
    ├─vda2 252:2 0 19.5G 0 part
    │ ├─vg_cb-lv_swap (dm-1) 253:1 0 1G 0 lvm [SWAP]
    │ └─vg_cb-lv_root (dm-0) 253:0 0 18.5G 0 lvm /
    └─vda1 252:1 0 500M 0 part /boot

    • oldking
      oldking【站长】2018-11-28 at 19:11  回复

      @ice收到,待我检查一下,请提供一下具体的商家,系统等环境信息,方便排查测试,谢谢。

  17. C
    C @回复

    感谢博主的脚本。提个小意见:
    我两台CN2的VPS测试结果,除了Speedtest.net以外的节点延迟都是“-”。
    但是用您的SuperSpeed却可以正常显示延迟。
    理论上应该不是超时,能否优化下?
    非常感谢!

    • oldking
      oldking【站长】2019-03-12 at 10:18  回复

      @C之前版本的有,后来我去掉了,speedtest-cli 情况下的延迟测试极其不准确,如果确实需要的话,可以在我项目的 GitHub 上下载之前的版本

  18. zhangp
    zhangp @回复

    我最近测试了,好几次都不显示国内节点的延迟了,这个是怎么回事?
    下面是我最近的一次测试结果,独服,东京。
    https://paste.ubuntu.com/p/STdhCkhKXp/

    • oldking
      oldking【站长】2019-03-12 at 10:24  回复

      @zhangp之前版本的有,后来我去掉了,speedtest-cli 情况下的延迟测试极其不准确,如果确实需要的话,可以在我项目的 GitHub 上下载之前的版本

  19. 刘冰
    刘冰 @回复

    今天CN2 GIA测试了一下广州的网速,那是真慢……卧槽~

  20. simplove
    simplove @回复

    怎么今天使用的时候,发现只有杭州和重庆2个国内节点了呀,之前很多国内节点的