Compare commits

...

11 Commits

Author SHA1 Message Date
Jensfrank
31a51673e6
Update version.sh 2024-09-22 00:03:59 +08:00
Jensfrank
a1a95c4dc7
Update Nlbench.sh 2024-09-22 00:03:31 +08:00
Jensfrank
e6224fd115
Update Nlbench.sh 2024-09-22 00:01:18 +08:00
Jensfrank
ca784f8316
Update Nlbench.sh 2024-09-21 23:57:26 +08:00
Jensfrank
e81ccd304a
Update Nlbench.sh 2024-09-21 23:49:45 +08:00
Jensfrank
386aa724a3
Update version.sh 2024-09-21 23:25:56 +08:00
Jensfrank
f305bf59c5
Update Nlbench.sh 2024-09-21 23:25:33 +08:00
Jensfrank
23af25e6cb
Update README.md 2024-09-21 22:32:24 +08:00
Jensfrank
7c4b8cf06d
Update README.md 2024-09-21 22:28:05 +08:00
Jensfrank
7d7e94a3ed
Update README.md 2024-09-21 20:14:09 +08:00
Jensfrank
4b30567b4e
Update README.md 2024-09-21 19:14:39 +08:00
3 changed files with 31 additions and 1288 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# 定义版本 # 定义版本
CURRENT_VERSION="2024-09-08 v1.2.4" # 最新版本号 CURRENT_VERSION="2024-09-21 v1.2.6" # 最新版本号
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/"
@ -351,20 +351,10 @@ run_script() {
sed -i 's/\.\.\./\.\.\.\n/g' "$temp_file" sed -i 's/\.\.\./\.\.\.\n/g' "$temp_file"
sed -i '/\.\.\./d' "$temp_file" sed -i '/\.\.\./d' "$temp_file"
sed -i '/^\s*$/d' "$temp_file" sed -i '/^\s*$/d' "$temp_file"
cp "$temp_file" "${output_file}_yabs" cp "$temp_file" "${output_file}_yabs"
;;
# 融合怪
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质量 # IP质量
3) 2)
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"
@ -375,7 +365,7 @@ run_script() {
cp "$temp_file" "${output_file}_ip_quality" cp "$temp_file" "${output_file}_ip_quality"
;; ;;
# 流媒体解锁 # 流媒体解锁
4) 3)
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"
@ -386,14 +376,14 @@ run_script() {
cp "$temp_file" "${output_file}_streaming" cp "$temp_file" "${output_file}_streaming"
;; ;;
# 响应测试 # 响应测试
5) 4)
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"
;; ;;
# 多线程测速 # 多线程测速
6) 5)
echo -e "运行${YELLOW}多线程测速...${NC}" echo -e "运行${YELLOW}多线程测速...${NC}"
if [ "$use_ipv6" = true ]; then if [ "$use_ipv6" = true ]; then
echo "使用IPv6测试选项" echo "使用IPv6测试选项"
@ -410,14 +400,14 @@ run_script() {
cp "$temp_file" "${output_file}_multi_thread" cp "$temp_file" "${output_file}_multi_thread"
;; ;;
# 单线程测速 # 单线程测速
7) 6)
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 bash.icu/speedtest) <<< "17" | tee "$temp_file" bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh) <<< "17" | tee "$temp_file"
else else
echo "使用IPv4测试选项" echo "使用IPv4测试选项"
bash <(curl -sL bash.icu/speedtest) <<< "2" | tee "$temp_file" bash <(curl -sL https://raw.githubusercontent.com/i-abc/Speedtest/main/speedtest.sh) <<< "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"
@ -427,7 +417,7 @@ run_script() {
cp "$temp_file" "${output_file}_single_thread" cp "$temp_file" "${output_file}_single_thread"
;; ;;
# 回程路由 # 回程路由
8) 7)
echo -e "运行${YELLOW}回程路由测试...${NC}" echo -e "运行${YELLOW}回程路由测试...${NC}"
if [ "$use_ipv6" = true ]; then if [ "$use_ipv6" = true ]; then
echo "使用IPv6测试选项" echo "使用IPv6测试选项"
@ -448,8 +438,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" "fusion" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "route") local file_suffixes=("yabs" "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 编码设置
@ -516,21 +506,20 @@ 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. 融合怪" echo "2. IP质量"
echo "3. IP质量" echo "3. 流媒体解锁"
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-8])(,(0|10|[1-8]))*$ ]]; then if [[ "$script_numbers" =~ ^(0|10|[1-7])(,(0|10|[1-7]))*$ ]]; then
break break
else else
echo -e "${RED}无效输入请输入0-9之间的数字,用英文逗号分隔。${NC}" echo -e "${RED}无效输入请输入0-7之间的数字,用英文逗号分隔。${NC}"
fi fi
done done
@ -550,7 +539,7 @@ run_selected_scripts() {
# 主菜单 # 主菜单
main_menu() { main_menu() {
echo -e "${GREEN}测试项目:${NC}Yabs融合怪,IP质量流媒体解锁响应测试多线程测试单线程测试回程路由。" echo -e "${GREEN}测试项目:${NC}YabsIP质量流媒体解锁响应测试多线程测试单线程测试回程路由。"
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,3 +21,5 @@
# 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 - 删除融合怪。