server-side/apache

아파치 성능도구 ab

C/H 2017. 2. 22. 08:30

ab -n 1000 -c 10 https://domain.com

옵션

-n
requests : 요청 수
-c
cuncurrency : 동시 요청 수
-t
timelimit : 제한시간 ms단위
-v
verbosity : 로그레벨 1~4(더 자세히 보여준다)

ab 결과값

ab -n 400 -c 10 -g com.domain.tsv "https://domain.com/"
This is ApacheBench, Version 2.3 <$Revision: 1748469 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking scenario.happytalk.io (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 400 requests


Server Software:        nginx                       # 버전정보
Server Hostname:        domain.com                  # 도메인
Server Port:            443                         # 포트
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256 # SSL cipher

Document Path:          /                           # Path
Document Length:        351 bytes                   # 문서크기

Concurrency Level:      10                          # 동접 수 -c 값
Time taken for tests:   24.377 seconds              # 응답시간 *   
Complete requests:      400                         # 응답성공 수
Failed requests:        0                           # 응답실패 수
Total transferred:      462616 bytes                # 전송된 총 바이트
HTML transferred:       140400 bytes                # 전송된 총 HTML 바이트
Requests per second:    16.41 [#/sec] (mean)        # 초당 응답 수 ≑TPS(Transaction per sec)
Time per request:       609.420 [ms] (mean)         # 응답 시간 *
Time per request:       60.942 [ms] (mean, across all concurrent requests) # 응답 시간 (모든 동시 요청에서 )
Transfer rate:          18.53 [Kbytes/sec] received # 초당 전송 바이트

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       35  101  66.7     76     444
Processing:   386  502  95.4    482    1084
Waiting:      385  501  95.3    481    1084
Total:        441  603 118.7    579    1144

Percentage of the requests served within a certain time (ms)
  50%    579
  66%    614
  75%    659
  80%    685
  90%    781
  95%    838
  98%    940
  99%    970
 100%   1144 (longest request)


반응형