Windows is Slow...

From: Date: Tue, 30 May 2000 20:22:41 +0000
Subject: Windows is Slow...
Groups: php.windows 
Request: Send a blank email to php-windows+get-129@lists.php.net to get a copy of this message
The parser seems incredibly slow on my Windows NT/IIS4 machine. I have been running simple tests with apachebench, to try to get a good view of the problem. Here are some numbers: 100k html, no php: 18 seconds 50k html, no php: 9 seconds 25k html, no php: 4.8 seconds 100k php comment: 5 seconds 50k php comment: 2.8 seconds 25k php comment: 1.7 seconds html above meaning that the .php file didn't actually include any <?php ?> tags. It seems the php engine running through html is actually slower than compiling php code. As for network speeds, the transfer rate I get for the straight html .php files is 6kB/sec, while ftp to the server gets 900kB/sec. Now, what could I be doing wrong here? The same 100k file with the CGI php3 takes 0.3 seconds to load. Eh? php 3 I said! Does it make sense that php3 is 10-20 times FASTER than php4? The CGI version of php4 is not much slower than the ISAPI module (I'm sure its easy to loose the difference when it takes 10 seconds to load a page). I wast starting to believe that all the new optimizations were slowing down the bulk moving of html across the wire, so I tried the same tests on linux/apache/mod_php4, and couldn't get the page to load any slower than 0.02 seconds. Unfortunately, I can't run this stuff on linux at the moment, as it depends on a couple dlls that are currently only available with NT. I've tried other machines with the same results. The 'optimized' php file is just as slow. Can anyone reproduce my results? Is not sending 50k of html through the server a common thing? I can't believe others are not complaining about this. -joel

« previous php.windows (#129) next »