ab를 이용한 특정 웹사이트의 응답속도 테스트결과에 헤드정보 포함하여 측정하기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,328 조회
- 0 추천
- 목록
본문
ab를 이용한 특정 웹사이트의 응답속도 테스트결과에 헤드정보 포함하여 측정하기
ab유틸리티의 테스트 결과에 헤드정보를 포함하고자 한다면 다음 예와 같이 -v옵션을 사용한다.
일반적인 출력결과보다 좀 더 자세한 결과를 보려고 할 때 사용하는 옵션이다.
즉 테스트하는 사이트의 헤드정보를 함께 볼 수 있다.
[root@RockyLinux local]# ab -n 1 -v 10 http://www.linux.co.kr/ 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.linux.co.kr (be patient)...INFO: GET header == --- GET / HTTP/1.0 Host: www.linux.co.kr User-Agent: ApacheBench/2.3 Accept: */*
--- LOG: header received: HTTP/1.1 302 Found Date: Wed, 05 Jul 2023 05:56:58 GMT Server: Apache X-Content-Type-Options: nosniff Location: https://www.linux.co.kr/ Content-Length: 208 Connection: close Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="https://www.linux.co.kr/">here</a>.</p> </body></html>
WARNING: Response code not 2xx (302) ..done
Server Software: Apache Server Hostname: www.linux.co.kr Server Port: 80
Document Path: / Document Length: 208 bytes
Concurrency Level: 1 Time taken for tests: 0.034 seconds Complete requests: 1 Failed requests: 0 Non-2xx responses: 1 Total transferred: 437 bytes HTML transferred: 208 bytes Requests per second: 29.73 [#/sec] (mean) Time per request: 33.640 [ms] (mean) Time per request: 33.640 [ms] (mean, across all concurrent requests) Transfer rate: 12.69 [Kbytes/sec] received
Connection Times (ms) min mean[+/-sd] median max Connect: 16 16 0.0 16 16 Processing: 17 17 0.0 17 17 Waiting: 16 16 0.0 16 16 Total: 34 34 0.0 34 34 [root@RockyLinux local]# |
즉 위의 결과를 보면 ab명령어로 www.linux.co.kr웹사이트의 응답속도를 측정하면서 HTML포맷의 헤드정보를 함께 출력하였다.
보다 자세한 응답결과를 얻기위한 방법이 될 수 있다.
관련자료
-
이전
-
다음