Created
January 23, 2019 03:39
-
-
Save ginokent/3a21f26949232e6adde41dc26c711f3b to your computer and use it in GitHub Desktop.
秒間7リクエスト送りたい
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
PARALLEL=7 | |
TARGET=http://127.0.0.1:8080/ | |
N=$(seq 1 ${PARALLEL:?}) && while :; do printf "${TARGET:?}\n%.s" ${N} | xargs -P"${PARALLEL:?}" -I{} curl -sS {} -o /dev/null -w "response_code:%{response_code}\ttime_total:%{time_total}\n"; done | tee /tmp/loadtest_$(date +%Y%m%d_%H%M%S).log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment