Эмуляция нагрузки

Главные вкладки

Комментарии

Аватар пользователя LavrenovNN LavrenovNN 29 июня 2009 в 11:19

Спасибо просвятили!
Только пока не очень всё понятно.
Тест провёл на wampserver (windows xp), если не трудно - объясните, что у меня получилось?

ab -c10 -n500 http://localhost/drupal-6.12/

F:\wamp\bin\apache\Apache2.2.11\bin>ab -c10 -n500 http://localhost/drupal-6.12/
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 localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests

Server Software:        Apache/2.2.11
Server Hostname:        localhost
Server Port:            80

Document Path:          /drupal-6.12/
Document Length:        5821 bytes

Concurrency Level:      10
Time taken for tests:   168.352 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      3164500 bytes
HTML transferred:       2910500 bytes
Requests per second:    2.97 [#/sec] (mean)
Time per request:       3367.042 [ms] (mean)
Time per request:       336.704 [ms] (mean, across all concurrent requests)
Transfer rate:          18.36 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   4.9      0      80
Processing:   791 3344 663.6   3225    6970
Waiting:      791 3343 663.6   3225    6970
Total:        791 3344 663.5   3225    6970

Percentage of the requests served within a certain time (ms)
  50%   3225
  66%   3495
  75%   3675
  80%   3856
  90%   4246
  95%   4496
  98%   4827
  99%   5157
 100%   6970 (longest request)

F:\wamp\bin\apache\Apache2.2.11\bin>

Аватар пользователя LavrenovNN LavrenovNN 29 июня 2009 в 12:01

А вот тест на реальном vds.
Сайт icehockey.su пока создаётся, и делается на мультисайтинге. То есть, основной и 25 поддоменов, работают на одном движке и на одной базе, с разными префиксами (пока ссылки не сделал, но поддомены следующие (некоторые)
ska.icehockey.su
cska.icehockey.su
metallurg-nk.icehockey.su
и так далее
), вот какие результаты выдал ab

root@vz1747:~# ab -c10 -n500 http://icehockey.su/
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 icehockey.su (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests

Server Software:        nginx/0.6.32
Server Hostname:        icehockey.su
Server Port:            80

Document Path:          /
Document Length:        4860 bytes

Concurrency Level:      10
Time taken for tests:   592.789 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      2692000 bytes
HTML transferred:       2430000 bytes
Requests per second:    0.84 [#/sec] (mean)
Time per request:       11855.782 [ms] (mean)
Time per request:       1185.578 [ms] (mean, across all concurrent requests)
Transfer rate:          4.43 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   4.2      0      70
Processing:  5526 11750 623.9  11751   14845
Waiting:     5526 11734 612.3  11747   14845
Total:       5526 11751 623.9  11752   14845

Percentage of the requests served within a certain time (ms)
  50%  11752
  66%  11821
  75%  11866
  80%  11923
  90%  12156
  95%  12461
  98%  12711
  99%  13275
 100%  14845 (longest request)
root@vz1747:~#

Аватар пользователя LavrenovNN LavrenovNN 29 июня 2009 в 12:41

А вот данные на одну страницу html

root@vz1747:~# ab -c10 -n500 http://allpython.com/
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 allpython.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests

Server Software:        nginx/0.6.32
Server Hostname:        allpython.com
Server Port:            80

Document Path:          /
Document Length:        3113 bytes

Concurrency Level:      10
Time taken for tests:   3.164 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      1678500 bytes
HTML transferred:       1556500 bytes
Requests per second:    158.04 [#/sec] (mean)
Time per request:       63.275 [ms] (mean)
Time per request:       6.327 [ms] (mean, across all concurrent requests)
Transfer rate:          518.11 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       2
Processing:     2   63  84.5     83     562
Waiting:        2   62  84.5     83     562
Total:          3   63  84.6     83     564

Percentage of the requests served within a certain time (ms)
  50%     83
  66%     93
  75%     96
  80%     98
  90%    105
  95%    112
  98%    559
  99%    561
 100%    564 (longest request)
root@vz1747:~#

Аватар пользователя LavrenovNN LavrenovNN 29 июня 2009 в 13:15

Ну и собственно последнее, сайт на joomla

root@vz1747:~# ab -c10 -n500 http://metallurg-kuzbass.com/                      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 metallurg-kuzbass.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests

Server Software:        nginx/0.6.32
Server Hostname:        metallurg-kuzbass.com
Server Port:            80

Document Path:          /
Document Length:        4168 bytes

Concurrency Level:      10
Time taken for tests:   775.035 seconds
Complete requests:      500
Failed requests:        0
Write errors:           0
Total transferred:      2344500 bytes
HTML transferred:       2084000 bytes
Requests per second:    0.65 [#/sec] (mean)
Time per request:       15500.710 [ms] (mean)
Time per request:       1550.071 [ms] (mean, across all concurrent requests)
Transfer rate:          2.95 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   4.3      0      79
Processing: 13660 15368 2082.4  15077   35612
Waiting:    13660 15362 2081.9  15077   35612
Total:      13661 15368 2082.5  15077   35613

Percentage of the requests served within a certain time (ms)
  50%  15077
  66%  15225
  75%  15335
  80%  15434
  90%  15717
  95%  16272
  98%  23313
  99%  29490
 100%  35613 (longest request)
root@vz1747:~#