####cgi模式 用ab -n100 -c 100
http://192.168.0.2/extmail/cgi/index.cgi的结果
Server Software: Apache/2.0.55
Server Hostname: 192.168.0.2
Server Port: 80
Document Path: /extmail/cgi/index.cgi
Document Length: 8917 bytes
Concurrency Level: 100
Time taken for tests: 11.527427 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 907562 bytes
HTML transferred: 891700 bytes
Requests per second: 8.67 [#/sec] (mean)
Time per request: 11527.427 [ms] (mean)
Time per request: 115.274 [ms] (mean, across all concurrent requests)
Transfer rate: 76.86 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 7 11.9 0 49
Processing: 700 6868 3697.5 8120 10727
Waiting: 697 6699 3655.7 7966 10726
Total: 713 6875 3688.6 8122 10727
Percentage of the requests served within a certain time (ms)
50% 8122
66% 9967
75% 10505
80% 10663
90% 10726
95% 10726
98% 10727
99% 10727
100% 10727 (longest request)
mail#
####配置fcgi模后 用ab -n100 -c 100
http://192.168.0.2/extmail/cgi/index.cgi 的结果
Server Software: Apache/2.0.55
Server Hostname: 192.168.0.2
Server Port: 80
Document Path: /extmail/cgi/index.cgi
Document Length: 8917 bytes
Concurrency Level: 100
Time taken for tests: 0.341354 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 907800 bytes
HTML transferred: 891700 bytes
Requests per second: 292.95 [#/sec] (mean)
Time per request: 341.354 [ms] (mean)
Time per request: 3.414 [ms] (mean, across all concurrent requests)
Transfer rate: 2595.55 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 5
Processing: 24 161 88.5 160 310
Waiting: 21 158 88.7 157 310
Total: 27 161 88.3 160 310
Percentage of the requests served within a certain time (ms)
50% 160
66% 212
75% 239
80% 256
90% 288
95% 303
98% 310
99% 310
100% 310 (longest request)
对ab测试结果的很多参数不懂,但从响应速度上fcgi是快了很多,我的机器配置为3.6cpu+2G内存+72Gscis硬盘