게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
ab(아파치 벤치마크)로 웹서버 벤치마크 해보신분 계신가요?
게시물ID : programmer_19805짧은주소 복사하기
작성자 : 회가제일좋아
추천 : 0
조회수 : 775회
댓글수 : 5개
등록시간 : 2017/02/16 22:34:06
옵션
  • 본인삭제금지
가상머신에 리눅스를 깔아놓은 상태입니다..

예를 들어   Nginx와 openlitespeed의 성능을 비교하고싶다면,

엔진엑스를 yum install로 설치해서 80포트와 연결해서(웹브라우저에 'localhost'라고 치면 Welcome to Nginx!가 나오게)

ab -c 1000 -n 1000 -t 10 localhost/

(openlitespeed할떄는 service nginx stop 해준 후 yum설치 등 마찬가지 방식)

이렇게 해주면 되는건가요?..
생각보다 너무 간단한거 같아서용

우선 시험삼아
ab -c 50 -n 50 -t 3 localhost/
이렇게 몇번 돌려봣는데 결과가 많이 달라서 좀 의심스럽네요

제가 뭘 잘못하고 있는건가요?

==========================================================================================================
테스트1


Server Software:        nginx/1.10.3
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        612 bytes

Concurrency Level:      50
Time taken for tests:   3.000 seconds
Complete requests:      16764
Failed requests:        0
Write errors:           0
Total transferred:      14165580 bytes
HTML transferred:       10259568 bytes
Requests per second:    5587.92 [#/sec] (mean)
Time per request:       8.948 [ms] (mean)
Time per request:       0.179 [ms] (mean, across all concurrent requests)
Transfer rate:          4611.12 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.0      1       9
Processing:     1    8   2.9      8      21
Waiting:        0    8   3.0      7      20
Total:          3    9   2.7      8      22


____________________________________________________________________________________________________________________________________

테스트 2

Server Software:        nginx/1.10.3
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        612 bytes

Concurrency Level:      50
Time taken for tests:   3.001 seconds
Complete requests:      19194
Failed requests:        0
Write errors:           0
Total transferred:      16218930 bytes
HTML transferred:       11746728 bytes
Requests per second:    6396.83 [#/sec] (mean)
Time per request:       7.816 [ms] (mean)
Time per request:       0.156 [ms] (mean, across all concurrent requests)
Transfer rate:          5278.64 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.0      1      17
Processing:     1    7   2.9      7      32
Waiting:        0    6   2.9      6      28
Total:          3    8   2.6      8      33

=========================================================================================================


보시다시피 이렇게 차이가 많이 납니다(특히 Connection TIme)
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호