For the website performance test, generally we will use LoadRunner to achieve, and it is too large, make us feel somewhat uncomfortable, and today introduced the Apachebench tool, it small and fine, simple to use, the effect is intuitive, can say, is better than LR performance testing tool.
For apachebench We can download the tool from here
Here are a few concepts
1: Throughput rate (requests per second)
A quantitative description of the server concurrency processing capability, in REQS/S, which refers to the number of requests processed per unit of time for a concurrent user. The maximum number of requests per unit of time that a concurrent user could process, called the maximum throughput rate.
Remember: The throughput rate is based on the number of concurrent users. This statement represents two meanings, 1: The throughput rate is correlated with the number of concurrent users, and 2: The throughput rate is generally different under the different number of concurrent users.
Calculation formula: Total number of requests/time taken to complete these requests, i.e.
Request per second = complete Requests/time taken for tests
2: Concurrent connections (the number of concurrent connections)
The number of concurrent connections refers to the number of requests received by the server at some point, simply speaking, is a session.
3: Concurrent users (the number of concurrent users,concurrency level)
To be aware of the difference between this concept and the number of concurrent connections, a user may produce multiple sessions at the same time, that is, the number of connections. Under http/1.1, IE7 supports two concurrent connections, IE8 supports 6 concurrent connections, FIREFOX3 supports 4 concurrent connections, so our number of concurrent users will have to be divided by this cardinality accordingly.
Here are a few main parameters of it
Operating parameters
The request is 100, and the concurrency is 10, the command is as follows: APACHEBENCH-N100-C10 Http://uri
Run results
Benchmarking www.cnblogs.com (Be patient)
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Completed requests
Finished requests
Server Software:
Server Hostname:www.cnblogs.com
Server port:80
Document Path:/
Document length:45373 bytes
Concurrency level:10
Time taken for tests:45.299591 seconds
Complete requests:1000
Failed requests:0
Write errors:0
Total transferred:45679011 bytes
HTML transferred:45373000 bytes
Requests per second:22.08 [#/sec] (mean)
Time per request:452.996 [MS] (mean)
Time per request:45.300 [MS] (mean, across all concurrent requests)
Transfer rate:984.73 [Kbytes/sec] Received
Connection Times (MS)
Min MEAN[+/-SD] Median max
Connect:26 44 189.5 31 3035
processing:89 405 583.3 284 5190
WAITING:30 143 344.6 97 5031
total:116 450 611.7 315 5224
Percentage of the requests served within a certain time (MS)
50% 315
66% 322
75% 331
80% 343
90% 408
95% 549
98% 3333
99% 3375
100% 5224 (Longest request)