• tespeed-测试网速的Python工具


    1.安装(环境CentOS7)

    #pip install lxml
    #wget wget http://sourceforge.net/projects/socksipy/files/socksipy/SocksiPy%201.00/SocksiPy.zip
    #git clone https://github.com/Janhouse/tespeed.git
    #mv SocksiPy.zip tespeed/SocksiPy/
    #cd tespeed/SocksiPy/
    #unzip SocksiPy.zip
    #touch __init__.py
    

    2.测试

    # ./tespeed.py 
    Getting ready. Use parameter -h or --help to see available features.
    Loading speedtest configuration...
    IP: 222.128.***.***; Lat: 39.928900; Lon: 116.388300; ISP: China Unicom Beijing
    Loading server list...
    Looking for closest and best server...
    Testing latency...
    264 ms latency for http://www2.unicomtest.com/speedtest/ (Beijing Unicom, Beijing, China) [0.83 km]
    6 ms latency for http://125.35.54.2/speedtest/ (Beijing Fiber City, Beijing, China) [0.83 km]
    262 ms latency for http://bj3.unicomtest.com/speedtest/ (Beijing Broadband Network, Beijing, China) [0.83 km]
    320 ms latency for http://st1.bjtelecom.net/speedtest/ (Beijing Telecom, Beijing, China) [0.83 km]
    Download size: 1.96 MiB; Downloaded in 0.03 s                                              
    Download speed: 59.23 Mbit/s
    Download size: 1.96 MiB; Downloaded in 0.04 s                                              
    Download speed: 53.35 Mbit/s
    Download size: 8.09 MiB; Downloaded in 0.09 s                                              
    Download speed: 90.70 Mbit/s
    Download size: 8.09 MiB; Downloaded in 0.09 s                                              
    Download speed: 90.47 Mbit/s
    Download size: 17.89 MiB; Downloaded in 0.20 s                                             
    Download speed: 91.72 Mbit/s
    Download size: 17.89 MiB; Downloaded in 0.19 s                                             
    Download speed: 92.02 Mbit/s
    Download size: 31.78 MiB; Downloaded in 0.34 s                                             
    Download speed: 92.99 Mbit/s
    Download size: 71.49 MiB; Downloaded in 0.78 s                                             
    Download speed: 91.27 Mbit/s
    Download size: 126.52 MiB; Downloaded in 1.71 s                                            
    Download speed: 73.91 Mbit/s
    Download size: 198.53 MiB; Downloaded in 3.26 s                                            
    Download speed: 60.94 Mbit/s
    Download size: 285.07 MiB; Downloaded in 4.46 s                                            
    Download speed: 63.89 Mbit/s
    Download size: 776.39 MiB; Downloaded in 12.43 s                                           
    Download speed: 62.45 Mbit/s
    Upload size: 2.10 MiB; Uploaded in 0.05 s                                                  
    Upload speed: 43.10 Mbit/s
    Upload size: 2.10 MiB; Uploaded in 0.06 s                                                  
    Upload speed: 37.35 Mbit/s
    Upload size: 8.39 MiB; Uploaded in 1.11 s                                                  
    Upload speed: 7.57 Mbit/s
    Upload size: 8.39 MiB; Uploaded in 1.53 s                                                  
    Upload speed: 5.50 Mbit/s
    Upload size: 16.78 MiB; Uploaded in 3.36 s                                                 
    Upload speed: 5.00 Mbit/s
    Upload size: 16.78 MiB; Uploaded in 3.15 s                                                 
    Upload speed: 5.32 Mbit/s
    Upload size: 33.55 MiB; Uploaded in 6.56 s                                                 
    Upload speed: 5.11 Mbit/s
    

    Refer:

    https://github.com/Janhouse/tespeed

    http://www.open-open.com/lib/view/open1428475876229.html

    https://github.com/sivel/speedtest-cli

    http://www.linuxdiyf.com/linux/12561.html

    http://www.speedtest.net/

  • 相关阅读:
    随机产生字母a--z, A-Z 的任意组合
    如何获取HttpServletResponse里面的内容
    线上问题:如何定位解决CPU高占有率
    tomcat+apache 实现负载均衡之一:同一台电脑部署2个以上tomcat
    drozer与adb工具的安装与使用
    CVE-2012-0002(MS12-020)3389远程溢出漏洞
    VMware每次联网都需要还原默认设置解决办法
    Ubuntu设置右键打开终端
    Metasploits之Adobe阅读器漏洞
    Metasploits之ms10_018
  • 原文地址:https://www.cnblogs.com/oskb/p/5591097.html
Copyright © 2020-2023  润新知