使用Speedtest CLI测试你的网速(speed test网速测速结果怎么看)
在本文中我们将使用一个名为speedtest-cli的命令行工具来测试网速。它是用Python语言编写的工具,系统通过向speedtest.net网站上传和下载数据来测试带宽。
环境
Centos7
安装speedtest-cli工具
在安装speedtest-cli之前,我们需要安装先安装python3-pip包管理器,然后通过pip安装speedtest-cli工具。
[root@localhost ~]# yum -y install python3-pip
安装成功之后,我们可以用pip3命令安装speedtest-cli:
[root@localhost ~]# pip3 install speedtest-cli
通过speedtest cli检测网络
[root@localhost ~]# speedtest-cli
Retrieving speedtest.net configuration...
Testing from China Telecom (*.*.*.*)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Telecom JiangSu 5G (Lianyungang) [196.15 km]: 31.424 ms
Testing download speed................................................................................
Download: 47.64 Mbit/s
Testing upload speed......................................................................................................
Upload: 94.56 Mbit/s
总结
在本文中我们将使用一个名为speedtest-cli的命令行工具来测试网速。它是用Python语言编写的工具,系统通过向speedtest.net网站上传和下载数据来测试带宽。
相关文章
- Java接口安全:SpringBoot防护XSS/SQL/重放攻击
- Springboot之登录模块探索(含Token,验证码,网络安全等知识)
- JAVA装饰器模式适用场景,优缺点是什么你知道吗这篇文章彻底讲透
- TestNG 中使用 Guice 来进行依赖注入
- 测试开发之自动化篇-Appium脚本开发
- 深入探索FastAPI单元测试:使用TestClient轻松测试你的API
- python单元测试框架之unittest和pytest的区别
- 要供暖了,壁挂炉怎么调?注意这四点,省气还少出问题
- 掌握Python中的单元测试:详尽指南与unittest
- 《shell》算术表达式-test测试语句-if流程语句