abtest 썸네일형 리스트형 [Apache] Apache Benchmark apache benchmark 사용 스크립트 #!/bin/sh if [ $# -lt 5 ]; then echo "abstress.sh " echo "" exit 1 fi url=$1 tt=$2 start=$3 max=$4 inc=$5 num=$start while true do /usr/local/apache2/bin/ab -t $tt -c $num $url 2>/dev/null > $$ rps=`cat $$ | grep Requests\ per\ second: | awk '{print $4;exit;}'` trans=`cat $$ | grep Transfer\ rate: | awk '{print $3;exit;}'` test_time=`cat $$ | grep Time\ taken\ for\ tests.. 더보기 이전 1 다음