mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 15:39:36 +00:00
[LibOS] Use 'ab -k' in benchmark-http.sh
This commit is contained in:
committed by
Chia-Che Tsai
parent
90c566975b
commit
bdf676ff9e
@@ -11,6 +11,7 @@ DOWNLOAD_HOST=$1
|
||||
DOWNLOAD_FILE=random/10K.1.html
|
||||
REQUESTS=10000
|
||||
CONCURRENCY_LIST="1 2 4 8 16 32 64 128 256"
|
||||
OPTIONS="-k"
|
||||
RESULT=result-$(date +%y%m%d-%H%M%S)
|
||||
|
||||
touch $RESULT
|
||||
@@ -21,8 +22,8 @@ do
|
||||
for CONCURRENCY in $CONCURRENCY_LIST
|
||||
do
|
||||
rm -f OUTPUT
|
||||
echo "ab -n $REQUESTS -c $CONCURRENCY http://$DOWNLOAD_HOST/$DOWNLOAD_FILE"
|
||||
ab -n $REQUESTS -c $CONCURRENCY http://$DOWNLOAD_HOST/$DOWNLOAD_FILE > OUTPUT || exit $?
|
||||
echo "ab $OPTIONS -n $REQUESTS -c $CONCURRENCY http://$DOWNLOAD_HOST/$DOWNLOAD_FILE"
|
||||
ab $OPTIONS -n $REQUESTS -c $CONCURRENCY http://$DOWNLOAD_HOST/$DOWNLOAD_FILE > OUTPUT || exit $?
|
||||
|
||||
sleep 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user