#23265 [Com]: cgi faster than isapi

From: Date: Thu, 10 Jul 2003 10:31:25 +0000
Subject: #23265 [Com]: cgi faster than isapi
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43635@lists.php.net to get a copy of this message
ID: 23265 Comment by: mats at dupoint dot com Reported By: ablyler at epix dot net Status: Bogus Bug Type: IIS related Operating System: Windows 2003 RC 2 PHP Version: 4.3.1 New Comment: To move around this problem, still using ISAPI on IIS6 you could put output_buffering = On in php.ini, if suitable for your application. The comment in php.ini says it will slow things down, but in this case it's a huge performance improvement. - Mats Previous Comments: ------------------------------------------------------------------------ [2003-07-10 04:49:19] mats at dupoint dot com We have a similar problem. It seems the output buffering don't work when running isapi on iis6. Tried outputting (echo) 1000 "hello", 1.9 sek. Then tried outputting it with manually buffering output (ob_start()) , 0.6 sek. Haven't tried cgi yet, it's next on our list but as Andy says, storing a lib in memory and calling it should be faster then calling cgi app every request. Platform: MS Windows 2003, IIS 6, PHP 4.3.2 - Mats ------------------------------------------------------------------------ [2003-04-21 14:13:52] ablyler at epix dot net In windows 2000 ISAPI was faster than CGI. I would think storing a library in memory and calling it when needed would be faster than executing a CGI parser from disk per request. Can you shed some light on to this? - Andy ------------------------------------------------------------------------ [2003-04-21 10:06:48] sniper@php.net It's normal. ------------------------------------------------------------------------ [2003-04-17 20:49:51] ablyler at epix dot net I have a simple php script that builds an array, and then it print out the contents. I have found that it takes about .3 - .4 seconds when I use ISAPI and only .003 seconds when I use CGI. Is this an due to a change in IIS, or is this a PHP issue? I have tried the latest build, and still get the same results. - Andy ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23265&edit=1

« previous php.bugs (#43635) next »