Posterous theme by Cory Watilo

Webservers benchmark

Решил потестировать PHP в разных связках, а именно - Apache + mod_php, Apache + mod_fcgid + php, Lighttpd + mod_fastcgi + php. Все это еще в двух вариантах - с APC (Advanced PHP Cache) и без него. Тестировал выполнением вот такой команды: [cc lang="bash"] ab -c 5 -n 500 http://dmitry.shaposhnik.name/ [/cc] Выполнял команду на другом сервере чтобы снизить влияние случайных факторов. И вот что получилось в результате:
Вот полный вывод в текстовом виде: testing results UPD: вот на том же сервере решил протестировать приложение-блогодвижек (Записки айтишника) на рельсах той же командой. [cc lang="text"] Document Length: 13176 bytes Concurrency Level: 5 Time taken for tests: 15.141659 seconds Complete requests: 500 Failed requests: 0 Write errors: 0 Total transferred: 6743500 bytes HTML transferred: 6588000 bytes Requests per second: 33.02 [#/sec] (mean) Time per request: 151.417 [ms] (mean) Time per request: 30.283 [ms] (mean, across all concurrent requests) Transfer rate: 434.89 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 1 Processing: 6 100 1126.2 7 15141 Waiting: 4 98 1126.1 5 15139 Total: 6 100 1126.2 7 15141 Percentage of the requests served within a certain time (ms) 50% 7 66% 8 75% 9 80% 10 90% 11 95% 13 98% 110 99% 211 100% 15141 (longest request) [/cc] UPD: по коментариям Вадима сделал более жесткий тест: [cc lang="text"] ab -c300 -n3000 http://dmitry.shaposhnik.name/test.php [/cc] testing results, heavy testing Без APC mod_fcgid отлетает (2 запроса). Подскажите как подтюнинговать.
| Viewed
times
Filed under: