mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-14 03:55:19 +00:00
Update Nlbench.sh
This commit is contained in:
parent
4869d27e1d
commit
d723a20c17
15
Nlbench.sh
15
Nlbench.sh
@ -163,7 +163,9 @@ run_script() {
|
|||||||
3)
|
3)
|
||||||
echo -e "运行${YELLOW}IP质量测试...${NC}"
|
echo -e "运行${YELLOW}IP质量测试...${NC}"
|
||||||
bash <(curl -Ls IP.Check.Place) | tee "$temp_file"
|
bash <(curl -Ls IP.Check.Place) | tee "$temp_file"
|
||||||
sed 's/\x1B\[[0-9;]*[JKmsu]//g; /\.\.\.\.\.\.\.\.\.\./d' "$temp_file" > "${output_file}_ip_quality"
|
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
|
||||||
|
sed -i '/\.\.\.\.\.\.\.\.\.\./d' "$temp_file"
|
||||||
|
cp "$temp_file" "${output_file}_ip_quality"
|
||||||
;;
|
;;
|
||||||
# 流媒体解锁
|
# 流媒体解锁
|
||||||
4)
|
4)
|
||||||
@ -178,8 +180,9 @@ run_script() {
|
|||||||
# 响应测试
|
# 响应测试
|
||||||
5)
|
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 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file" > "${output_file}_response"
|
sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
|
||||||
|
cp "$temp_file" "${output_file}_response"
|
||||||
;;
|
;;
|
||||||
# 多线程测速
|
# 多线程测速
|
||||||
6)
|
6)
|
||||||
@ -211,10 +214,10 @@ run_script() {
|
|||||||
;;
|
;;
|
||||||
# 回程路由
|
# 回程路由
|
||||||
9)
|
9)
|
||||||
|
|
||||||
echo -e "运行${YELLOW}回程路由测试...${NC}"
|
echo -e "运行${YELLOW}回程路由测试...${NC}"
|
||||||
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh <<< "1" |tee "$temp_file"
|
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh <<< "1" | tee "$temp_file"
|
||||||
sed -e 's/\x1B\[[0-9;]*[JKmsu]//g' -e ' /测试项/,+9d' -e '/信息/d' -e '/^\s*$/d' "$temp_file" > "${output_file}_route"
|
sed -i -e 's/\x1B\[[0-9;]*[JKmsu]//g' -e '/测试项/,+9d' -e '/信息/d' -e '/^\s*$/d' "$temp_file"
|
||||||
|
cp "$temp_file" "${output_file}_route"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
rm "$temp_file"
|
rm "$temp_file"
|
||||||
|
Loading…
Reference in New Issue
Block a user