mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
137 字
1 分钟
测试上下传网速
2024-06-01
无标签

Speedtest 是一个旧宠。它用 Python 实现,并打包在 Apt 中,也可用 pip 安装。你可以将它作为命令行工具或在 Python 脚本中使用。

使用以下命令安装:

sudo apt install speedtest-cli
sudo yum install speedtest-cli

或者

sudo pip3 install speedtest-cli

然后使用命令 speedtest 运行它:

$ speedtestRetrieving speedtest.net configuration...Testing from CenturyLink (65.128.194.58)...Retrieving speedtest.net server list...Selecting best server based on ping...Hosted by CenturyLink (Cambridge, UK) [20.49 km]: 31.566 msTesting download speed................................................................................Download: 68.62 Mbit/sTesting upload speed......................................................................................................Upload: 10.93 Mbit/s

它给你提供了互联网上传和下载的网速。它快速而且可脚本调用,因此你可以定期运行它,并将输出保存到文件或数据库中,以记录一段时间内的网络速度。

分享

如果这篇文章对你有帮助,欢迎分享给更多人!

测试上下传网速
https://6wd.cn/posts/speedtest-up-down-bandwidth/
作者
技术宅拯救世界!
发布于
2024-06-01
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

目录