-
-
Save mskf3000/0ec24f1013b4cac52d34e5b66d17790a to your computer and use it in GitHub Desktop.
秒間7リクエスト送りたい
This file contains 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