J'ai fais quelques essais de benchmark sur un site avec du contenu statique, voila les résultats:
[root@sme cgi-bin]# ab -n1000
http://sans.cache/
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
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 sans.cache (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache/2.0.54
Server Hostname: sans.cache
Server Port: 80
Document Path: /
Document Length: 213 bytes
Concurrency Level: 1
Time taken for tests: 6.594 seconds
Complete requests: 1000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 496000 bytes
HTML transferred: 213000 bytes
Requests per second: 151.65 [#/sec] (mean)
Time per request: 6.59 [ms] (mean)
Time per request: 6.59 [ms] (mean, across all concurrent requests)
Transfer rate: 75.22 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.3 0 40
Processing: 1 6 123.2 2 3900
Waiting: 0 5 123.2 1 3899
Total: 1 6 123.3 2 3900
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 2
80% 2
90% 2
95% 2
98% 4
99% 12
100% 3900 (last request)
[root@sme cgi-bin]# ab -n1000
http://avec.cache/
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
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 avec.cache (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache/2.0.54
Server Hostname: avec.cache
Server Port: 80
Document Path: /
Document Length: 213 bytes
Concurrency Level: 1
Time taken for tests: 2.413 seconds
Complete requests: 1000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 502993 bytes
HTML transferred: 213000 bytes
Requests per second: 414.42 [#/sec] (mean)
Time per request: 2.41 [ms] (mean)
Time per request: 2.41 [ms] (mean, across all concurrent requests)
Transfer rate: 208.45 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.3 0 41
Processing: 0 1 22.8 0 674
Waiting: 0 1 22.8 0 674
Total: 0 1 22.9 0 674
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 2
99% 30
100% 674 (last request)
On peut remarquer le nombre de Request per second qui dans le cas avec la mise en cache et presque 3 fois plus important.
Voila