一键测试脚本bench.sh

技术 37452 次围观 62 次吐槽

经过几个版本的演化,一键测试脚本 bench.sh 已经几乎全面适用于各种 Linux 发行版的网络(下行)和 IO 测试。
并将测试结果以较为美观的方式显示出来。

总结一下 bench.sh 特点:

1、显示当前测试的各种系统信息;
2、取自世界多处的知名数据中心的测试点,下载测试比较全面;
3、支持 IPv6 下载测速;
4、IO 测试三次,并显示平均值。

再配合 unixbench.sh 脚本测试,即可全面测试 VPS 的性能。

使用方法:
命令1:

wget -qO- bench.sh | bash

或者

curl -Lso- bench.sh | bash

命令2:

wget -qO- 86.re/bench.sh | bash

或者

curl -so- 86.re/bench.sh | bash

备注:
bench.sh 既是脚本名,同时又是域名。所以不要怀疑我写错了或者你看错了。

下载地址:
https://github.com/teddysun/across/blob/master/bench.sh

2016 年 11 月 24 日更新:新增:显示硬盘信息;把 IO 速度测试的位置提前,网络下载速度测试放到最后。

如下所示:

最后放几张测试图片。

BandwagonHost Los Angel

DigitalOcean Singapore

Ramnode Seattle

Xvmlabs Los Angel

转载请注明:秋水逸冰 » 一键测试脚本bench.sh

发表评论
取消评论
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
表情

已有评论 (62)

  1. 测试速度再快些就好了 亚马逊首尔 ---------------------------------------------------------------------- CPU model : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz Number of cores : 1 CPU frequency : 2400.022 MHz Total amount of ram : 992 MB Total amount of swap : 0 MB System uptime : 0days, 0:13:58 OS : Ubuntu 14.04.3 LTS Arch : x86_64 (64 Bit) Kernel : 3.13.0-74-generic ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 205.234.175.175 7.60MB/s Linode, Tokyo, JP 106.187.96.148 8.25MB/s Linode, Singapore, SG 139.162.23.4 7.39MB/s Linode, London, UK 176.58.107.39 3.95MB/s Linode, Frankfurt, DE 139.162.130.8 2.51MB/s Linode, Fremont, CA 50.116.14.9 8.71MB/s Softlayer, Dallas, TX 173.192.68.18 4.60MB/s Softlayer, Seattle, WA 67.228.112.250 5.40MB/s Softlayer, Frankfurt, DE 159.122.69.4 3.37MB/s Softlayer, Singapore, SG 119.81.28.170 9.01MB/s Softlayer, HongKong, CN 119.81.130.170 8.63MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 67.8 MB/s I/O speed(2nd run) : 64.2 MB/s I/O speed(3rd run) : 64.1 MB/s Average I/O: 65.3667 MB/s
    ntgeralt1年前 (2016-01-23)回复
  2. CPU model : Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz Number of cores : 1 CPU frequency : 3499.998 MHz Total amount of ram : 994 MB Total amount of swap : 1023 MB System uptime : 2days, 5:0:8 OS : Ubuntu 14.04 LTS Arch : x86_64 (64 Bit) Kernel : 3.13.0-24-generic ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 205.234.175.175 37.7MB/s Linode, Tokyo, JP 106.187.96.148 2.23MB/s Linode, Singapore, SG 139.162.23.4 2.19MB/s Linode, London, UK 176.58.107.39 2.64MB/s Linode, Frankfurt, DE 139.162.130.8 1.32MB/s Linode, Fremont, CA 50.116.14.9 3.55MB/s Softlayer, Dallas, TX 173.192.68.18 32.2MB/s Softlayer, Seattle, WA 67.228.112.250 3.03MB/s Softlayer, Frankfurt, DE 159.122.69.4 1.49MB/s Softlayer, Singapore, SG 119.81.28.170 1.37MB/s Softlayer, HongKong, CN 119.81.130.170 1.26MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 220 MB/s I/O speed(2nd run) : 215 MB/s I/O speed(3rd run) : 217 MB/s Average I/O: 217.333 MB/s 小白,不是很懂,感觉这个I/O是不是太低了?
    河石子1年前 (2016-01-18)回复
  3. AWS的测试。。。 BYTE UNIX Benchmarks (Version 5.1.3) System: ip-172-31-22-2: GNU/Linux OS: GNU/Linux -- 3.13.0-48-generic -- #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") CPU 0: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz (4789.1 bogomips) Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET 16:44:18 up 64 days, 7 min, 1 user, load average: 0.77, 0.33, 0.16; runlevel 2 ------------------------------------------------------------------------ Benchmark Run: Sun Jan 10 2016 16:44:18 - 17:12:22 1 CPU in system; running 1 parallel copy of tests Dhrystone 2 using register variables 31383571.7 lps (10.0 s, 7 samples) Double-Precision Whetstone 4034.6 MWIPS (9.7 s, 7 samples) Execl Throughput 4830.1 lps (30.0 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 1202472.6 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 323507.4 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 3499207.5 KBps (30.0 s, 2 samples) Pipe Throughput 2338733.1 lps (10.0 s, 7 samples) Pipe-based Context Switching 359816.5 lps (10.0 s, 7 samples) Process Creation 14954.2 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 8705.5 lpm (60.0 s, 2 samples) Shell Scripts (8 concurrent) 1147.0 lpm (60.0 s, 2 samples) System Call Overhead 4206058.5 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 31383571.7 2689.3 Double-Precision Whetstone 55.0 4034.6 733.6 Execl Throughput 43.0 4830.1 1123.3 File Copy 1024 bufsize 2000 maxblocks 3960.0 1202472.6 3036.5 File Copy 256 bufsize 500 maxblocks 1655.0 323507.4 1954.7 File Copy 4096 bufsize 8000 maxblocks 5800.0 3499207.5 6033.1 Pipe Throughput 12440.0 2338733.1 1880.0 Pipe-based Context Switching 4000.0 359816.5 899.5 Process Creation 126.0 14954.2 1186.8 Shell Scripts (1 concurrent) 42.4 8705.5 2053.2 Shell Scripts (8 concurrent) 6.0 1147.0 1911.7 System Call Overhead 15000.0 4206058.5 2804.0 ======== System Benchmarks Index Score 1863.4 ======= Script description and score comparison completed! =======
    lam6401年前 (2016-01-11)回复
  4. houst 香港 ---------------------------------------------------------------------- CPU model : Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz Number of cores : 2 CPU frequency : 2400.016 MHz Total amount of ram : 768 MB Total amount of swap : 768 MB System uptime : 0days, 22:46:7 OS : Debian GNU/Linux 7 Arch : x86_64 (64 Bit) Kernel : 2.6.32-042stab112.15 ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 205.234.175.175 2.31MB/s Linode, Tokyo, JP 106.187.96.148 16.4MB/s Linode, Singapore, SG 139.162.23.4 13.2MB/s Linode, London, UK 176.58.107.39 5.64MB/s Linode, Frankfurt, DE 139.162.130.8 3.06MB/s Linode, Fremont, CA 50.116.14.9 9.34MB/s Softlayer, Dallas, TX 173.192.68.18 6.63MB/s Softlayer, Seattle, WA 67.228.112.250 7.69MB/s Softlayer, Frankfurt, DE 159.122.69.4 5.13MB/s Softlayer, Singapore, SG 119.81.28.170 24.4MB/s Softlayer, HongKong, CN 119.81.130.170 48.3MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 654 MB/s I/O speed(2nd run) : 706 MB/s I/O speed(3rd run) : 737 MB/s Average I/O: 699 MB/s
    heanv1年前 (2016-01-10)回复
  5. 搬瓦工 ---------------------------------------------------------------------- CPU model : Intel(R) Xeon(R) CPU D-1540 @ 2.00GHz Number of cores : 1 CPU frequency : 1999.883 MHz Total amount of ram : 256 MB Total amount of swap : 128 MB System uptime : 1days, 2:8:41 OS : CentOS 6.7 Arch : i686 (32 Bit) Kernel : 2.6.32-042stab108.8 ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 205.234.175.175 84.5MB/s Linode, Tokyo, JP 106.187.96.148 19.1MB/s Linode, Singapore, SG 139.162.23.4 8.23MB/s Linode, London, UK 176.58.107.39 5.47MB/s Linode, Frankfurt, DE 139.162.130.8 8.07MB/s Linode, Fremont, CA 50.116.14.9 79.6MB/s Softlayer, Dallas, TX 173.192.68.18 58.3MB/s Softlayer, Seattle, WA 67.228.112.250 66.0MB/s Softlayer, Frankfurt, DE 159.122.69.4 9.13MB/s Softlayer, Singapore, SG 119.81.28.170 11.4MB/s Softlayer, HongKong, CN 119.81.130.170 12.3MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 497 MB/s I/O speed(2nd run) : 511 MB/s I/O speed(3rd run) : 530 MB/s Average I/O: 512.667 MB/s
    heanv1年前 (2016-01-10)回复
  6. 客服帮我改G口啦 来秀秀网速 Node Name IPv4 address Download Speed CacheFly 205.234.175.175 75.5MB/s Linode, Tokyo, JP 106.187.96.148 13.5MB/s Linode, Singapore, SG 139.162.23.4 6.79MB/s Linode, London, UK 176.58.107.39 9.97MB/s Linode, Frankfurt, DE 139.162.130.8 5.08MB/s Linode, Fremont, CA 50.116.14.9 83.0MB/s Softlayer, Dallas, TX 173.192.68.18 57.4MB/s Softlayer, Seattle, WA 67.228.112.250 71.9MB/s Softlayer, Frankfurt, DE 159.122.69.4 6.23MB/s Softlayer, Singapore, SG 119.81.28.170 10.1MB/s Softlayer, HongKong, CN 119.81.130.170 11.8MB/s ----------------------------------------------------------------------
    悲剧1年前 (2016-01-07)回复
  7. alpha 5刀 黑五的 我还升级了 1G网络 正常吗? CPU model : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz Number of cores : 1 CPU frequency : 2393.933 MHz Total amount of ram : 128 MB Total amount of swap : 0 MB System uptime : 9days, 22:47:1 OS : CentOS 6.2 Arch : i686 (32 Bit) Kernel : 2.6.32-042stab106.4 ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 205.234.175.175 12.0MB/s Linode, Tokyo, JP 106.187.96.148 9.77MB/s Linode, Singapore, SG 139.162.23.4 10.1MB/s Linode, London, UK 176.58.107.39 9.95MB/s Linode, Frankfurt, DE 139.162.130.8 9.86MB/s Linode, Fremont, CA 50.116.14.9 12.0MB/s Softlayer, Dallas, TX 173.192.68.18 11.6MB/s Softlayer, Seattle, WA 67.228.112.250 6.28MB/s Softlayer, Frankfurt, DE 159.122.69.4 7.15MB/s Softlayer, Singapore, SG 119.81.28.170 6.78MB/s Softlayer, HongKong, CN 119.81.130.170 4.07MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 102 MB/s I/O speed(2nd run) : 132 MB/s I/O speed(3rd run) : 141 MB/s Average I/O: 125 MB/s
    悲剧1年前 (2016-01-07)回复
    • 从测试结果来看,这根本不是 1Gbps 的网络,而是 100Mbps 的网络。至少下行是这样的。
      秋水逸冰1年前 (2016-01-07)回复
      • 不会吧 那岂不是商家在骗我 我去问问去
        悲剧1年前 (2016-01-07)回复
  8. Lindeo 怎么这么惨!? ---------------------------------------------------------------------- CPU model : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz Number of cores : 1 CPU frequency : 2800.064 MHz Total amount of ram : 992 MB Total amount of swap : 255 MB System uptime : 22days, 12:5:39 OS : Arch : x86_64 (64 Bit) Kernel : 2.6.32-504.3.3.el6.x86_64 ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 204.93.150.152 37.7MB/s Linode, Tokyo, JP 106.187.96.148 36.5MB/s Linode, Singapore, SG 139.162.23.4 10.1MB/s Linode, London, UK 176.58.107.39 4.71MB/s Linode, Frankfurt, DE 139.162.130.8 4.36MB/s Linode, Fremont, CA 50.116.14.9 11.6MB/s Softlayer, Dallas, TX 173.192.68.18 8.49MB/s Softlayer, Seattle, WA 67.228.112.250 7.64MB/s Softlayer, Frankfurt, DE 159.122.69.4 3.15MB/s Softlayer, Singapore, SG 119.81.28.170 10.2MB/s Softlayer, HongKong, CN 119.81.130.170 13.1MB/s ---------------------------------------------------------------------- Node Name IPv6 address Download Speed Linode, Atlanta, GA 2600:3c02::4b 3.92MB/s Linode, Dallas, TX 2600:3c00::4b 4.93MB/s Linode, Newark, NJ 2600:3c03::4b 5.31MB/s Linode, Singapore, SG 2400:8901::4b 5.35MB/s Linode, Tokyo, JP 2400:8900::4b 27.7MB/s Softlayer, San Jose, CA 2607:f0d0:2601:2a::4 10.3MB/s Softlayer, Washington, WA 2607:f0d0:3001:78::2 9.37MB/s Softlayer, Paris, FR 2a03:8180:1301:8::4 4.96MB/s Softlayer, Singapore, SG 2401:c900:1101:8::2 4.41MB/s Softlayer, Tokyo, JP 2401:c900:1001:16::4 5.00MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 470 MB/s I/O speed(2nd run) : 524 MB/s I/O speed(3rd run) : 514 MB/s Average I/O: 502.667 MB/s
    Orac1e1年前 (2016-01-06)回复
  9. 大神可否写一篇cisoc anyconnect的服务端部署教程,一键脚本即可
    红领巾2年前 (2016-01-05)回复
    • 此脚本在 Github 上应该有的,基于 CentOS 7 下的一键安装脚本。你去搜一下便知。
      秋水逸冰2年前 (2016-01-05)回复
  10. 收藏了,好东西。
    河西走廊2年前 (2016-01-04)回复
  11. 感谢,在用freevps的
    Andrew2年前 (2016-01-03)回复
  12. 等今天下班了 回去体验一下
    钧泽2年前 (2015-12-30)回复
  13. XVM Labs VPS - 512 - default.hostname (2015-09-05 - 2016-09-04) Number of IPv4 Addresses: 7 x 1 IPv4 $0.04 USD * Location: US West Coast - Los Angeles (XUSCA) * ---------------------------------------------------------------------- CPU model : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz Number of cores : 1 CPU frequency : 2666.794 MHz Total amount of ram : 512 MB Total amount of swap : 64 MB System uptime : 39days, 8:44:0 OS : CentOS 6.5 Arch : x86_64 (64 Bit) Kernel : 2.6.32-042stab111.12 ---------------------------------------------------------------------- Node Name IPv4 address Download Speed CacheFly 205.234.175.175 81.4MB/s Linode, Tokyo, JP 106.187.96.148 10.4MB/s Linode, Singapore, SG 139.162.23.4 5.50MB/s Linode, London, UK 176.58.107.39 7.59MB/s Linode, Frankfurt, DE 139.162.130.8 719KB/s Linode, Fremont, CA 50.116.14.9 54.3MB/s Softlayer, Dallas, TX 173.192.68.18 58.1MB/s Softlayer, Seattle, WA 67.228.112.250 63.9MB/s Softlayer, Frankfurt, DE 159.122.69.4 878KB/s Softlayer, Singapore, SG 119.81.28.170 10.5MB/s Softlayer, HongKong, CN 119.81.130.170 13.6MB/s ---------------------------------------------------------------------- I/O speed(1st run) : 439 MB/s I/O speed(2nd run) : 555 MB/s I/O speed(3rd run) : 589 MB/s Average I/O: 527.667 MB/s ---------------------------------------------------------------------- XVM Labs 超售 VPS,速度有点惨不忍睹啊。
    nuomi2年前 (2015-12-29)回复
    • 这个速度可以啦。 要看看性价比,绝对超值。
      秋水逸冰2年前 (2015-12-29)回复
  14. 这个脚本要比之前的好太多了,首先感官上就很舒服!谢谢分享
    mofei2年前 (2015-12-28)回复
  15. 超好用的脚本,谢谢~
    河马大叔2年前 (2015-12-28)回复
    • 是不是有点类似跑分软件?
      moegirl1年前 (2016-03-11)回复