> clash-speedtest -h
Usage:
clash-speedtest [flags]
Flags:
--clash-addr string clash external controller address (default "http://127.0.0.1:9090")
--clash-proxy string clash proxy url, http or socks5
--clash-secret string clash external controller secret
-y, --confirm confirm to start speedtest
-d, --download string download type: cloudflare, speedtest, fast (default "cloudflare")
-e, --excludes strings exclude proxy names, after filter by include
-h, --help help for clash-speedtest
-i, --includes strings include proxy names
-o, --output string output file path (default "output")
-r, --size uint16 download size for each thread (default 20)
-t, --threads uint16 download threads for each type, each thread will took 2MB traffic (default 3)
-v, --version version for clash-speedtest
-
--clash-addr -
--clash-proxy通常为 http://127.0.0.1:7890
通过clash-addr的ip+ 接口/configs获取Port(http)或SocksPort(socks5)或MixedPort(http)
如果配置了authentication需要手动指定--clash-secret http://user:pass@127.0.0.1:7890 -
--download-d选择测试下载速度的方式,目前支持
cloudflarespeedtestfastcloudflarehttps://speed.cloudflare.comspeedtesthttps://www.speedtest.netfasthttps://fast.com
-
--size-r指定下载方式每个线程的下载大小
cloudflarefast单位为 MBspeedtest参考 https://github.com/starudream/clash-speedtest/blob/v3/api/speedtest/download.go
-
--threads-t指定下载方式的线程数,会同时下载多个文件,每个线程会消耗大约 2MB 流量
-
includes-i包含的代理名称,满足其一即包含
如果有多个,可以使用多个-i参数,或者使用,分隔,如果有|,需要使用\|转义或使用引号包裹 -
--excludes-e排除的代理名称,满足其一即排除
-
output-o输出文件路径,默认为当前二进制文件同目录下
output文件夹
clash-speedtest -i 'IEPL|2' -e PremiumCONN连接时间DOWN下载速度total_size / response_time

