跟AI学了一招 最快判断vps的带宽

ele 2026-08-02 12:14 1

复制下结果 我还不知道原理 这甚至不用选测试点

依赖python3


curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -


Retrieving speedtest.net configuration...
<stdin>:960: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Testing from Bradler & Krantz & Co. KG (80.x.x.x)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Zzoomm Plc (Slough) [514.58 km]: 17.949 ms
Testing download speed................................................................................
Download: 2075.64 Mbit/s
Testing upload speed......................................................................................................
Upload: 877.17 Mbit/s
最新回复 (9)
  • honeok 08-02 12:16
    1

    默认就近的 ^-^

  • 欧美山寨 08-02 12:18
    2

    学到,,收藏。

  • adang 08-02 12:18
    3

    bd

  • 流川 08-02 12:19
    4

    收藏了

  • 神超 08-02 12:22
    5

    啥玩意?

  • xshell 08-02 12:22
    6

    这不就是speedtest官方的py测试脚本吗?

  • fetesbad-1 08-02 12:25
    7

    就是命令行版speedtest,脚本自己选一个延迟最低的服务器

  • cn1831 08-02 12:38
    8

    简洁明快,感谢分享 ^-^

  • hotsnow 08-02 12:39
    9

    @xshell #6 发布于2026/8/2 12:22:27

    这不就是speedtest官方的py测试脚本吗?


    对啊 ^-^

* 帖子来源NodeSeek
返回