среда, 13 августа 2014 г.

Простое тестирование скорости сайта с ApacheBench

ab -n 2000 -c 10 http://country-coder.blogspot.ru/

Это выполнит 2000 HTTP GET запросов, обработка до 10 запросов одновременно, к указанному http://country-coder.blogspot.ru/

вот результат
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking country-coder.blogspot.ru (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
Completed 2000 requests
Finished 2000 requests


Server Software:        GSE
Server Hostname:        country-coder.blogspot.ru
Server Port:            80

Document Path:          /
Document Length:        208432 bytes

Concurrency Level:      10
Time taken for tests:   65.455 seconds
Complete requests:      2000
Failed requests:        1202
   (Connect: 0, Receive: 0, Length: 1202, Exceptions: 0)
Write errors:           0
Non-2xx responses:      1202
Total transferred:      167209285 bytes
HTML transferred:       166522258 bytes
Requests per second:    30.56 [#/sec] (mean)
Time per request:       327.275 [ms] (mean)
Time per request:       32.728 [ms] (mean, across all concurrent requests)
Transfer rate:          2494.69 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       24   30  12.7     28     523
Processing:   161  295 201.5    173    4255
Waiting:      161  191 138.4    173    4255
Total:        186  325 203.6    205    4280

Percentage of the requests served within a certain time (ms)
  50%    205
  66%    400
  75%    453
  80%    468
  90%    527
  95%    636
  98%    679
  99%    911
 100%   4280 (longest request)


Комментариев нет:

Отправить комментарий

PHP: The Right Way блог програмышки
Яндекс.Метрика