Testing PHP 5.2.6 vs ASP 3.0
Posted: Sat Nov 15, 2008 1:34 pm
The machine: Intel Core 2 Duo Processor 1.8GHz, 2GB RAM
OS: Microsoft Vista Home Premium, IIS 7.0
Scripting Languages: PHP 5.2.6, ASP 3.0
Senario: Test a loop to see the time results...
Here is the ASP code...
Here is the PHP code...
Results...
Is it because of Windows IIS 7.0?
I haven't tried the PHP script with Apache!
Any comments ?
OS: Microsoft Vista Home Premium, IIS 7.0
Scripting Languages: PHP 5.2.6, ASP 3.0
Senario: Test a loop to see the time results...
Here is the ASP code...
Code: Select all
<%
Dim i, st
st=Now()
For i=0 To 50000000
Next
response.write st & "<br />"
response.write Now()
%>
Code: Select all
<?php
set_time_limit(150);
$st=date("H:i:s");
for ($i=0; $i<=50000000; $i++) {
}
echo $st . "<br />";
echo date("H:i:s");
?>
Code: Select all
[b]Loop[/b] [b]PHP Start[/b] [b]PHP End[/b] [b]ASP Start[/b] [b]ASP End[/b]
0-50.000.000 19:42:42 19:42:47 15/11/2008 7:43:07 ?? 15/11/2008 7:43:10 ??
0-100.000.000 19:45:38 19:45:49 15/11/2008 7:45:29 ?? 15/11/2008 7:45:35 ??
0-1.000.000.000 19:48:46 19:50:39 15/11/2008 7:47:21 ?? 15/11/2008 7:48:18 ??
I haven't tried the PHP script with Apache!
Any comments ?