Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-07-11 10:39:36 +08:00 committed by GitHub
parent 56d6fd897b
commit f577033dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,12 +118,11 @@ detect_region() {
AUXILIARY_VPS="205.185.119.208" AUXILIARY_VPS="205.185.119.208"
IPERF_PORT=5201 IPERF_PORT=5201
TEST_DURATION=30 TEST_DURATION=30
PARALLEL_STREAMS=3
run_iperf3_test() { run_iperf3_test() {
echo -e "${GREEN}服务端VPS位于美国拉斯维加斯${NC}" echo -e "${GREEN}服务端VPS位于美国拉斯维加斯${NC}"
echo -e "${GREEN}连接到服务端进行iperf3测试。。。${NC}" echo -e "${GREEN}连接到服务端进行iperf3测试。。。${NC}"
if iperf3 -c $AUXILIARY_VPS -p $IPERF_PORT -t $TEST_DURATION -P $PARALLEL_STREAMS; then if iperf3 -c $AUXILIARY_VPS -p $IPERF_PORT -t $TEST_DURATION; then
echo -e "${YELLOW}iperf3 测试完成${NC}" echo -e "${YELLOW}iperf3 测试完成${NC}"
else else
echo -e "${RED}iperf3 测试失败${NC}" echo -e "${RED}iperf3 测试失败${NC}"