Hi, I'm trying some apache benchmark and I saw very bad things. I'm currently migrating my website (+300k page viewed per month) from old version (simple php with mysql) to new one that will use Zend Framework and PostgreSQL. I don't understand why I'm having this result using apache benchmark:
NEW VERSION: 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 Completed 1000 requests Finished 1000 requests Server Software: Apache/2.2.9 Server Port: 80 Document Length: 51898 bytes Concurrency Level: 5 Time taken for tests: 54.747 seconds Complete requests: 1000 Failed requests: 999 (Connect: 0, Receive: 0, Length: 999, Exceptions: 0) Write errors: 0 Total transferred: 52545794 bytes HTML transferred: 52253794 bytes Requests per second: 18.27 [#/sec] (mean) Time per request: 273.737 [ms] (mean) Time per request: 54.747 [ms] (mean, across all concurrent requests) Transfer rate: 937.29 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 1 3.8 0 45 Processing: 99 273 109.5 259 1492 Waiting: 60 239 109.3 224 1474 Total: 99 274 109.9 259 1492 Percentage of the requests served within a certain time (ms) 50% 259 66% 289 75% 306 80% 316 90% 353 95% 403 98% 611 99% 782 100% 1492 (longest request) OLD VERSION: 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 Completed 1000 requests Finished 1000 requests Server Software: Apache/2.2.9 Server Port: 80 Document Length: 73368 bytes Concurrency Level: 5 Time taken for tests: 14.736 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 74184000 bytes HTML transferred: 73368000 bytes Requests per second: 67.86 [#/sec] (mean) Time per request: 73.682 [ms] (mean) Time per request: 14.736 [ms] (mean, across all concurrent requests) Transfer rate: 4916.05 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 2.0 0 34 Processing: 26 73 26.9 69 225 Waiting: 13 47 20.7 42 150 Total: 26 74 27.0 69 225 Percentage of the requests served within a certain time (ms) 50% 69 66% 80 75% 88 80% 94 90% 108 95% 122 98% 139 99% 150 100% 225 (longest request) This is a result for just 200 requests in the new version: Completed 100 requests Completed 200 requests Finished 200 requests Server Software: Apache/2.2.9 Server Port: 80 Document Length: 52336 bytes Concurrency Level: 5 Time taken for tests: 11.157 seconds Complete requests: 200 Failed requests: 196 (Connect: 0, Receive: 0, Length: 196, Exceptions: 0) Write errors: 0 Total transferred: 10507372 bytes HTML transferred: 10448972 bytes Requests per second: 17.93 [#/sec] (mean) Time per request: 278.927 [ms] (mean) Time per request: 55.785 [ms] (mean, across all concurrent requests) Transfer rate: 919.69 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 2 15.7 0 166 Processing: 99 275 114.0 259 1144 Waiting: 73 243 111.7 229 1056 Total: 99 278 122.9 259 1165 Percentage of the requests served within a certain time (ms) 50% 259 66% 282 75% 295 80% 311 90% 350 95% 402 98% 870 99% 889 100% 1165 (longest request) You can view the new page here: http://www.messinasportiva.it/nuovo/sito/public/ I thought to some design problem, but I reviewed the code and I didn't see any strange. Anyway all is cached, and there is no query performed. I got a grade A with Yslow too. So I continue to don't understand. I'm scared that I could have problem when I will go online with the new one. Do you any idea about it? Thank you! -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Apache-Benchmark-and-failed-request-tp3341325p3341325.html Sent from the Zend Framework mailing list archive at Nabble.com.