An open API service indexing awesome lists of open source software.

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值测试模块

Awesome Lists containing this project

README

          

# pingtest

[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fpingtest&count_bg=%232EFFF8&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](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
```