C:\WAMP\BIN\APACHE\APACHE2.2.21\BIN>AB.EXE-N5-C5 http://www.baidu.comab.exe:invalid URLUsage:ab.exe [Options] [ http://]hostname[:p ort]/pathoptions is:-N requests number of requests to perform-c concurrency number of mul Tiple requests to make-t TimeLimit Seconds to Max. Wait for responses-b windowsize Size of TCP send/receive buffer, in Bytes-p postfile File containing data to POST. Remember also to Set-t-u putfile File containing data to PUT. Remember also to set-t-T content-type content-type header for POSTing, eg. ' application/x-www-form-urlencoded ' Default is ' text/plain '-v verbosity how much troubleshooting Info to print-w print out results in HTML tables-i use HEAD instead of Get-x attrib Utes string to insert as table Attributes-y attributes string to insert as TR attributes-z attributes string To insert as TD or TH attributes -C attribute Add cookie, eg. ' Apache=1234. (repeatable)-H attribute Add arbitrary header line, eg. ' Accept-encoding:gzip ' Inserted after all normal header lines. (repeatable)-a attribute Add Basic WWW authentication, the attributes is a colon separated user Name and password. -P attribute Add Basic Proxy authentication, the attributes is a colon separated username and PASSW Ord. -X Proxy:port ProxyServer and port number to Use-v Print version number and exit-k use HTTP KeepAlive feature-d do not show percentiles served table. -S do not show confidence estimators and warnings. -G filename Output collected data to gnuplot format file. -e filename Output CSV file with percentages served-r don't exit on socket receive errors. -H Display Usage information (this message)
Remember to add at the back
c:\wamp\bin\apache\apache2.2.21\bin>ab.exe-n5-c5 Http://www.baidu.com/This is Apachebench, Version 2.3<$Revision:655654 $>Copyright 1996 Adam Twiss, Zeus technology LTD, http://www.zeustech.net/Licensed to the Apache software Foundation, http:/ /www.apache.org/benchmarking www.baidu.com (Be patient) ... doneserver software:bws/1.1server hostname:www . Baidu.comserver port:80document Path:/document length:77593 bytesconcurrency level:5t IME taken for tests:0.686 secondscomplete requests:5failed requests:4 (connect:0, receive:0, Length: 4, exceptions:0) Write errors:0total transferred:392317 byteshtml transferred:387997 bytesrequests Per second:7.29 [#/sec] (mean) time per request:686.039 [MS] (mean) time per request:137.208 [MS] (mean, Across all concurrent requests) Transfer rate:558.46 [Kbytes/sec] receivedconnection times (ms) min MEAN[+/-SD] Median maxconnect:54 7.4, 71processing:228 100.7 475Waiting: 70 152 75.5 159 262total:284 423 103.9 463 546Percentage of the requests served within a certain time (MS) 50% 43 9 66% 487 75% 487 80% 546 90% 546 95% 546 98% 546 99% 546 100% 546 (longest request)
AB Apache Benchmarking link in the notation remember to add/