Skip to content

starudream/clash-speedtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clash Speedtest

golang release license

Usage

> 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

    默认使用 http://127.0.0.1:9090

  • --clash-proxy

    通常为 http://127.0.0.1:7890
    通过 clash-addrip + 接口 /configs 获取 Port(http)SocksPort(socks5)MixedPort(http)
    如果配置了 authentication 需要手动指定 --clash-secret http://user:pass@127.0.0.1:7890

  • --download -d

    选择测试下载速度的方式,目前支持 cloudflare speedtest fast

  • --size -r

    指定下载方式每个线程的下载大小

  • --threads -t

    指定下载方式的线程数,会同时下载多个文件,每个线程会消耗大约 2MB 流量

  • includes -i

    包含的代理名称,满足其一即包含
    如果有多个,可以使用多个 -i 参数,或者使用 , 分隔,如果有 |,需要使用 \| 转义或使用引号包裹

  • --excludes -e

    排除的代理名称,满足其一即排除

  • output -o

    输出文件路径,默认为当前二进制文件同目录下 output 文件夹

Example

clash-speedtest -i 'IEPL|2' -e Premium

test

  • CONN 连接时间
  • DOWN 下载速度 total_size / response_time

TraceInfo

Thanks