가상머신에 리눅스를 깔아놓은 상태입니다..
예를 들어 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)