php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23265 cgi faster than isapi
Submitted: 2003-04-17 20:49 UTC Modified: 2003-04-21 14:13 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ablyler at epix dot net Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.1 OS: Windows 2003 RC 2
Private report: No CVE-ID: None
 [2003-04-17 20:49 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-21 10:06 UTC] sniper@php.net
It's normal.

 [2003-04-21 14:13 UTC] 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-07-10 04:49 UTC] 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-07-10 05:31 UTC] mats at dupoint dot com
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 10:01:30 2024 UTC