Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

oneclickvirt/speedtest

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

speedtest

Hits

Build and Release

就近节点测速模块

说明

TODO

  • 添加对泰尔测速的支持

下载speedtest或speedtest-go

目前默认安装官方的speedtest包

curl https://raw.githubusercontent.com/oneclickvirt/speedtest/main/dspt.sh -sSf | bash

curl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/speedtest/main/dspt.sh -sSf | bash

使用

下载及安装

curl https://raw.githubusercontent.com/oneclickvirt/speedtest/main/spt_install.sh -sSf | bash

curl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/speedtest/main/spt_install.sh -sSf | bash

使用

spt

./spt

进行测试

无环境依赖,理论上适配所有系统和主流架构,更多架构请查看 https://github.com/oneclickvirt/speedtest/releases/tag/output

Usage: spt [options]
  -e    Enable logging
  -h    Show help information
  -l string
        Language parameter (options: en, zh) (default "zh")
  -m string
        Test Method parameter (options: origin, speedtest, speedtest-go) (default "speedtest")
  -nearby
        Test only nearby servers
  -num int
        Number of test servers, default -1 not to limit (default -1)
  -opt string
        Operator parameter (options: cmcc, cu, ct, sg, tw, jp, hk, global) (default "global")
  -pf string
        Platform parameter (options: net, cn) (default "net")
  -s    Show head (default true)
  -v    Show version information

卸载

rm -rf /root/spt
rm -rf /usr/bin/spt

在Golang中使用

go get github.com/oneclickvirt/speedtest@v0.0.12-20260521180111

About

就近节点测速模块

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.