首页 公告 项目 RSS

linux服务器性能测试脚本serverreview-benchmark

January 3, 2018 本文有 874 个字 需要花费 2 分钟阅读

概述

这个脚本是用来测试服务器性能的,在购买vps之后可以用来测试一下性能

安装和使用

项目地址

  1. 完整测试脚本。对服务器信息、CDN加速节点的Speedtest测速、各大洲节点的Speedtest测速、IO测试进行全面测试。
    curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share
root@vultr:~# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a share

 Benchmark started on 03-Jan-2018 06:25:24

 ## System Information


 OS Name     : Ubuntu 16.04.3 LTS (64 bit)
 Kernel      : KVM / 4.14.10-041410-generic
 Hostname    : vultr.guest
 CPU Model   : Virtual CPU a7769a6388d5
 CPU Cores   : 1 core @  2394.454 MHz
 CPU Cache   : 16384 KB
 Total RAM   : 984 MiB (Free 221 MiB)
 Total SWAP  : 3999 MiB (Free 3847MiB)
 Total Space : 26GB (33% used)
 Running for : 1days - 02hrs 54min 22sec


 ## CDN Speedtest

 CacheFly :  75.69 MiB/s |  605.54 Mbps  | ping   2.372ms
 CDN.net  :  51.92 MiB/s |  415.34 Mbps  | ping   2.296ms
 Gdrive   :  35.00 MiB/s |  279.99 Mbps  | ping   2.481ms


 ## North America Speedtest

 Softlayer, Washington, USA :   1.43 MiB/s |   11.43 Mbps  | ping 163.434ms
 SoftLayer, San Jose, USA   : 503.07 KiB/s |    3.93 Mbps  | ping 106.381ms
 SoftLayer, Dallas, USA     :   1.63 MiB/s |   13.00 Mbps  | ping 194.976ms
 Vultr, New Jersey, USA     :   9.90 MiB/s |   79.18 Mbps  | ping 158.096ms
 Vultr, Seattle, USA        :  23.67 MiB/s |  189.40 Mbps  | ping  86.283ms
 Vultr, Dallas, USA         :  11.37 MiB/s |   91.00 Mbps  | ping 147.443ms
 Vultr, Los Angeles, USA    :  14.89 MiB/s |  119.12 Mbps  | ping 110.963ms
 Ramnode, New York, USA     :   2.05 MiB/s |   16.42 Mbps  | ping 177.457ms
 Ramnode, Atlanta, USA      : 187.96 KiB/s |    1.47 Mbps  | ping 162.623ms
 OVH, Beauharnois, Canada   :       0 B/s |      N/A       | ping 259.475ms


 ## Europe Speedtest

 Vultr, London, UK            :   5.66 MiB/s |   45.25 Mbps  | ping 235.208ms
 LeaseWeb, Frankfurt, Germany :   3.25 MiB/s |   26.02 Mbps  | ping 238.372ms
 Hetzner, Germany             :  99.92 KiB/s |    0.78 Mbps  | ping 253.118ms
 Ramnode, Alblasserdam, NL    : 336.45 KiB/s |    2.63 Mbps  | ping 256.815ms
 Vultr, Amsterdam, NL         :   4.29 MiB/s |   34.32 Mbps  | ping 256.738ms
 EDIS, Stockholm, Sweden      :  73.47 KiB/s |    0.57 Mbps  | ping 281.667ms
 OVH, Roubaix, France         :       0 B/s |      N/A       | ping 274.647ms
 Online, France               :  55.80 KiB/s |    0.44 Mbps  | ping 284.160ms
 Prometeus, Milan, Italy      :  10.54 KiB/s |    0.08 Mbps  | ping 443.333ms


 ## Exotic Speedtest

 Sydney, Australia     :  13.43 MiB/s |  107.44 Mbps  | ping 114.726ms
 Lagoon, New Caledonia : 402.61 KiB/s |    3.15 Mbps  | ping 164.539ms
 Hosteasy, Moldova     :  15.14 KiB/s |    0.12 Mbps  | ping 276.562ms
 Prima, Argentina      :  99.28 KiB/s |    0.78 Mbps  | ping error!


 ## Asia Speedtest

 SoftLayer, Singapore :   3.87 MiB/s |   30.92 Mbps  | ping  67.597ms
 Linode, Tokyo, Japan :  76.81 MiB/s |  614.50 Mbps  | ping   2.479ms
 Linode, Singapore    :  12.49 MiB/s |   99.90 Mbps  | ping  67.499ms
 Vultr, Tokyo, Japan  : 324.58 MiB/s | 2596.60 Mbps  | ping   0.878ms


 ## IO Test

 CPU Speed:
    bzip2 512MB -  73.6 MB/s
   sha256 512MB -   149 MB/s
   md5sum 512MB -   375 MB/s

 Disk Speed (512MB):
   I/O Speed  - 374 MB/s
   I/O Direct - 164 MB/s

 RAM Speed (492MB):
   Avg. write - 957.5 MB/s
   Avg. read  - 85.9 MB/s

 Benchmark finished in 173 seconds
   results saved on /root/bench.log

 Share result:
 https://paste.ubuntu.com/26311270/
  1. 简化测试脚本。只对服务器信息、CDN加速节点的Speedtest测速、IO测试进行测试。
    curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -b share
root@vultr:~# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -b share

 Benchmark started on 03-Jan-2018 06:29:45

 ## System Information

 OS Name     : Ubuntu 16.04.3 LTS (64 bit)
 Kernel      : KVM / 4.14.10-041410-generic
 Hostname    : vultr.guest
 CPU Model   : Virtual CPU a7769a6388d5
 CPU Cores   : 1 core @  2394.454 MHz
 CPU Cache   : 16384 KB
 Total RAM   : 984 MiB (Free 441 MiB)
 Total SWAP  : 3999 MiB (Free 3686MiB)
 Total Space : 26GB (33% used)
 Running for : 1days - 02hrs 58min 43sec


 ## CDN Speedtest

 CacheFly :  72.83 MiB/s |  582.61 Mbps  | ping   2.395ms
 CDN.net  :  59.74 MiB/s |  477.90 Mbps  | ping   2.324ms
 Gdrive   :  43.14 MiB/s |  345.13 Mbps  | ping   2.656ms


 ## IO Test

 CPU Speed:
    bzip2 512MB -  80.7 MB/s
   sha256 512MB -   137 MB/s
   md5sum 512MB -   403 MB/s

 Disk Speed (512MB):
   I/O Speed  - 356 MB/s
   I/O Direct - 161 MB/s

 RAM Speed (492MB):
   Avg. write - 1536.0 MB/s
   Avg. read  - 1750.0 MB/s

 Benchmark finished in 35 seconds
   results saved on /root/bench.log

 Share result:
 https://paste.ubuntu.com/26311274/

欢迎关注我的博客www.bboy.app
Have Fun