I have a simple WordPress blog and I wanted to do a load test. Here are the results:
Code:
$ ab -n 10000 -c 10 http://www.mydomain.com/blog/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking www.mydomain.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software: Apache
Server Hostname: www.mydomain.com
Server Port: 80
Document Path: /blog/
Document Length: 39855 bytes
Concurrency Level: 10
Time taken for tests: 1901.884287 seconds
Complete requests: 10000
Failed requests: 15
(Connect: 0, Length: 15, Exceptions: 0)
Write errors: 0
Non-2xx responses: 15
Total transferred: 402236465 bytes
HTML transferred: 397960245 bytes
Requests per second: 5.26 [#/sec] (mean)
Time per request: 1901.884 [ms] (mean)
Time per request: 190.188 [ms] (mean, across all concurrent requests)
Transfer rate: 206.54 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 14
Processing: 19 1898 3497.9 339 41011
Waiting: 19 1283 2910.0 302 41011
Total: 19 1898 3497.9 339 41011
Percentage of the requests served within a certain time (ms)
50% 339
66% 450
75% 1090
80% 2567
90% 7123
95% 9399
98% 12817
99% 16084
100% 41011 (longest request)
I'm no expert but 5.26 requests/second is pretty bad, right? Any suggestions for improving the performance?
Server Info: Apache 2, PHP5 as FastCGI, MySQL db, APC for caching.