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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ablyler at epix dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 21:01:34 2025 UTC