Weird difference between nginx and apache...

Robert Gabriel lists at ruby-forum.com
Sun Nov 23 12:59:48 MSK 2008


[root at srv1 ~]# curl -I -L srv1.viperhost.net/
HTTP/1.1 200 OK
Server: Nginx
Date: Sun, 23 Nov 2008 09:57:54 GMT
Content-Type: text/html
Connection: keep-alive
Keep-Alive: timeout=65
X-Powered-By: PHP/5.2.6

[root at srv1 ~]# curl -I -L srv1.viperhost.net:8080/
HTTP/1.1 200 OK
Date: Sun, 23 Nov 2008 09:57:59 GMT
Server: Apache/2.0.63 (Linux/64)
X-Powered-By: PHP/5.2.6
Vary: Accept-Encoding
Content-Type: text/html

[root at srv1 ~]#

Here it is:

[root at srv1 ~]# ab -n 1000 -c 200 -k srv1.viperhost.net:8080/img.png
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> 
apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, 
http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, 
http://www.apache.org/

Benchmarking srv1.viperhost.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        Apache/2.0.63
Server Hostname:        srv1.viperhost.net
Server Port:            8080

Document Path:          /img.png
Document Length:        1463 bytes

Concurrency Level:      200
Time taken for tests:   0.66449 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    1000
Total transferred:      1757049 bytes
HTML transferred:       1463000 bytes
Requests per second:    15049.13 [#/sec] (mean)
Time per request:       13.290 [ms] (mean)
Time per request:       0.066 [ms] (mean, across all concurrent 
requests)
Transfer rate:          25809.27 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   2.1      0      11
Processing:     0    1   2.6      0      16
Waiting:        0    1   2.6      0      16
Total:          0    1   4.2      0      18

Percentage of the requests served within a certain time (ms)
  50%      0
  66%      1
  75%      1
  80%      2
  90%      3
  95%     17
  98%     17
  99%     18
 100%     18 (longest request)
[root at srv1 ~]# ab -n 1000 -c 200 -k srv1.viperhost.net/img.png
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> 
apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, 
http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, 
http://www.apache.org/

Benchmarking srv1.viperhost.net (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        Nginx
Server Hostname:        srv1.viperhost.net
Server Port:            80

Document Path:          /img.png
Document Length:        1463 bytes

Concurrency Level:      200
Time taken for tests:   0.49567 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    1000
Total transferred:      1697000 bytes
HTML transferred:       1463000 bytes
Requests per second:    20174.71 [#/sec] (mean)
Time per request:       9.913 [ms] (mean)
Time per request:       0.050 [ms] (mean, across all concurrent 
requests)
Transfer rate:          33429.50 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   3.2      0      10
Processing:     3    6   1.2      7       7
Waiting:        3    6   1.3      7       7
Total:          5    7   2.4      7      15

Percentage of the requests served within a certain time (ms)
  50%      7
  66%      7
  75%      7
  80%     10
  90%     11
  95%     13
  98%     15
  99%     15
 100%     15 (longest request)
[root at srv1 ~]#
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list