ApacheBench - кол-во запросов при тестах

440hz

php.ru
ApacheBench - кол-во запросов при тестах

Тестирую систему. Для нагрузки использую ab.

Наткнулся на такое.

ab -n 1 http://

на самом деле делает 2 запроса к хосту.

a -n 1000 -c 2 вызывает 1002 запроса к хосту

вот оно так и надо?

пол дня мучал демона почему при 1 запросе приходит 2 запроса пока не посмотрел через промежуточную прослойку, что там все вот так...
 

damngood

Мозг был, но ушел...
Эм, если я правильно понял то:
ab -n 1000 -c 2 http://it.local/

Должен в релультате высветить:
Complete requests: 1000

А у тебя:
Complete requests: 1002 ???
 

440hz

php.ru
damngood

не. вот как раз Complete 1000, а реально 1002 при -n 1000 -c 2

=)

-~{}~ 11.12.09 18:58:

Код:
tornado(root):/usr/home/440hz/daemon/daemon#>cat /var/log/nginx-access.log | wc -l
       0
tornado(root):/usr/home/440hz/daemon/daemon#>ab -n 1000 -c 3 [url]http://proto.localhost/[/url]
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, [url]http://www.zeustech.net/[/url]
Copyright (c) 2006 The Apache Software Foundation, [url]http://www.apache.org/[/url]

Benchmarking proto.localhost (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/0.7.63
Server Hostname:        proto.localhost
Server Port:            80

Document Path:          /
Document Length:        83 bytes

Concurrency Level:      3
Time taken for tests:   3.282888 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      324000 bytes
HTML transferred:       83000 bytes
Requests per second:    304.61 [#/sec] (mean)
Time per request:       9.849 [ms] (mean)
Time per request:       3.283 [ms] (mean, across all concurrent requests)
Transfer rate:          96.26 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       2
Processing:     2    9   5.6      8      51
Waiting:        2    8   5.5      8      50
Total:          2    9   5.6      8      51

Percentage of the requests served within a certain time (ms)
  50%      8
  66%      9
  75%     10
  80%     11
  90%     13
  95%     20
  98%     30
  99%     33
 100%     51 (longest request)
tornado(root):/usr/home/440hz/daemon/daemon#>cat /var/log/nginx-access.log | wc -l
    1003
-~{}~ 11.12.09 18:59:

1003 !
 
Сверху