ASP vs PHP on IIS |
这是在Windows2000上比较php4和asp的一个测试 我的测试报告: 测试环境: 计算机: 双PII400、256M内存 Windows 2000 Server IIS 5.0 PHP4.0.0 ISAPI接口 Zend PHP Opti 4.0 Beta2 对照脚本: TEST.PHP $x=0; $s=date("h:i:s"); for ($i=0;$i<10000;$i++) for ($j=0;$j<1000;$j++) $x++; $s1=date("h:i:s"); print($s." ".$s1); ?> TEST.ASP <%x=0 s=now() for i=0 to 10000 for j=0 to 1000 x=x+1 next next s1=now() %> <%=s%> <%=s1%> 各进行5次测试: 结果如下: 平均运行时间: TEST.PHP 32秒 TEST.ASP 42秒 可得结论:在同一服务器执行速度上php性能要优于asp 对比测试 双PII450/256M/Linux/APACHE1.3.12/PHP4.0.0/GD/Zend opBT2 test.php 平均时间34秒。 难道是我的linux上安装gd影响php效率么? |
![]() |
百度中 ASP vs PHP on IIS 相关内容 |
![]() |
Google搜索中 ASP vs PHP on IIS 相关内容 |