mirror of
https://gitee.com/openeuler/A-Tune.git
synced 2025-12-06 16:09:25 +08:00
24 lines
790 B
Bash
24 lines
790 B
Bash
#!/bin/sh
|
|
# Copyright (c) 2020 Huawei Technologies Co., Ltd.
|
|
# A-Tune is licensed under the Mulan PSL v2.
|
|
# You can use this software according to the terms and conditions of the Mulan PSL v2.
|
|
# You may obtain a copy of Mulan PSL v2 at:
|
|
# http://license.coscl.org.cn/MulanPSL2
|
|
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
|
|
# PURPOSE.
|
|
# See the Mulan PSL v2 for more details.
|
|
# Create: 2020-11-26
|
|
|
|
retry_num=0
|
|
|
|
while [ $retry_num -le 5 ]
|
|
do
|
|
httpress -n 1000000 -c 512 -t 7 -k http://localhost:80 > benchmark_result 2>&1
|
|
if [ $? == 0 ];then
|
|
cat benchmark_result
|
|
break
|
|
fi
|
|
retry_num=$((retry_num + 1))
|
|
done
|