mirror of
				https://github.com/everett7623/nodeloc_vps_test.git
				synced 2025-11-04 00:17:27 +00:00 
			
		
		
		
	Update Nlbench_beta.sh
This commit is contained in:
		
							parent
							
								
									4e6dc0ced3
								
							
						
					
					
						commit
						762542e5e2
					
				@ -148,7 +148,7 @@ run_script() {
 | 
			
		||||
            sed -i 's/\.\.\./\.\.\.\n/g' "$temp_file"
 | 
			
		||||
            sed -i '/\.\.\./d' "$temp_file"
 | 
			
		||||
            sed -i '/^\s*$/d'   "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_yabs"
 | 
			
		||||
            ;;
 | 
			
		||||
        # 融合怪
 | 
			
		||||
@ -158,7 +158,7 @@ run_script() {
 | 
			
		||||
            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 '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_fusion"
 | 
			
		||||
            ;;
 | 
			
		||||
        # IP质量
 | 
			
		||||
@ -167,7 +167,7 @@ run_script() {
 | 
			
		||||
            bash <(curl -Ls IP.Check.Place) | tee "$temp_file"
 | 
			
		||||
            sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
 | 
			
		||||
            sed -i -n '/########################################################################/,${s/^.*\(########################################################################\)/\1/;p}' "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_ip_quality"
 | 
			
		||||
            ;;
 | 
			
		||||
        # 流媒体解锁
 | 
			
		||||
@ -178,7 +178,7 @@ run_script() {
 | 
			
		||||
            sed -i 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
 | 
			
		||||
            sed -i -n '/流媒体平台及游戏区域限制测试/,$p' "$temp_file"
 | 
			
		||||
            sed -i '1d' "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_streaming"
 | 
			
		||||
            ;;
 | 
			
		||||
        # 响应测试
 | 
			
		||||
@ -186,7 +186,7 @@ run_script() {
 | 
			
		||||
            echo -e "运行${YELLOW}响应测试...${NC}"
 | 
			
		||||
            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 '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_response"
 | 
			
		||||
            ;;
 | 
			
		||||
        # 多线程测速
 | 
			
		||||
@ -197,7 +197,7 @@ run_script() {
 | 
			
		||||
            sed -i -r '1,/序号\:/d' "$temp_file"
 | 
			
		||||
            sed -i -r 's/(⠋|⠙|⠹|⠸|⠼|⠴|⠦|⠧|⠇|⠏)/\n/g' "$temp_file"
 | 
			
		||||
            sed -i -r '/测试进行中/d' "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_multi_thread"
 | 
			
		||||
            ;;
 | 
			
		||||
        # 单线程测速
 | 
			
		||||
@ -208,7 +208,7 @@ run_script() {
 | 
			
		||||
            sed -i -r '1,/序号\:/d' "$temp_file"
 | 
			
		||||
            sed -i -r 's/(⠋|⠙|⠹|⠸|⠼|⠴|⠦|⠧|⠇|⠏)/\n/g' "$temp_file"
 | 
			
		||||
            sed -i -r '/测试进行中/d' "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_single_thread"
 | 
			
		||||
            ;;
 | 
			
		||||
        # iperf3测试
 | 
			
		||||
@ -217,7 +217,7 @@ run_script() {
 | 
			
		||||
            run_iperf3_test | tee "$temp_file"
 | 
			
		||||
            sed -i -e 's/\x1B\[[0-9;]*[JKmsu]//g' "$temp_file"
 | 
			
		||||
            sed -i -r '1,/\[ ID\] /d' "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_iperf3"
 | 
			
		||||
            ;;
 | 
			
		||||
       # 回程路由
 | 
			
		||||
@ -225,7 +225,7 @@ run_script() {
 | 
			
		||||
            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 -i -e 's/\x1B\[[0-9;]*[JKmsu]//g' -e '/测试项/,+9d' -e '/信息/d' -e '/^\s*$/d' "$temp_file"
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"  # 删除空行
 | 
			
		||||
            sed -i '/^$/d' "$temp_file"
 | 
			
		||||
            cp "$temp_file" "${output_file}_route"
 | 
			
		||||
            ;;
 | 
			
		||||
    esac
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user