From 4468e961f52375f69876a7e286a4362463ec96e1 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Fri, 5 Jul 2024 12:17:12 +0800 Subject: [PATCH] Update Nlbench_beta.sh --- Nlbench_beta.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nlbench_beta.sh b/Nlbench_beta.sh index c3ca63e..f2f9471 100644 --- a/Nlbench_beta.sh +++ b/Nlbench_beta.sh @@ -211,13 +211,14 @@ run_script() { else bash <(curl -sL bash.icu/speedtest) <<< "17" |tee "$temp_file" fi - - echo -e "运行${YELLOW}单线程测速...${NC}" + echo -e "运行${YELLOW}多线程测速...${NC}" + bash <(curl -sL bash.icu/speedtest) <<< "1" |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" + ;; # iperf3测试 8) echo -e "运行${YELLOW}iperf3测试...${NC}"