[root@NOTEBOOK ~] time for i in 128 321; do sleep 302; ab -n $i -c $i https://EXAMPLE.COM/ 2>/dev/null | egrep '^Complete requests:|^Failed requests:|^Requests per second:|^Time taken for tests:'; echo '______________________'; done
Time taken for tests: 87.538 seconds
Complete requests: 128
Failed requests: 0
Requests per second: 1.46 [#/sec] (mean)
______________________
Time taken for tests: 58.507 seconds
Complete requests: 321
Failed requests: 490
Requests per second: 5.49 [#/sec] (mean)
______________________
묻다:실패한 요청 > 완료된 요청이 어떻게 가능합니까?
ps: "Sleep 302"가 필요합니다. 왜냐하면 ab를 너무 많이 수행하면 출력이 100% 실패할 것이기 때문입니다.