mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-29 09:45:18 +00:00
Update Nlbench.sh
This commit is contained in:
parent
ff32689e90
commit
021f6cae80
20
Nlbench.sh
20
Nlbench.sh
@ -204,18 +204,18 @@ run_script() {
|
|||||||
;;
|
;;
|
||||||
# 单线程测速
|
# 单线程测速
|
||||||
7)
|
7)
|
||||||
if [ "$PUBLIC_IP" != "${1#*:[0-9a-fA-F]}" ]; then
|
if [ "$PUBLIC_IP" != ${1#*:[0-9a-fA-F]} ]; then
|
||||||
echo -e "运行${YELLOW}单线程测速...${NC}"
|
bash <(curl -sL bash.icu/speedtest) <<< "1" |tee "$temp_file"
|
||||||
bash <(curl -sL bash.icu/speedtest) <<< "2" |tee "$temp_file"
|
|
||||||
sed -r -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
|
|
||||||
sed -i -r '1,/序号\:/d' "$temp_file"
|
|
||||||
sed -i -r 's/(⠋|⠙|⠹|⠸|⠼|⠴|⠦|⠧|⠇|⠏)/\n/g' "$temp_file"
|
|
||||||
sed -i -r '/测试进行中/d' "$temp_file"
|
|
||||||
cp "$temp_file" "${output_file}_single_thread"
|
|
||||||
else
|
else
|
||||||
echo "该脚本无IPv6单线程测速"
|
bash <(curl -sL bash.icu/speedtest) <<< "16" |tee "$temp_file"
|
||||||
touch "${output_file}_single_thread"
|
|
||||||
fi
|
fi
|
||||||
|
echo -e "运行${YELLOW}多线程测速...${NC}"
|
||||||
|
|
||||||
|
sed -r -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
|
||||||
|
sed -i -r '1,/序号\:/d' "$temp_file"
|
||||||
|
sed -i -r 's/(⠋|⠙|⠹|⠸|⠼|⠴|⠦|⠧|⠇|⠏)/\n/g' "$temp_file"
|
||||||
|
sed -i -r '/测试进行中/d' "$temp_file"
|
||||||
|
cp "$temp_file" "${output_file}_single_thread"
|
||||||
;;
|
;;
|
||||||
# iperf3测试
|
# iperf3测试
|
||||||
8)
|
8)
|
||||||
|
Loading…
Reference in New Issue
Block a user