{"id":21306941,"url":"https://github.com/oneclickvirt/speedtest","last_synced_at":"2025-04-14T19:11:41.752Z","repository":{"id":246521031,"uuid":"820879910","full_name":"oneclickvirt/speedtest","owner":"oneclickvirt","description":"就近节点测速模块","archived":false,"fork":false,"pushed_at":"2025-03-08T14:26:28.000Z","size":52,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-28T07:34:15.867Z","etag":null,"topics":["goecs"],"latest_commit_sha":null,"homepage":"https://github.com/oneclickvirt/ecs","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/oneclickvirt.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":"2024-06-27T11:11:18.000Z","updated_at":"2025-03-18T13:11:56.000Z","dependencies_parsed_at":"2024-06-28T13:07:15.948Z","dependency_job_id":"68f5c8ca-c595-40f5-8bde-d9e924a31a09","html_url":"https://github.com/oneclickvirt/speedtest","commit_stats":null,"previous_names":["oneclickvirt/speedtest"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fspeedtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fspeedtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fspeedtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fspeedtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneclickvirt","download_url":"https://codeload.github.com/oneclickvirt/speedtest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943457,"owners_count":21186958,"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":["goecs"],"created_at":"2024-11-21T16:29:02.088Z","updated_at":"2025-04-14T19:11:41.746Z","avatar_url":"https://github.com/oneclickvirt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# speedtest\n\n[![Hits](https://hits.spiritlhl.net/speedtest.svg?action=hit\u0026title=Hits\u0026title_bg=%23555555\u0026count_bg=%230eecf8\u0026edge_flat=false)](https://hits.spiritlhl.net)\n\n[![Build and Release](https://github.com/oneclickvirt/speedtest/actions/workflows/main.yaml/badge.svg)](https://github.com/oneclickvirt/speedtest/actions/workflows/main.yaml)\n\n就近节点测速模块\n\n## 说明\n\n- [x] 基于[speedtest.net-爬虫](https://github.com/spiritLHLS/speedtest.net-CN-ID)、[speedtest.cn-爬虫](https://github.com/spiritLHLS/speedtest.cn-CN-ID)的数据\n- [x] 基于[speedtest-go](https://github.com/showwin/speedtest-go)二次开发，go原生实现就近测速无需使用shell命令\n- [x] 主体逻辑借鉴了[ecsspeed](https://github.com/spiritLHLS/ecsspeed)\n- [x] 使用shell命令使用```speedtest```进行测速\n\n## TODO\n\n- [ ] 添加对泰尔测速的支持\n\n## 下载speedtest或speedtest-go\n\n目前默认安装官方的speedtest包\n\n```\ncurl https://raw.githubusercontent.com/oneclickvirt/speedtest/main/dspt.sh -sSf | bash\n```\n\n或\n\n```\ncurl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/speedtest/main/dspt.sh -sSf | bash\n```\n\n## 使用\n\n下载及安装\n\n```\ncurl https://raw.githubusercontent.com/oneclickvirt/speedtest/main/spt_install.sh -sSf | bash\n```\n\n或\n\n```\ncurl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/speedtest/main/spt_install.sh -sSf | bash\n```\n\n使用\n\n```\nspt\n```\n\n或\n\n```\n./spt\n```\n\n进行测试\n\n无环境依赖，理论上适配所有系统和主流架构，更多架构请查看 https://github.com/oneclickvirt/speedtest/releases/tag/output\n\n```\nUsage: spt [options]\n  -e    Enable logging\n  -h    Show help information\n  -l string\n        Language parameter (options: en, zh) (default \"zh\")\n  -m string\n        Test Method parameter (options: origin, speedtest, speedtest-go) (default \"speedtest\")\n  -nearby\n        Test only nearby servers\n  -num int\n        Number of test servers, default -1 not to limit (default -1)\n  -opt string\n        Operator parameter (options: cmcc, cu, ct, sg, tw, jp, hk, global) (default \"global\")\n  -pf string\n        Platform parameter (options: net, cn) (default \"net\")\n  -s    Show head (default true)\n  -v    Show version information\n```\n\n## 卸载\n\n```\nrm -rf /root/spt\nrm -rf /usr/bin/spt\n```\n\n## 在Golang中使用\n\n```\ngo get github.com/oneclickvirt/speedtest@latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fspeedtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneclickvirt%2Fspeedtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fspeedtest/lists"}