Created
September 4, 2014 06:34
-
-
Save kkxlkkxllb/ec36d372898056737d25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#HOST='http://158.182.151.44' | |
HOST='http://www.ebanshu.com' | |
CLASSROOM_ID=1570 | |
SECTION_ID=4935 | |
FRAME_ID=35107 | |
CONCURRENCY=100 | |
TEST_RESULT_LOG='con_'${CONCURRENCY}'.log' | |
API='/app/api/canvas/frame/detail/?frame_id='${FRAME_ID} | |
if [ x$1 != x ] | |
then | |
API=$1 | |
fi | |
echo 'Test on host: '${HOST} >> ${TEST_RESULT_LOG} | |
echo 'API: '${API} >> ${TEST_RESULT_LOG} | |
echo 'Concurrency: '${CONCURRENCY} >> ${TEST_RESULT_LOG} | |
echo 'Result: ' >> ${TEST_RESULT_LOG} | |
webbench -c ${CONCURRENCY} -t 1 ${HOST}${API} | grep -E 'Speed|Requests' >> ${TEST_RESULT_LOG} | |
echo ' ' >> ${TEST_RESULT_LOG} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment