duguo.org »
last updated 11:28, 1 July 2007 by Du, Guo
Using Apache HTTP server benchmarking tool to test a url
From duguo.org
Sample command
Following command will run 5 seconds and with 5 concurrency level to send request to http://localhost/
ab -c 5 -t 5 http://localhost/
Sample output
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Finished 10 requests
Server Software: Microsoft-IIS/6.0
Server Hostname: localhost
Server Port: 80
Document Path: /c
Document Length: 23865 bytes
Concurrency Level: 5
Time taken for tests: 5.761061 seconds
Complete requests: 10
Failed requests: 0
Write errors: 0
Total transferred: 242130 bytes
HTML transferred: 238650 bytes
Requests per second: 1.74 [#/sec] (mean)
Time per request: 2880.531 [ms] (mean)
Time per request: 576.106 [ms] (mean, across all concurrent requests)
Transfer rate: 40.96 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 219 319 89.7 351 480
Processing: 1506 1761 186.0 1751 2037
Waiting: 236 739 427.0 836 1445
Total: 1809 2080 184.1 2130 2403
Percentage of the requests served within a certain time (ms)
50% 2130
66% 2182
75% 2213
80% 2256
90% 2403
95% 2403
98% 2403
99% 2403
100% 2403 (longest request)