美文网首页小白运维之路
Ubuntu服务器性能测试脚本serverreview-benc

Ubuntu服务器性能测试脚本serverreview-benc

作者: 行书以鉴 | 来源:发表于2018-01-05 14:46 被阅读36次

    概述

    这个脚本是经常用来测试服务器性能尤其是Ubunut16.04的,在购买vps之后可以用来测试一下性能

    安装和使用

    完整测试脚本

    对服务器信息、CDN加速节点的Speedtest测速、各大洲节点的Speedtest测速、IO测试进行全面测试.

    curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share
    
    Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-105-generic x86_64)
    
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    
    Welcome to Alibaba Cloud Elastic Compute Service !
    
    root@iZwz99byk2t6ki0rkih9nqZ:~# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share
    
     Benchmark started on 05-Jan-2018 14:35:03
    
     ## System Information
    
     OS Name     : Ubuntu 16.04.3 LTS (64 bit)
     Kernel      : KVM / 4.4.0-105-generic
     Hostname    : iZwz99byk2t6ki0rkih9nqZ
     CPU Model   : Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz
     CPU Cores   : 1 core @  2499.994 MHz
     CPU Cache   : 40960 KB
     Total RAM   : 2000 MiB (Free 1813 MiB)
     Total SWAP  : SWAP not enabled
     Total Space : 41GB (5% used)
     Running for : 46 seconds
    
    
     ## CDN Speedtest
    
     CacheFly :   4.60 MiB/s |   36.81 Mbps  | ping 112.226ms
     CDN.net  :       0 B/s |      N/A       | ping  81.779ms
     Gdrive   :./bench.sh: line 290: /tmp/gdrive: No such file or directory
           0 B/s |      N/A       | ping error!
    
    
     ## North America Speedtest
    
     Softlayer, Washington, USA :  23.29 KiB/s |    0.18 Mbps  | ping 313.101ms
     SoftLayer, San Jose, USA   :  72.85 KiB/s |    0.57 Mbps  | ping 205.448ms
     SoftLayer, Dallas, USA     : 277.13 KiB/s |    2.17 Mbps  | ping 244.555ms
     Vultr, New Jersey, USA     :  15.10 KiB/s |    0.12 Mbps  | ping 409.804ms
     Vultr, Seattle, USA        : 581.74 KiB/s |    4.54 Mbps  | ping 275.682ms
     Vultr, Dallas, USA         : 148.02 KiB/s |    1.16 Mbps  | ping 277.813ms
     Vultr, Los Angeles, USA    :  79.91 KiB/s |    0.62 Mbps  | ping 354.608ms
     Ramnode, New York, USA     :  28.56 KiB/s |    0.22 Mbps  | ping 325.358ms
     Ramnode, Atlanta, USA      :  35.64 KiB/s |    0.28 Mbps  | ping 293.767ms
     OVH, Beauharnois, Canada   :  81.25 KiB/s |    0.63 Mbps  | ping 377.852ms
    
    
     ## Europe Speedtest
    
     Vultr, London, UK            : 183.76 KiB/s |    1.44 Mbps  | ping 310.124ms
     LeaseWeb, Frankfurt, Germany :   2.18 MiB/s |   17.45 Mbps  | ping 196.458ms
     Hetzner, Germany             :       0 B/s |      N/A       | ping 315.163ms
     Ramnode, Alblasserdam, NL    :  55.44 KiB/s |    0.43 Mbps  | ping 395.359ms
     Vultr, Amsterdam, NL         :  97.48 KiB/s |    0.76 Mbps  | ping 287.635ms
     EDIS, Stockholm, Sweden      : 140.66 KiB/s |    1.10 Mbps  | ping 205.503ms
     OVH, Roubaix, France         :   2.01 MiB/s |   16.10 Mbps  | ping 194.821ms
     Online, France               :  12.67 KiB/s |    0.10 Mbps  | ping 348.802ms
     Prometeus, Milan, Italy      : 249.19 KiB/s |    1.95 Mbps  | ping 360.815ms
    
    
     ## Exotic Speedtest
    
     Sydney, Australia     :       0 B/s |      N/A       | ping 223.746ms
     Lagoon, New Caledonia :  73.46 KiB/s |    0.57 Mbps  | ping 264.849ms
     Hosteasy, Moldova     :   9.84 KiB/s |    0.08 Mbps  | ping 295.351ms
     Prima, Argentina      :  29.27 KiB/s |    0.23 Mbps  | ping error!
    
    
     ## Asia Speedtest
    
     SoftLayer, Singapore :  36.00 KiB/s |    0.28 Mbps  | ping 383.792ms
     Linode, Tokyo, Japan :   8.69 MiB/s |   69.50 Mbps  | ping  78.283ms
     Linode, Singapore    :  26.10 KiB/s |    0.20 Mbps  | ping error!
     Vultr, Tokyo, Japan  :   5.50 MiB/s |   43.98 Mbps  | ping 115.211ms
    
    
     ## IO Test
    
     CPU Speed:
        bzip2 512MB -   105 MB/s
       sha256 512MB -   173 MB/s
       md5sum 512MB -   455 MB/s
    
     Disk Speed (512MB):
       I/O Speed  - 84.9 MB/s
       I/O Direct - 54.2 MB/s
    
     RAM Speed (1024MB):
       Avg. write - 2355.2 MB/s
       Avg. read  - 4812.8 MB/s
    
     Benchmark finished in 197 seconds
       results saved on /root/bench.log
    
     Share result:
     https://paste.ubuntu.com/26324015/
    
    
    简化测试脚本

    只对服务器信息、CDN加速节点的Speedtest测速、IO测试进行测试.

    curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -b share
    
    
    root@iZwz99byk2t6ki0rkih9nqZ:~# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -b share
    
     Benchmark started on 05-Jan-2018 14:43:12
    
     ## System Information
    
     OS Name     : Ubuntu 16.04.3 LTS (64 bit)
     Kernel      : KVM / 4.4.0-105-generic
     Hostname    : iZwz99byk2t6ki0rkih9nqZ
     CPU Model   : Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz
     CPU Cores   : 1 core @  2499.994 MHz
     CPU Cache   : 40960 KB
     Total RAM   : 2000 MiB (Free 1808 MiB)
     Total SWAP  : SWAP not enabled
     Total Space : 41GB (5% used)
     Running for : 8 minutes 56 seconds
    
    
     ## CDN Speedtest
    
     CacheFly :   1.68 MiB/s |   13.43 Mbps  | ping 196.130ms
     CDN.net  :       0 B/s |      N/A       | ping  83.577ms
     Gdrive   :./bench.sh: line 290: /tmp/gdrive: No such file or directory
           0 B/s |      N/A       | ping error!
    
    
     ## IO Test
    
     CPU Speed:
        bzip2 512MB -   104 MB/s
       sha256 512MB -   173 MB/s
       md5sum 512MB -   452 MB/s
    
     Disk Speed (512MB):
       I/O Speed  - 84.0 MB/s
       I/O Direct - 54.2 MB/s
    
     RAM Speed (1024MB):
       Avg. write - 2355.2 MB/s
       Avg. read  - 4710.4 MB/s
    
     Benchmark finished in 57 seconds
       results saved on /root/bench.log
    
     Share result:
     https://paste.ubuntu.com/26324039/
    

    相关文章

      网友评论

        本文标题:Ubuntu服务器性能测试脚本serverreview-benc

        本文链接:https://www.haomeiwen.com/subject/sqxsnxtx.html