ab를 이용한 특정 웹사이트의 응답속도를 테스트하기 : -t옵션사용
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,342 조회
- 0 추천
- 목록
본문
ab를 이용한 특정 웹사이트의 응답속도를 테스트하기 : -t옵션사용
ab명령어에 -t옵션을 사용하면 허용되는 최대시간을 초단위로 설정하여 테스트할 수 있다.
내부적으로 최대 50000으로 설정되어 있다.
아래의 결과를 보면 테스트에서 사용한 옵션은 -c 값을 30으로하고, -n 값을 10으로 하였으며 -t값을 10으로 주었다.
즉 테스트 결과가 오래 걸릴 것을 예상하여 최대허용 시간을 10초로 지정한 것이다.
그리고 위의 결과를 보면 Connect 시간과 Processing 시간 그리고 Waiting시간, Total시간이 각각 최소(min), 평균(mean), 최대(max)시간으로 분석되어 출력되어있다.
이런 결과치를 최대한 활용해 보면 굉장히 좋은 분석결과를 얻을 수 있을 것이다.
[root@RockyLinux local]# ab -c 30 -n 10 -t 10 http://www.yahoo.com/ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.yahoo.com (be patient) Finished 770 requests
Server Software: ATS Server Hostname: www.yahoo.com Server Port: 80
Document Path: / Document Length: 8 bytes
Concurrency Level: 30 Time taken for tests: 10.003 seconds Complete requests: 770 Failed requests: 469 (Connect: 0, Receive: 0, Length: 469, Exceptions: 0) Non-2xx responses: 301 Total transferred: 90953017 bytes HTML transferred: 89956654 bytes Requests per second: 76.97 [#/sec] (mean) Time per request: 389.737 [ms] (mean) Time per request: 12.991 [ms] (mean, across all concurrent requests) Transfer rate: 8879.24 [Kbytes/sec] received
Connection Times (ms) min mean[+/-sd] median max Connect: 91 95 3.0 94 102 Processing: 92 280 148.5 373 508 Waiting: 92 98 7.4 97 228 Total: 183 375 148.9 464 609
Percentage of the requests served within a certain time (ms) 50% 464 66% 478 75% 491 80% 494 90% 503 95% 556 98% 587 99% 593 100% 609 (longest request) [root@RockyLinux local]# |
즉 위의 예는 ab유틸리티로 www.yahoo.com웹사이트의 응답속도 측정의 다양한 결과를 위하여 -c, -n, -t의 값을 각각 30, 10, 10으로 주어서 테스트한 것이다.
관련자료
-
이전
-
다음