1.安装(环境CentOS7)

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

2.测试

  1. # ./tespeed.py
  2. Getting ready. Use parameter -h or --help to see available features.
  3. Loading speedtest configuration...
  4. IP: 222.128.***.***; Lat: 39.928900; Lon: 116.388300; ISP: China Unicom Beijing
  5. Loading server list...
  6. Looking for closest and best server...
  7. Testing latency...
  8. 264 ms latency for http://www2.unicomtest.com/speedtest/ (Beijing Unicom, Beijing, China) [0.83 km]
  9. 6 ms latency for http://125.35.54.2/speedtest/ (Beijing Fiber City, Beijing, China) [0.83 km]
  10. 262 ms latency for http://bj3.unicomtest.com/speedtest/ (Beijing Broadband Network, Beijing, China) [0.83 km]
  11. 320 ms latency for http://st1.bjtelecom.net/speedtest/ (Beijing Telecom, Beijing, China) [0.83 km]
  12. Download size: 1.96 MiB; Downloaded in 0.03 s
  13. Download speed: 59.23 Mbit/s
  14. Download size: 1.96 MiB; Downloaded in 0.04 s
  15. Download speed: 53.35 Mbit/s
  16. Download size: 8.09 MiB; Downloaded in 0.09 s
  17. Download speed: 90.70 Mbit/s
  18. Download size: 8.09 MiB; Downloaded in 0.09 s
  19. Download speed: 90.47 Mbit/s
  20. Download size: 17.89 MiB; Downloaded in 0.20 s
  21. Download speed: 91.72 Mbit/s
  22. Download size: 17.89 MiB; Downloaded in 0.19 s
  23. Download speed: 92.02 Mbit/s
  24. Download size: 31.78 MiB; Downloaded in 0.34 s
  25. Download speed: 92.99 Mbit/s
  26. Download size: 71.49 MiB; Downloaded in 0.78 s
  27. Download speed: 91.27 Mbit/s
  28. Download size: 126.52 MiB; Downloaded in 1.71 s
  29. Download speed: 73.91 Mbit/s
  30. Download size: 198.53 MiB; Downloaded in 3.26 s
  31. Download speed: 60.94 Mbit/s
  32. Download size: 285.07 MiB; Downloaded in 4.46 s
  33. Download speed: 63.89 Mbit/s
  34. Download size: 776.39 MiB; Downloaded in 12.43 s
  35. Download speed: 62.45 Mbit/s
  36. Upload size: 2.10 MiB; Uploaded in 0.05 s
  37. Upload speed: 43.10 Mbit/s
  38. Upload size: 2.10 MiB; Uploaded in 0.06 s
  39. Upload speed: 37.35 Mbit/s
  40. Upload size: 8.39 MiB; Uploaded in 1.11 s
  41. Upload speed: 7.57 Mbit/s
  42. Upload size: 8.39 MiB; Uploaded in 1.53 s
  43. Upload speed: 5.50 Mbit/s
  44. Upload size: 16.78 MiB; Uploaded in 3.36 s
  45. Upload speed: 5.00 Mbit/s
  46. Upload size: 16.78 MiB; Uploaded in 3.15 s
  47. Upload speed: 5.32 Mbit/s
  48. Upload size: 33.55 MiB; Uploaded in 6.56 s
  49. 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/

tespeed-测试网速的Python工具的更多相关文章

  1. [转]使用Linux命令行测试网速

    装speedtest-cli speedtest-cli是一个用Python编写的轻量级Linux命令行工具,在Python2.4至3.4版本下均可运行.它基于Speedtest.net的基础架构来测 ...

  2. 使用Linux命令行测试网速

    安装speedtest speedtest是一个用Python编写的轻量级Linux命令行工具,在Python2.4至3.4版本下均可运行.它基于Speedtest.net的基础架构来测量网络的上/下 ...

  3. 使用Linux命令行测试网速-----speedtest-cli

    https://github.com/sivel/speedtest-cli 当发现上网速度变慢时,人们通常会先首先测试自己的电脑到网络服务提供商(通常被称为“最后一公里”)的网络连接速度.在可用于测 ...

  4. Linux命令行测试网速speedtest.net

    Linux命令行测试网速speedtest.net 当发现上网速度变慢时,人们通常会先首先测试自己的电脑到网络服务提供商(通常被称为"最后一公里")的网络连接速度.在可用于测试宽带 ...

  5. Linux 测试网速

    Linux 测试网速 1.直接wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip 一个10M的文件, ...

  6. 测试网站页面网速的Python脚本

    一.测试网站页面网速脚本 [root@salt ~]# cat check_url.py #!/usr/bin/python # coding: UTF-8 import StringIO,pycur ...

  7. Linux下使用Speedtest测试网速

    导读 Speedtest是用来测试网络性能的开源软件,在Linux下面安装Speedtest可以用来测试网络出口的上传和下载速度,帮助排查网络方面导致的故障. Speedtest介绍 由于公司几个项目 ...

  8. Linux 使用 Speedtest 测试网速

    Speedtest的linux客户端是用python写的一个安装包 安装python包管理器pip yum -y install python-pip 如果提示No package python-pi ...

  9. Linux下如何测试网速

    本文链接:https://blog.csdn.net/Beyond_F4/article/details/80497118在Linux下如何测量下载和上传的速度? 这里用到一个Python工具spee ...

随机推荐

  1. Python是编译运行的

    虽然Python被说成是一种解释型语言,但是实际上,Python源程序要先经过编译,然后才能运行. 与Java语言类似,Python源程序编译之后得到的是字节码,交由Python虚拟机来运行. 关于这 ...

  2. linux 中 chmod/chown/cngrp的用法与区别

      1.chgrp(转变文件所属用户组) chgrp 用户组 文件名 .若是整个目次下的都改,则加-R参数用于递归. 如:chgrp -R user smb.conf 2.chown(转变文件拥有者) ...

  3. Container ViewController初探1

    今天调试程序遇到个问题,iOS7下在弹出Modal的子界面时,弹出层次不对,键盘和界面被分割在了Window的两侧,导致显示异常Presenting view controllers on detac ...

  4. name值与id值在Js获取元素时的区别

    1.适用范围 除base.head.html.script.meta.title标签外,id都可以用:name只适用于select.form.frame.iframe.img.a.input等中. H ...

  5. smartUpload组件文件上传

    public class SmartUploadServlet extends HttpServlet { public void doGet(HttpServletRequest request, ...

  6. HDU 5234 Happy birthday --- 三维01背包

    HDU 5234 题目大意:给定n,m,k,以及n*m(n行m列)个数,k为背包容量,从(1,1)开始只能往下走或往右走,求到达(m,n)时能获得的最大价值 解题思路:dp[i][j][k]表示在位置 ...

  7. Hive 复习

    hive分为CLI(command line)(用的比较多) JDBC/ODBC-ThriftServer hiveServer(hive -service hiveserver),JDBC访问,一个 ...

  8. Python学习(3)——if语句

    虽然在之前接触过C.C++.Java等,但是还是觉得Python写出来的好看o(≧v≦)o~,简洁明了! score = raw_input("score:") score=int ...

  9. EXT2 文件系统

    转自:http://www.cnblogs.com/ggjucheng/archive/2012/08/22/2651641.html#ext2_filesystem 认识ext文件系统 硬盘组成与分 ...

  10. (转)A Beginner's Guide To Understanding Convolutional Neural Networks Part 2

    Adit Deshpande CS Undergrad at UCLA ('19) Blog About A Beginner's Guide To Understanding Convolution ...