강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

아파치 밴치마킹툴 ab 로 특정 웹사이트의 응답속도를 HTML포맷으로 출력하기 #1

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

아파치 밴치마킹툴 ab 특정 웹사이트의 응답속도를 HTML포맷으로 출력하기 #1

 

지금까지 예로든 ab의 테스트한 결과들을 html포맷으로 출력할 수 있습니다.

 

  , -w옵션을 사용하시면 출력결과를 HTML코드로 출력해 줍니다.

 

 이 옵션을 사용하시면 웹으로 확인하는 솔루션을 만들 수 있습니다.

 

 활용가치가 많은 옵션이라고 생각합니다.

 

 다음 예와 같이 -w 옵션을 사용하시면 결과를 html 태그와 함께 출력해 줍니다.

 

 

 

[root@host3 bin]# ab -n 1 -w http://www.yahoo.com/
<p>
 This is ApacheBench, Version 2.0.40-dev <i>&lt;$Revision: 1.116 $&gt;</i> apache-2.0<br>
 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>
 Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>
</p>
<p>
..done


<table >
<tr ><th colspan=2 bgcolor=white>Server Software:</th><td colspan=2 bgcolor=white></td></tr>
<tr ><th colspan=2 bgcolor=white>Server Hostname:</th><td colspan=2 bgcolor=white>www.yahoo.com</td></tr>
<tr ><th colspan=2 bgcolor=white>Server Port:</th><td colspan=2 bgcolor=white>80</td></tr>
<tr ><th colspan=2 bgcolor=white>Document Path:</th><td colspan=2 bgcolor=white>/</td></tr>
<tr ><th colspan=2 bgcolor=white>Document Length:</th><td colspan=2 bgcolor=white>32247 bytes</td></tr>
<tr ><th colspan=2 bgcolor=white>Concurrency Level:</th><td colspan=2 bgcolor=white>1</td></tr>
<tr ><th colspan=2 bgcolor=white>Time taken for tests:</th><td colspan=2 bgcolor=white>0.1075 seconds</td></tr>
<tr ><th colspan=2 bgcolor=white>Complete requests:</th><td colspan=2 bgcolor=white>1</td></tr>
<tr ><th colspan=2 bgcolor=white>Failed requests:</th><td colspan=2 bgcolor=white>0</td></tr>
<tr ><th colspan=2 bgcolor=white>Total transferred:</th><td colspan=2 bgcolor=white>32600 bytes</td></tr>
<tr ><th colspan=2 bgcolor=white>HTML transferred:</th><td colspan=2 bgcolor=white>32247 bytes</td></tr>
<tr ><th colspan=2 bgcolor=white>Requests per second:</th><td colspan=2 bgcolor=white>0.93</td></tr>
<tr ><th colspan=2 bgcolor=white>Transfer rate:</th><td colspan=2 bgcolor=white>30.33 kb/s received</td></tr>
<tr ><th bgcolor=white colspan=4>Connnection Times (ms)</th></tr>
<tr ><th bgcolor=white>&nbsp;</th> <th bgcolor=white>min</th>   <th bgcolor=white>avg</th>   <th bgcolor=white>max</th></tr>
<tr ><th bgcolor=white>Connect:</th><td bgcolor=white>  208</td><td bgcolor=white>  208</td><td bgcolor=white>  208</td></tr>
<tr ><th bgcolor=white>Processing:</th><td bgcolor=white>  866</td><td bgcolor=white>  866</td><td bgcolor=white>  866</td></tr>
<tr ><th bgcolor=white>Total:</th><td bgcolor=white> 1074</td><td bgcolor=white> 1074</td><td bgcolor=white> 1074</td></tr>
</table>
[root@host3 bin]#

 

, 이번 예에서는 www.yahoo.com ab실행결과를 HTML포맷으로 출력하고 있습니다.

 

 보시는 바와 같이 이 결과를 웹으로 확인할 수 있다면 특정 웹사이트의 응답속도를 측정하는 솔루션으로 활용할 수도 있습니다.

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,045 명
  • 현재 강좌수 :  35,861 개
  • 현재 접속자 :  81 명