mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-12-18 23:38:13 +08:00
4fe9cd21ef788e17ea5dd65b16b96bcb35ebdc34
ecs
融合怪测评脚本 - GO重构版本
Shell版本: https://github.com/spiritLHLS/ecs
功能
- 系统基础信息查询[自研basics、gostun]
- IP基础信息并发查询[自研basics]
- CPU测试[自研cputest支持sysbench、geekbench、winsat]
- 内存测试[自研memorytest支持sysbench、dd]
- 硬盘测试[自研disktest支持dd、fio、winsat]
- 御三家流媒体解锁信息并发查询[借鉴netflix-verify、VerifyDisneyPlus、TubeCheck二次开发至于CommonMediaTests]
- 常见流媒体测试并发查询[自研代码,逻辑借鉴RegionRestrictionCheck、MediaUnlockTest并自行修复错漏至于UnlockTests]
- IP质量/安全信息并发查询[自研,由于测试含密钥信息,故而私有化开发,但二进制文件编译至于securityCheck]
- 邮件端口测试[自研portchecker]
- 三网回程测试[借鉴zhanghanyun/backtrace二次开发至于oneclickvirt/backtrace]
- 三网路由测试[借鉴NTrace-core二次开发至于nt3]
- 测试网速[基于speedtest.net-爬虫、speedtest.cn-爬虫的数据,借鉴speedtest-go二次开发至于oneclickvirt/speedtest]
TODO
- 测试三网Ping值[借鉴ecsspeed的逻辑二次开发]
说明
开发中,勿要使用
下载脚本
curl -L https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && chmod +x goecs.sh
curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && chmod +x goecs.sh
安装环境
./goecs.sh env
安装goecs
./goecs.sh install
升级goecs
./goecs.sh upgrade
卸载goecs
./goecs.sh delete
Usage of goecs:
-backtrace windows
Enable/Disable backtrace test (in 'en' language or on windows it always false) (default true)
-basic
Enable/Disable basic test (default true)
-comm
Enable/Disable common media test (default true)
-cpu
Enable/Disable CPU test (default true)
-cpum string
Set CPU test method (supported: sysbench, geekbench, winsat) (default "sysbench")
-cput string
Set CPU test thread mode (supported: single, multi) (default "multi")
-disk
Enable/Disable disk test (default true)
-diskm string
Set disk test method (supported: fio, dd, winsat) (default "fio")
-diskmc
Enable/Disable multiple disk checks, e.g., -diskmc=false
-diskp string
Set disk test path, e.g., -diskp /root
-email
Enable/Disable email port test (default true)
-l string
Set language (supported: en, zh) (default "zh")
-log
Enable/Disable logging in the current path
-memory
Enable/Disable memory test (default true)
-memorym string
Set memory test method (supported: sysbench, dd, winsat) (default "dd")
-menu
Enable/Disable menu mode, disable example: -menu=false (default true)
-nt3 windows
Enable/Disable NT3 test (in 'en' language or on windows it always false) (default true)
-nt3loc string
Specify NT3 test location (supported: GZ, SH, BJ, CD for Guangzhou, Shanghai, Beijing, Chengdu) (default "GZ")
-nt3t string
Set NT3 test type (supported: both, ipv4, ipv6) (default "ipv4")
-security
Enable/Disable security test (default true)
-speed
Enable/Disable speed test (default true)
-spnum int
Set the number of servers per operator for speed test (default 2)
-ut
Enable/Disable unlock media test (default true)
-v Display version information
Languages
Go
75.1%
Shell
23.7%
Dockerfile
1.2%