On Mon, 25 Oct 2004 18:44:41 +0000, Curt Zirzow <php-general@xxxxxxxxxxxxxxxxx> wrote: > Nice work! I wonder what the stats would be like with apache2 :) Suse 9.1 box: > cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 4 model name : AMD Athlon(tm) Processor stepping : 2 cpu MHz : 909.168 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow bogomips : 1794.04 > free -m total used free shared buffers cached Mem: 504 497 6 0 164 47 -/+ buffers/cache: 285 219 Swap: 1023 0 1023 > httpd -v Server version: Apache/2.0.51 Server built: Sep 19 2004 15:44:02 > php -v PHP 5.0.2 (cgi) (built: Sep 24 2004 20:55:59) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies 1) Apache 2 not parsing .html as PHP: > ab -n10000 http://localhost/benchmark/ 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 localhost (be patient) Completed 1000 requests Completed 2000 requests Completed 3000 requests Completed 4000 requests Completed 5000 requests Completed 6000 requests Completed 7000 requests Completed 8000 requests Completed 9000 requests Finished 10000 requests Server Software: Apache/2.0.51 Server Hostname: localhost Server Port: 80 Document Path: /benchmark/ Document Length: 105 bytes Concurrency Level: 1 Time taken for tests: 11.234968 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 3790000 bytes HTML transferred: 1050000 bytes Requests per second: 890.08 [#/sec] (mean) Time per request: 1.123 [ms] (mean) Time per request: 1.123 [ms] (mean, across all concurrent requests) Transfer rate: 329.42 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 1 Processing: 0 0 1.4 1 108 Waiting: 0 0 0.8 0 70 Total: 0 0 1.4 1 108 Percentage of the requests served within a certain time (ms) 50% 1 66% 1 75% 1 80% 1 90% 1 95% 1 98% 1 99% 1 100% 108 (longest request) 2) Apache 2 parsing .html as PHP: > ab -n10000 http://localhost/benchmark/ 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 localhost (be patient) Completed 1000 requests Completed 2000 requests Completed 3000 requests Completed 4000 requests Completed 5000 requests Completed 6000 requests Completed 7000 requests Completed 8000 requests Completed 9000 requests Finished 10000 requests Server Software: Apache/2.0.51 Server Hostname: localhost Server Port: 80 Document Path: /benchmark/ Document Length: 105 bytes Concurrency Level: 1 Time taken for tests: 30.532746 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 3110000 bytes HTML transferred: 1050000 bytes Requests per second: 327.52 [#/sec] (mean) Time per request: 3.053 [ms] (mean) Time per request: 3.053 [ms] (mean, across all concurrent requests) Transfer rate: 99.47 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 2 2 0.5 2 9 Waiting: 0 2 0.4 2 9 Total: 2 2 0.5 2 9 Percentage of the requests served within a certain time (ms) 50% 2 66% 2 75% 2 80% 3 90% 3 95% 3 98% 3 99% 3 100% 9 (longest request) Summary for 10K local requests: 11.2 seconds for .html not parsed as PHP vs. 30.5 seconds as .html parsed as PHP. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php