{"id":15282633,"url":"https://github.com/starudream/clash-speedtest","last_synced_at":"2025-04-15T04:34:04.923Z","repository":{"id":37825159,"uuid":"297588627","full_name":"starudream/clash-speedtest","owner":"starudream","description":"clash speedtest","archived":false,"fork":false,"pushed_at":"2025-03-23T07:18:50.000Z","size":456,"stargazers_count":36,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"v3","last_synced_at":"2025-03-30T11:34:23.490Z","etag":null,"topics":["clash","cloudflare","fast","mihomo","speedtest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starudream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T08:44:03.000Z","updated_at":"2025-03-23T07:12:01.000Z","dependencies_parsed_at":"2024-01-30T09:32:08.102Z","dependency_job_id":"7e8c5516-79e0-454c-9e4f-0ff609935835","html_url":"https://github.com/starudream/clash-speedtest","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"df7436dbf4c0257108d59c49c7c7e97be1f10c7e"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starudream%2Fclash-speedtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starudream%2Fclash-speedtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starudream%2Fclash-speedtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starudream%2Fclash-speedtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starudream","download_url":"https://codeload.github.com/starudream/clash-speedtest/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249007048,"owners_count":21197396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clash","cloudflare","fast","mihomo","speedtest"],"created_at":"2024-09-30T14:32:06.919Z","updated_at":"2025-04-15T04:34:04.905Z","avatar_url":"https://github.com/starudream.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clash Speedtest\n\n![golang](https://img.shields.io/github/actions/workflow/status/starudream/clash-speedtest/golang.yml?style=for-the-badge\u0026logo=github\u0026label=golang)\n![release](https://img.shields.io/github/v/release/starudream/clash-speedtest?style=for-the-badge)\n![license](https://img.shields.io/github/license/starudream/clash-speedtest?style=for-the-badge)\n\n## Usage\n\n```\n\u003e clash-speedtest -h\nUsage:\n  clash-speedtest [flags]\n\nFlags:\n      --clash-addr string     clash external controller address (default \"http://127.0.0.1:9090\")\n      --clash-proxy string    clash proxy url, http or socks5\n      --clash-secret string   clash external controller secret\n  -y, --confirm               confirm to start speedtest\n  -d, --download string       download type: cloudflare, speedtest, fast (default \"cloudflare\")\n  -e, --excludes strings      exclude proxy names, after filter by include\n  -h, --help                  help for clash-speedtest\n  -i, --includes strings      include proxy names\n  -o, --output string         output file path (default \"output\")\n  -r, --size uint16           download size for each thread (default 20)\n  -t, --threads uint16        download threads for each type, each thread will took 2MB traffic (default 3)\n  -v, --version               version for clash-speedtest\n```\n\n- `--clash-addr`\n  \u003e 默认使用 http://127.0.0.1:9090\n\n- `--clash-proxy`\n  \u003e 通常为 http://127.0.0.1:7890  \n  \u003e 通过 `clash-addr` 的 `ip` + 接口 `/configs` 获取 `Port(http)` 或 `SocksPort(socks5)` 或 `MixedPort(http)`  \n  \u003e 如果配置了 `authentication` 需要手动指定 `--clash-secret http://user:pass@127.0.0.1:7890`\n\n- `--download` `-d`\n  \u003e 选择测试下载速度的方式，目前支持 `cloudflare` `speedtest` `fast`  \n  \u003e - `cloudflare` https://speed.cloudflare.com\n  \u003e - `speedtest` https://www.speedtest.net\n  \u003e - `fast` https://fast.com\n\n- `--size` `-r`\n  \u003e 指定下载方式每个线程的下载大小\n  \u003e - `cloudflare` `fast` 单位为 MB\n  \u003e - `speedtest` 参考 https://github.com/starudream/clash-speedtest/blob/v3/api/speedtest/download.go\n\n- `--threads` `-t`\n  \u003e 指定下载方式的线程数，会同时下载多个文件，每个线程会消耗大约 2MB 流量\n\n- `includes` `-i`\n  \u003e 包含的代理名称，满足其一即包含  \n  \u003e 如果有多个，可以使用多个 `-i` 参数，或者使用 `,` 分隔，如果有 `|`，需要使用 `\\|` 转义或使用引号包裹\n\n- `--excludes` `-e`\n  \u003e 排除的代理名称，满足其一即排除\n\n- `output` `-o`\n  \u003e 输出文件路径，默认为当前二进制文件同目录下 `output` 文件夹\n\n### Example\n\n```shell\nclash-speedtest -i 'IEPL|2' -e Premium\n```\n\n![test](./docs/test.png)\n\n- `CONN` 连接时间\n- `DOWN` 下载速度 `total_size / response_time`\n\n![TraceInfo](./docs/vearne.cc-39953-trace-info.png)\n\n## Thanks\n\n- [cloudflare speed](https://speed.cloudflare.com)\n- [speedtest.net](https://www.speedtest.net)\n- [fast.com](https://fast.com)\n- [go-resty trace info](https://vearne.cc/archives/39953)\n\n## [License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarudream%2Fclash-speedtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarudream%2Fclash-speedtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarudream%2Fclash-speedtest/lists"}