From bdf676ff9eb3f4bc333ad885cac8241dba4a5a64 Mon Sep 17 00:00:00 2001 From: Chia-Che Tsai Date: Sun, 25 Nov 2018 03:05:44 -0800 Subject: [PATCH] [LibOS] Use 'ab -k' in benchmark-http.sh --- LibOS/shim/test/apps/lighttpd/benchmark-http.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LibOS/shim/test/apps/lighttpd/benchmark-http.sh b/LibOS/shim/test/apps/lighttpd/benchmark-http.sh index 78d74d7b..4d71da76 100755 --- a/LibOS/shim/test/apps/lighttpd/benchmark-http.sh +++ b/LibOS/shim/test/apps/lighttpd/benchmark-http.sh @@ -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