Compare commits

..

No commits in common. "31a51673e60f4fa1597f84709ed49eb7c75f8907" and "7fd57ae6e55256ba3bfabe46f8e62c1a8dd0fd82" have entirely different histories.

3 changed files with 1288 additions and 31 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# 定义版本 # 定义版本
CURRENT_VERSION="2024-09-21 v1.2.6" # 最新版本号 CURRENT_VERSION="2024-09-08 v1.2.4" # 最新版本号
SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh" SCRIPT_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/Nlbench.sh"
VERSION_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh" VERSION_URL="https://raw.githubusercontent.com/everett7623/nodeloc_vps_test/main/version.sh"
CLOUD_SERVICE_BASE="https://bench.nodeloc.cc/" CLOUD_SERVICE_BASE="https://bench.nodeloc.cc/"
@ -353,8 +353,18 @@ run_script() {
sed -i '/^\s*$/d' "$temp_file" sed -i '/^\s*$/d' "$temp_file"
cp "$temp_file" "${output_file}_yabs" cp "$temp_file" "${output_file}_yabs"
;; ;;
# IP质量 # 融合怪
2) 2)
echo -e "运行${YELLOW}融合怪...${NC}"
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh -m 1 <<< "y" | tee "$temp_file"
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
sed -i 's/\.\.\.\.\.\./\.\.\.\.\.\.\n/g' "$temp_file"
sed -i '1,/\.\.\.\.\.\./d' "$temp_file"
sed -i -n '/--------------------- A Bench Script By spiritlhl ----------------------/,${s/^.*\(--------------------- A Bench Script By spiritlhl ----------------------\)/\1/;p}' "$temp_file"
cp "$temp_file" "${output_file}_fusion"
;;
# IP质量
3)
echo -e "运行${YELLOW}IP质量测试...${NC}" echo -e "运行${YELLOW}IP质量测试...${NC}"
echo y | bash <(curl -Ls IP.Check.Place) | tee "$temp_file" echo y | bash <(curl -Ls IP.Check.Place) | tee "$temp_file"
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
@ -365,7 +375,7 @@ run_script() {
cp "$temp_file" "${output_file}_ip_quality" cp "$temp_file" "${output_file}_ip_quality"
;; ;;
# 流媒体解锁 # 流媒体解锁
3) 4)
echo -e "运行${YELLOW}流媒体解锁测试...${NC}" echo -e "运行${YELLOW}流媒体解锁测试...${NC}"
local region=$(detect_region) local region=$(detect_region)
bash <(curl -L -s media.ispvps.com) <<< "$region" | tee "$temp_file" bash <(curl -L -s media.ispvps.com) <<< "$region" | tee "$temp_file"
@ -376,14 +386,14 @@ run_script() {
cp "$temp_file" "${output_file}_streaming" cp "$temp_file" "${output_file}_streaming"
;; ;;
# 响应测试 # 响应测试
4) 5)
echo -e "运行${YELLOW}响应测试...${NC}" echo -e "运行${YELLOW}响应测试...${NC}"
bash <(curl -sL https://nodebench.mereith.com/scripts/curltime.sh) | tee "$temp_file" bash <(curl -sL https://nodebench.mereith.com/scripts/curltime.sh) | tee "$temp_file"
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
cp "$temp_file" "${output_file}_response" cp "$temp_file" "${output_file}_response"
;; ;;
# 多线程测速 # 多线程测速
5) 6)
echo -e "运行${YELLOW}多线程测速...${NC}" echo -e "运行${YELLOW}多线程测速...${NC}"
if [ "$use_ipv6" = true ]; then if [ "$use_ipv6" = true ]; then
echo "使用IPv6测试选项" echo "使用IPv6测试选项"
@ -400,14 +410,14 @@ run_script() {
cp "$temp_file" "${output_file}_multi_thread" cp "$temp_file" "${output_file}_multi_thread"
;; ;;
# 单线程测速 # 单线程测速
6) 7)
echo -e "运行${YELLOW}单线程测速...${NC}" echo -e "运行${YELLOW}单线程测速...${NC}"
if [ "$use_ipv6" = true ]; then if [ "$use_ipv6" = true ]; then
echo "使用IPv6测试选项" echo "使用IPv6测试选项"
bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh) <<< "17" | tee "$temp_file" bash <(curl -sL bash.icu/speedtest) <<< "17" | tee "$temp_file"
else else
echo "使用IPv4测试选项" echo "使用IPv4测试选项"
bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh) <<< "2" | tee "$temp_file" bash <(curl -sL bash.icu/speedtest) <<< "2" | tee "$temp_file"
fi fi
sed -r -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" sed -r -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
sed -i -r '1,/序号\:/d' "$temp_file" sed -i -r '1,/序号\:/d' "$temp_file"
@ -417,7 +427,7 @@ run_script() {
cp "$temp_file" "${output_file}_single_thread" cp "$temp_file" "${output_file}_single_thread"
;; ;;
# 回程路由 # 回程路由
7) 8)
echo -e "运行${YELLOW}回程路由测试...${NC}" echo -e "运行${YELLOW}回程路由测试...${NC}"
if [ "$use_ipv6" = true ]; then if [ "$use_ipv6" = true ]; then
echo "使用IPv6测试选项" echo "使用IPv6测试选项"
@ -438,8 +448,8 @@ run_script() {
generate_markdown_output() { generate_markdown_output() {
local base_output_file=$1 local base_output_file=$1
local temp_output_file="${base_output_file}.md" local temp_output_file="${base_output_file}.md"
local sections=("YABS" "IP质量" "流媒体" "响应" "多线程测速" "单线程测速" "回程路由") local sections=("YABS" "融合怪" "IP质量" "流媒体" "响应" "多线程测速" "单线程测速" "回程路由")
local file_suffixes=("yabs" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "route") local file_suffixes=("yabs" "fusion" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "route")
local empty_tabs=("去程路由" "Ping.pe" "哪吒 ICMP" "其他") local empty_tabs=("去程路由" "Ping.pe" "哪吒 ICMP" "其他")
# 修改这里,添加 UTF-8 编码设置 # 修改这里,添加 UTF-8 编码设置
@ -506,20 +516,21 @@ run_selected_scripts() {
local base_output_file="NLvps_results_$(date +%Y%m%d_%H%M%S)" local base_output_file="NLvps_results_$(date +%Y%m%d_%H%M%S)"
echo -e "${YELLOW}Nodeloc VPS 自动测试脚本 $VERSION${NC}" echo -e "${YELLOW}Nodeloc VPS 自动测试脚本 $VERSION${NC}"
echo "1. Yabs" echo "1. Yabs"
echo "2. IP质量" echo "2. 融合怪"
echo "3. 流媒体解锁" echo "3. IP质量"
echo "4. 响应测试" echo "4. 流媒体解锁"
echo "5. 多线程测试" echo "5. 响应测试"
echo "6. 单线程测试" echo "6. 多线程测试"
echo "7. 回程路由" echo "7. 单线程测试"
echo "8. 回程路由"
echo "0. 返回" echo "0. 返回"
while true; do while true; do
read -p "请输入要执行的脚本编号用英文逗号分隔例如1,2,3):" script_numbers read -p "请输入要执行的脚本编号用英文逗号分隔例如1,2,3):" script_numbers
if [[ "$script_numbers" =~ ^(0|10|[1-7])(,(0|10|[1-7]))*$ ]]; then if [[ "$script_numbers" =~ ^(0|10|[1-8])(,(0|10|[1-8]))*$ ]]; then
break break
else else
echo -e "${RED}无效输入请输入0-7之间的数字,用英文逗号分隔。${NC}" echo -e "${RED}无效输入请输入0-9之间的数字,用英文逗号分隔。${NC}"
fi fi
done done
@ -539,7 +550,7 @@ run_selected_scripts() {
# 主菜单 # 主菜单
main_menu() { main_menu() {
echo -e "${GREEN}测试项目:${NC}YabsIP质量流媒体解锁响应测试多线程测试单线程测试回程路由。" echo -e "${GREEN}测试项目:${NC}Yabs融合怪,IP质量流媒体解锁响应测试多线程测试单线程测试回程路由。"
echo -e "${YELLOW}1. 执行所有测试脚本${NC}" echo -e "${YELLOW}1. 执行所有测试脚本${NC}"
echo -e "${YELLOW}2. 选择特定测试脚本${NC}" echo -e "${YELLOW}2. 选择特定测试脚本${NC}"
echo -e "${YELLOW}0. 退出${NC}" echo -e "${YELLOW}0. 退出${NC}"

1264
README.md

File diff suppressed because it is too large Load Diff

View File

@ -21,5 +21,3 @@
# 2024-09-07 v1.2.1 - 优化代码。 # 2024-09-07 v1.2.1 - 优化代码。
# 2024-09-07 v1.2.2 - 优化代码。 # 2024-09-07 v1.2.2 - 优化代码。
# 2024-09-08 v1.2.4 - 兼容新的接口。 # 2024-09-08 v1.2.4 - 兼容新的接口。
# 2024-09-21 v1.2.5 - 修改bug。
# 2024-09-21 v1.2.6 - 删除融合怪。