https://github.com/oneclickvirt/pingtest
三网ICMP的PING值测试模块
https://github.com/oneclickvirt/pingtest
goecs icmp ping pingtest
Last synced: about 1 year ago
JSON representation
三网ICMP的PING值测试模块
- Host: GitHub
- URL: https://github.com/oneclickvirt/pingtest
- Owner: oneclickvirt
- License: apache-2.0
- Created: 2024-07-03T01:20:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T01:50:25.000Z (over 1 year ago)
- Last Synced: 2025-03-08T02:25:56.375Z (over 1 year ago)
- Topics: goecs, icmp, ping, pingtest
- Language: Go
- Homepage: https://github.com/oneclickvirt/ecs
- Size: 1.55 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pingtest
[](https://www.spiritlhl.net)
三网ICMP的PING值测试模块
## 说明
- [x] 基于[speedtest.net-爬虫](https://github.com/spiritLHLS/speedtest.net-CN-ID)、[speedtest.cn-爬虫](https://github.com/spiritLHLS/speedtest.cn-CN-ID)的数据
- [x] 调用```ping```测试
- [x] 主体逻辑借鉴了[ecsspeed](https://github.com/spiritLHLS/ecsspeed)
- [x] 使用官方的```pro-bing```包进行测试
## 使用
下载及安装
```
curl https://raw.githubusercontent.com/oneclickvirt/pingtest/main/pt_install.sh -sSf | bash
```
或
```
curl https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/pingtest/main/pt_install.sh -sSf | bash
```
使用
```
pt
```
或
```
./pt
```
进行测试
无环境依赖,理论上适配所有系统和主流架构,更多架构请查看 https://github.com/oneclickvirt/pingtest/releases/tag/output
```
Usage: pt [options]
-h Show help information
-log
Enable logging
-v Show version
```
## 卸载
```
rm -rf /root/pt
rm -rf /usr/bin/pt
```
## 在Golang中使用
```
go get github.com/oneclickvirt/pingtest@latest
```