使用 rust 编写,基于 tcp 测速,可以平替官方 cli 客户端。 比较不一样的地方: 1. 二进制文件体积小,仅 200KB 2. 默认单线程测速,可使用 -m 选项开启 4 线程或最高 256 线程测速 使用方法: wget https://bench.im/x/x86_64/speedtest-cli && chmod +x speedtest-cli # wget https://bench.im/x/aarch64/speedtest-cli && chmod +x speedtest-cli ./speedtest-cli复制代码 目前支持的参数如下: Usage: ./speedtest-cli [options] Options: -s, –server ID server id -a, –address HOST:PORT server address -m, –multi [THREADS] enable multi threads -6, –ipv6 force IPv6 -u, –upload run upload test -d, –download run download test -p, –ping run ping test -r, –raw print raw output -h, –help print this help menu复制代码
没有回复内容