Centos vs Oracle Lunux

Коллеги справедливо попеняли мне на оценку скорости работы веб-приложения на глаз, что же, попробую исправиться.

Дано: 2 одинаковые virtualbox’ины, где запущены CentOS 6.4 и Oracle Linux 6.4 в конфигурации Web-server по умолчанию с Drupal’ом по умолчанию на MySQL по умолчанию, в котором заведены 2 статьи со стандартным текстом-затычкой. 111 – центось, 112 – оракл. А теперь – танцы:

[root@storage ~]# ab -n 10000 -c 128 http://192.168.2.111/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.111 (be patient)
apr_pollset_poll: The timeout specified has expired (70007)
Total of 52 requests completed
[root@storage ~]# ab -n 1000 -c 128 http://192.168.2.111/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.111 (be patient)
Completed 100 requests
apr_pollset_poll: The timeout specified has expired (70007)
Total of 130 requests completed
[root@storage ~]# ab -n 1000 -c 128 http://192.168.2.112/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.112 (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
apr_pollset_poll: The timeout specified has expired (70007)
Total of 865 requests completed
[root@storage ~]# ab -n 500 -c 100 http://192.168.2.111/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.111 (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.15
Server Hostname: 192.168.2.111
Server Port: 80

Document Path: /
Document Length: 11896 bytes

Concurrency Level: 100
Time taken for tests: 437.530 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 6155000 bytes
HTML transferred: 5948000 bytes
Requests per second: 1.14 [#/sec] (mean)
Time per request: 87506.072 [ms] (mean)
Time per request: 875.061 [ms] (mean, across all concurrent requests)
Transfer rate: 13.74 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.9 0 7
Processing: 4700 84105 55641.8 85650 318510
Waiting: 2554 61848 42292.1 59039 232472
Total: 4706 84106 55641.4 85650 318510

Percentage of the requests served within a certain time (ms)
50% 85650
66% 108219
75% 118252
80% 131994
90% 163683
95% 179541
98% 208537
99% 218438
100% 318510 (longest request)
[root@storage ~]# ab -n 500 -c 100 http://192.168.2.112/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.112 (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.15
Server Hostname: 192.168.2.112
Server Port: 80

Document Path: /
Document Length: 11897 bytes

Concurrency Level: 100
Time taken for tests: 318.050 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 6155500 bytes
HTML transferred: 5948500 bytes
Requests per second: 1.57 [#/sec] (mean)
Time per request: 63610.076 [ms] (mean)
Time per request: 636.101 [ms] (mean, across all concurrent requests)
Transfer rate: 18.90 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.6 0 7
Processing: 3790 60702 51397.5 42888 294205
Waiting: 3745 39956 29574.1 32110 202149
Total: 3791 60703 51397.0 42888 294205

Percentage of the requests served within a certain time (ms)
50% 42888
66% 70750
75% 90107
80% 97550
90% 134104
95% 160974
98% 200019
99% 232280
100% 294205 (longest request)
[root@storage ~]# ab -n 500 -c 100 http://192.168.2.111/favicon.ico
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.111 (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.15
Server Hostname: 192.168.2.111
Server Port: 80

Document Path: /favicon.ico
Document Length: 288 bytes

Concurrency Level: 100
Time taken for tests: 0.505 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Non-2xx responses: 500
Total transferred: 234000 bytes
HTML transferred: 144000 bytes
Requests per second: 990.73 [#/sec] (mean)
Time per request: 100.936 [ms] (mean)
Time per request: 1.009 [ms] (mean, across all concurrent requests)
Transfer rate: 452.79 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 2.1 0 8
Processing: 56 93 21.6 93 209
Waiting: 56 93 21.5 93 209
Total: 56 94 21.9 95 216

Percentage of the requests served within a certain time (ms)
50% 95
66% 104
75% 105
80% 107
90% 115
95% 134
98% 142
99% 150
100% 216 (longest request)
[root@storage ~]# ab -n 500 -c 100 http://192.168.2.112/favicon.ico
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.112 (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.15
Server Hostname: 192.168.2.112
Server Port: 80

Document Path: /favicon.ico
Document Length: 288 bytes

Concurrency Level: 100
Time taken for tests: 0.351 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Non-2xx responses: 500
Total transferred: 234000 bytes
HTML transferred: 144000 bytes
Requests per second: 1424.12 [#/sec] (mean)
Time per request: 70.219 [ms] (mean)
Time per request: 0.702 [ms] (mean, across all concurrent requests)
Transfer rate: 650.87 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 2.5 0 12
Processing: 18 61 11.3 59 126
Waiting: 18 61 10.3 58 101
Total: 29 63 10.9 59 126

Percentage of the requests served within a certain time (ms)
50% 59
66% 64
75% 64
80% 65
90% 80
95% 87
98% 91
99% 97
100% 126 (longest request)
[root@storage ~]#


Posted

in

, ,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *