DigitalOcean 网速测试

AWS 一年免费的 micro instance 就快要到期了, 但是国内访问 AWS 的速度太慢了,所以不想继续使用 AWS。打算换一个 VPS。

在 Twitter 上看见 Anthony 在派发代金券,于是要了一张。

Digital Ocean 提供纽约、新加坡、荷兰三个地区的主机。
我依次在三个地区建一个主机,分别测试从国内访问它们的速度,并与 AWS 的悉尼主机进行比较。

文件上传下载速度

  1. Digital Ocean 新加坡主机
    $ scp /tmp/11M root@128.199.237.152:/tmp
    11M                                  100%   11MB 194.5KB/s   00:57    
    $ scp root@128.199.237.152:/tmp/11M /tmp/11M_3
    11M                                  100%   11MB 149.8KB/s   01:14
  2. Digital Ocean 纽约主机
    $ scp /tmp/11M root@107.170.93.229:/tmp
    11M                                  100%   11MB  47.8KB/s   03:52 
    $ scp root@107.170.93.229:/tmp/11M /tmp/11M_2
    11M                                  100%   11MB  52.3KB/s   03:32    s
    
  3. Digital Ocean 荷兰主机
    上传速度太慢,放弃测试
  4. AWS 悉尼主机
    $ scp /tmp/11M ubuntu@54.206.1.110:/tmp
    11M                                 100%   11MB 136.9KB/s   01:21
    $ scp  ubuntu@54.206.1.110:/tmp/11M /tmp/11M_1
    11M                                 100%   11MB 692.9KB/s   00:16    
    

PING值比较

  1. Digital Ocean 新加坡主机
    $ ping 128.199.237.152 -c 10
    PING 128.199.237.152 (128.199.237.152) 56(84) bytes of data.
    64 bytes from 128.199.237.152: icmp_seq=1 ttl=50 time=113 ms
    64 bytes from 128.199.237.152: icmp_seq=2 ttl=50 time=112 ms
    64 bytes from 128.199.237.152: icmp_seq=3 ttl=50 time=113 ms
    64 bytes from 128.199.237.152: icmp_seq=4 ttl=50 time=111 ms
    64 bytes from 128.199.237.152: icmp_seq=5 ttl=50 time=110 ms
    64 bytes from 128.199.237.152: icmp_seq=6 ttl=50 time=114 ms
    64 bytes from 128.199.237.152: icmp_seq=7 ttl=50 time=114 ms
    64 bytes from 128.199.237.152: icmp_seq=8 ttl=50 time=111 ms
    64 bytes from 128.199.237.152: icmp_seq=10 ttl=50 time=112 ms
    
    --- 128.199.237.152 ping statistics ---
    10 packets transmitted, 9 received, 10% packet loss, time 9020ms
    rtt min/avg/max/mdev = 110.844/112.799/114.756/1.353 ms
  2. Digital Ocean 纽约主机
    $ ping 107.170.93.229 -c 10
    PING 107.170.93.229 (107.170.93.229) 56(84) bytes of data.
    64 bytes from 107.170.93.229: icmp_seq=1 ttl=51 time=313 ms
    64 bytes from 107.170.93.229: icmp_seq=2 ttl=51 time=316 ms
    64 bytes from 107.170.93.229: icmp_seq=3 ttl=51 time=309 ms
    64 bytes from 107.170.93.229: icmp_seq=4 ttl=51 time=317 ms
    64 bytes from 107.170.93.229: icmp_seq=5 ttl=51 time=305 ms
    64 bytes from 107.170.93.229: icmp_seq=6 ttl=51 time=319 ms
    64 bytes from 107.170.93.229: icmp_seq=7 ttl=51 time=315 ms
    64 bytes from 107.170.93.229: icmp_seq=8 ttl=51 time=304 ms
    64 bytes from 107.170.93.229: icmp_seq=9 ttl=51 time=309 ms
    64 bytes from 107.170.93.229: icmp_seq=10 ttl=51 time=311 ms
    
    --- 107.170.93.229 ping statistics ---
    10 packets transmitted, 10 received, 0% packet loss, time 9010ms
    rtt min/avg/max/mdev = 304.147/312.377/319.249/4.847 ms
  3. Digital Ocean 荷兰主机
    $ ping 95.85.5.120 -c 10
    PING 95.85.5.120 (95.85.5.120) 56(84) bytes of data.
    64 bytes from 95.85.5.120: icmp_seq=1 ttl=43 time=419 ms
    64 bytes from 95.85.5.120: icmp_seq=2 ttl=43 time=430 ms
    64 bytes from 95.85.5.120: icmp_seq=3 ttl=43 time=400 ms
    64 bytes from 95.85.5.120: icmp_seq=4 ttl=43 time=415 ms
    64 bytes from 95.85.5.120: icmp_seq=5 ttl=43 time=429 ms
    64 bytes from 95.85.5.120: icmp_seq=6 ttl=43 time=430 ms
    64 bytes from 95.85.5.120: icmp_seq=7 ttl=43 time=411 ms
    64 bytes from 95.85.5.120: icmp_seq=8 ttl=43 time=416 ms
    64 bytes from 95.85.5.120: icmp_seq=9 ttl=43 time=428 ms
    64 bytes from 95.85.5.120: icmp_seq=10 ttl=43 time=423 ms
    
    --- 95.85.5.120 ping statistics ---
    10 packets transmitted, 10 received, 0% packet loss, time 9009ms
    rtt min/avg/max/mdev = 400.311/420.465/430.876/9.482 ms
  4. AWS 悉尼主机
    $ ping 54.206.1.110 -c 10
    PING 54.206.1.110 (54.206.1.110) 56(84) bytes of data.
    64 bytes from 54.206.1.110: icmp_seq=1 ttl=42 time=312 ms
    64 bytes from 54.206.1.110: icmp_seq=2 ttl=42 time=325 ms
    64 bytes from 54.206.1.110: icmp_seq=3 ttl=42 time=329 ms
    64 bytes from 54.206.1.110: icmp_seq=4 ttl=42 time=328 ms
    64 bytes from 54.206.1.110: icmp_seq=5 ttl=42 time=321 ms
    64 bytes from 54.206.1.110: icmp_seq=6 ttl=42 time=302 ms
    64 bytes from 54.206.1.110: icmp_seq=7 ttl=42 time=316 ms
    64 bytes from 54.206.1.110: icmp_seq=8 ttl=42 time=324 ms
    64 bytes from 54.206.1.110: icmp_seq=9 ttl=42 time=326 ms
    64 bytes from 54.206.1.110: icmp_seq=10 ttl=42 time=300 ms
    
    --- 54.206.1.110 ping statistics ---
    10 packets transmitted, 10 received, 0% packet loss, time 9010ms
    rtt min/avg/max/mdev = 300.185/318.765/329.087/9.924 ms

结论

从 PING 值上看,Digital Ocean 位于新加坡的节点是最低的,而且文件的上传、下载速度均有不错的速度。
所以如果你的网站的主要客户是在国内的话,Digital Ocean 位于新加坡的主机是个不错的选择。如果你也要申请 Digital Ocean 的主机的,不妨点击这个带有尾巴的链接哦 🙂

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注