mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-10 10:05:18 +00:00
Update Nlbench.sh
This commit is contained in:
parent
4869d27e1d
commit
d723a20c17
11
Nlbench.sh
11
Nlbench.sh
@ -163,7 +163,9 @@ run_script() {
|
||||
3)
|
||||
echo -e "运行${YELLOW}IP质量测试...${NC}"
|
||||
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)
|
||||
@ -179,7 +181,8 @@ run_script() {
|
||||
5)
|
||||
echo -e "运行${YELLOW}响应测试...${NC}"
|
||||
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)
|
||||
@ -211,10 +214,10 @@ run_script() {
|
||||
;;
|
||||
# 回程路由
|
||||
9)
|
||||
|
||||
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"
|
||||
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
|
||||
rm "$temp_file"
|
||||
|
Loading…
Reference in New Issue
Block a user