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...
<%
Dim i, st
st=Now()
For i=0 To 50000000
Next
response.write st & "<br />"
response.write Now()
%>
Here is the PHP code...
<?php
set_time_limit(150);
$st=date("H:i:s");
for ($i=0; $i<=50000000; $i++) {
}
echo $st . "<br />";
echo date("H:i:s");
?>
Results...
| Loop | PHP Start | PHP End | ASP Start | ASP End |
|---|---|---|---|---|
| 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 ìì |
The next step is to test the PHP script with Apache!




( 3 / 74 )
Microsoft Tech·Ed EMEA 2008 Developers
Microsoft Tech·Ed EMEA 2008 Developers is the Microsoft premier technical education conference just for developers. For five days, you and more than 4,000 of your peers have countless opportunities to explore about the latest cutting-edge technologies from Microsoft.
Powered by
Thursday, September 4, 2008, 04:30 AM - NEWS !
Full of adventure was the trip from Masai Mara to Nairobi !
See for yourself !!!
Wednesday, September 3, 2008, 05:18 PM - NEWS !
How about some crocodile please... roasted on traditional Masai swords (skewers)!
Carnivore Restaurant (Nairobi)
Next




Calendar







