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/

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. (实用篇)php精确的统计在线人数的方法

    这是一个非常精确的,通过php实现统计在线人数的方法,想知道怎么实现的请耐心阅读. <?php $filename='online.txt';//数据文件 $cookiename='VGOTCN ...

  2. iOS学习笔记---oc语言第五天

    字典,数组 ,集排序 一.字典类 存储以下数据 name:张三; sex:男;age:18 film:风暴; playcount:10000次;price:60元 字典类用于保存具有映射关系(key- ...

  3. Spring AOP 实现功能权限校验功能

    版权声明:本文为博主原创文章,未经博主允许不得转载.   目录(?)[-] 使用拦截器实现未登录时跳转到登录界面的功能 1 拦截器SecurityInterceptor 2spring-mvcxml拦 ...

  4. leetcode 113 Path Sum II ----- java

    Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given su ...

  5. JavaWeb学习记录(二十五)——权限管理总结

    一.面向对象思想简化数据库操作 public List<Role> getObjectsByIds(List<AdminRole> adminRoles) {        L ...

  6. Codeforces Round #143 (Div. 2)

    A. Team 模拟. B. Magic, Wizardry and Wonders 可以发现\[d=a_1-a_2+a_3-a_4+\cdots\] 那么有\(odd=\lfloor \frac{n ...

  7. ExtJS4.2.1自定义主题(theme)样式详解

    (基于Ext JS 4.2.1版本) UI组件 学习ExtJS就是学习组件的使用.ExtJS4对框架进行了重构,其中最重要的就是形成了一个结构及层次分明的组件体系,由这些组件形成了Ext的控件. Ex ...

  8. Google Java Style Guide

    https://google.github.io/styleguide/javaguide.html   Table of Contents 1 Introduction 1.1 Terminolog ...

  9. rman的使用

    下面是两种连接方式[oracle@oracle3A ~]$ rman target/ Recovery Manager: Release 11.2.0.1.0 - Production on Mon ...

  10. maxscript,#号和$号

    一,#号: 1,数组 #(123, "hi") 2,系统目录 fileName = getDir #scripts + "\\xxx.ms" 二,$号 节点路径 ...