使用Zend Performance Suite的感觉
刚刚装完,便感觉php程序的运行速度加快.经测试,装了Zend Optimizer后的速度比原始情况快了一倍多,再装完Zend Performance Suite,速度还会再快百分之二十五.
于是偶用apache自带的测试命令进行启用Cache前后的测试.感觉不错 
Cache前的测试如下: 
[root@JHP bin]# ./ab -n 1000 -c 50 http://jhp.2288.org/forum/index.php 
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> 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 jhp.2288.org (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.52 
Server Hostname: jhp.2288.org 
Server Port: 80 
Document Path: /forum/index.php 
Document Length: 66528 bytes 
Concurrency Level: 50 
Time taken for tests: 137.388391 seconds 
Complete requests: 1000 
Failed requests: 991 
(Connect: 0, Length: 991, Exceptions: 0) 
Write errors: 0 
Total transferred: 9200769 bytes 
HTML transferred: 8607015 bytes 
Requests per second: 7.28 [#/sec] (mean) 
Time per request: 6869.420 [ms] (mean) 
Time per request: 137.388 [ms] (mean, across all concurrent requests) 
Transfer rate: 65.40 [Kbytes/sec] received 
Connection Times (ms) 
min mean[+/-sd] median max 
Connect: 0 0 2.5 0 13 
Processing: 196 6755 5346.6 4780 33470 
Waiting: 195 6749 5343.0 4780 33469 
Total: 196 6755 5348.1 4780 33480 
Percentage of the requests served within a certain time (ms) 
50% 4780 
66% 6359 
75% 8643 
80% 9663 
90% 11708 
95% 19367 
98% 24796 
99% 29226 
100% 33480 (longest request) 

Cache之后再次测试,效果果然不一样: 
[root@JHP bin]# ./ab -n 1000 -c 50 http://jhp.2288.org/forum/index.php 
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> 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 jhp.2288.org (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.52 
Server Hostname: jhp.2288.org 
Server Port: 80 
Document Path: /forum/index.php 
Document Length: 9896 bytes 
Concurrency Level: 50 
Time taken for tests: 1.422302 seconds 
Complete requests: 1000 
Failed requests: 0 
Write errors: 0 
Total transferred: 10334324 bytes 
HTML transferred: 9905896 bytes 
Requests per second: 703.09 [#/sec] (mean) 
Time per request: 71.115 [ms] (mean) 
Time per request: 1.422 [ms] (mean, across all concurrent requests) 
Transfer rate: 7095.54 [Kbytes/sec] received 
Connection Times (ms) 
min mean[+/-sd] median max 
Connect: 0 0 1.7 0 9 
Processing: 5 67 13.7 67 254 
Waiting: 5 65 13.3 65 253 
Total: 11 68 13.1 68 254 
Percentage of the requests served within a certain time (ms) 
50% 68 
66% 71 
75% 72 
80% 72 
90% 75 
95% 83 
98% 91 
99% 92 
100% 254 (longest request) 

我有三言两语要评论:

如果需要您输入验证码,而您又看不清楚时,请点击发言区域右上角的“匿名式发表”以刷新验证码
Ethan Jiang

人不能没有一种对某种不可摧毁的东西保持持久信念的生活……

Gmail

MSN QQ

吃吃喝喝是因那贪得无厌;说说灌灌只为了笑逐颜开。

October 2008
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Recent Entry
Ethan Jiang 尚能饭焉
Live Traffic Feed
45eggs Blog Feed