Want to have a reference benchmark on your application’s page performance in Apache?
ab -c5 -n100 http://www.yoursite.com/yourscript.php
Here is a live example:
# ab -c5 -n100 http://alltherides.com/index.php
This is ApacheBench, Version 2.3
Benchmarking alltherides.com (be patient)…..done
Server Software:Â Â Â Â Â Â Â Apache/2.2.9
Server Hostname:Â Â Â Â Â Â Â alltherides.com
Server Port:Â Â Â Â Â Â Â Â Â Â Â 80
Document Path:Â Â Â Â Â Â Â Â Â /index.php
Document Length:Â Â Â Â Â Â Â 0 bytes
Concurrency Level:Â Â Â Â Â 5
Time taken for tests:Â Â 11.754 seconds
Complete requests:Â Â Â Â Â 100
Failed requests:Â Â Â Â Â Â Â 0
Write errors:Â Â Â Â Â Â Â Â Â Â 0
Non-2xx responses:Â Â Â Â Â 100
Total transferred:Â Â Â Â Â 60500 bytes
HTML transferred:Â Â Â Â Â Â 0 bytes
Requests per second:Â Â Â 8.51 [#/sec] (mean)
Time per request:Â Â Â Â Â Â 587.718 [ms] (mean)
Time per request:Â Â Â Â Â Â 117.544 [ms] (mean, across all concurrent requests)
Transfer rate:Â Â Â Â Â Â Â Â Â 5.03 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median  max
Connect:Â Â Â Â Â Â Â 0Â Â Â 0Â Â 0.0Â Â Â Â Â 0Â Â Â Â Â Â 0
Processing:Â Â 345Â 579 123.3Â Â Â 565Â Â Â Â 991
Waiting:Â Â Â Â Â 344Â 578 122.5Â Â Â 565Â Â Â Â 991
Total:Â Â Â Â Â Â Â 345Â 579 123.3Â Â Â 565Â Â Â Â 991
Percentage of the requests served within a certain time (ms)
50%Â Â Â 565
66%Â Â Â 630
75%Â Â Â 662
80%Â Â Â 687
90%Â Â Â 747
95%Â Â Â 804
98%Â Â Â 923
99%Â Â Â 991
100%Â Â Â 991 (longest request)
Recent Comments