📄 csdn_文档中心_php,asp,jsp,c,速度比较.htm
字号:
<TR bgColor=#ffffff>
<TD align=middle height=10 width=50></TD>
<TD align=right><A href="http://www.csdn.net/">CSDN</A> - <A
href="http://www.csdn.net/develop/">文档中心</A> - <FONT
color=#003399>Visual C++</FONT> </TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399 height=10><FONT
color=#ffffff>标题</FONT></TD>
<TD><B> php,asp,jsp,c,速度比较</B> DrunkenLion(转贴)
</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399><FONT color=#ffffff>关键字</FONT></TD>
<TD width=500> php,asp,jsp,c,速度比较</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399 height=10><FONT
color=#ffffff>出处</FONT></TD>
<TD height=10> <A
href="http://wrong/">http://wrong/</A></TD></TR>
<TR>
<TD align=middle height=10></TD>
<TD height=10></TD></TR></TBODY></TABLE><!--文章说明信息结束//-->
<TABLE border=0 width=600>
<TBODY>
<TR>
<TD align=left><BR>
<P>platform win2000 advance server <BR>jsp tomcat 3.2 jdk1.3<BR>asp
iis 5<BR>php 4.03pl</P>
<P>jsp 文件 20000*20000循环 第一次 8s 第二次
5s<BR>c
1.87s<BR>asp 384s<BR>php 在同一机器上死机
,在linux机器上在N(N>10)分钟后也没有出来,放弃</P><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
<TABLE align=center bgColor=#006699 border=0 cellPadding=0 cellSpacing=0
width=770>
<TBODY>
<TR bgColor=#006699>
<TD align=middle bgColor=#006699 id=white><FONT
color=#ffffff>对该文的评论</FONT></TD>
<TD align=middle>
<SCRIPT src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/readnum.htm"></SCRIPT>
</TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/ico_pencil.gif" width=16>
</SPAN> moniker <I>(2001-1-10 11:51:28)</I> </TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3
width=532><BR>c不应参与这种测试,你到底想测哪方面的速度?针对ASP,PHP等应重点测试client/server之间的交互速度
<BR></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/ico_pencil.gif" width=16>
</SPAN> xuii <I>(2001-1-9 20:33:33)</I> </TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3 width=532><BR>在提供服务的机器上作这种测试不大合适吧?这种服务事关其他
如磁盘操作,数据库查询,进(线)程调度,怎么能仅看循环速度呢?有客户请求服务器要求先循环10000000次后再返回页面吗?如果仅仅从算术运算速度上说
肯定自己写Dll,内嵌汇编速度会更快! <BR></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/ico_pencil.gif" width=16>
</SPAN> pent <I>(2001-1-9 12:55:06)</I> </TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3 width=532><BR>为什么不试一下asp+
<BR></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/ico_pencil.gif" width=16>
</SPAN> netsong <I>(2001-1-9 11:34:56)</I> </TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3
width=532><BR>为什么不在linux下测试php?其中c是编译的,不能于其他解释型的相提并论,尤其是做这种循环。
<BR></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/ico_pencil.gif" width=16>
</SPAN> wzy25 <I>(2001-1-8 17:44:42)</I> </TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3 width=532><BR>platform win2000 advance
server jsp tomcat 3.2 jdk1.3 asp iis 5 php 4.03pl jsp 和servelet 源码 (long
d1=System.currentTimeMillis(); for (int i=0;i<20000 ;i++ ) for(int
j=0;j<20000;j++) ; long d2=System.currentTimeMillis();
out.print(d2-d1); ) jsp 文件 20000*20000循环 第一次 4.3s 第二次 3.9s servlet 第一次
3.9s 第二次 2.87s c 1.87s asp 原码 <%=time()%> <%for i=0 to 20000 for
j=0 to 20000 next next %> <%=time()%> asp 384s php源码 <?
$d1=getdate(time()); printf($d1[“minutes“].“: “.$d1[“seconds“]); for
($i=0;$i<20000;$i++) for($j=0;$j<20000;$j++) ; $d2=getdate(time());
printf($d2[“minutes“].“: “.$d2[“seconds“]); ?> php 在同一机器上死机
,在linux机器上在N(N>10)分钟后也没有出来,放弃 <BR></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/ico_pencil.gif" width=16>
</SPAN> wzy25 <I>(2001-1-8 17:43:55)</I> </TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3 width=532><BR>platform win2000 advance
server jsp tomcat 3.2 jdk1.3 asp iis 5 php 4.03pl jsp 和servelet 源码 (long
d1=System.currentTimeMillis(); for (int i=0;i<20000 ;i++ ) for(int
j=0;j<20000;j++) ; long d2=System.currentTimeMillis();
out.print(d2-d1); ) jsp 文件 20000*20000循环 第一次 4.3s 第二次 3.9s servlet 第一次
3.9s 第二次 2.87s c 1.87s asp 原码 <%=time()%> <%for i=0 to 20000 for
j=0 to 20000 next next %> <%=time()%> asp 384s php源码 <?
$d1=getdate(time()); printf($d1[“minutes“].“: “.$d1[“seconds“]); for
($i=0;$i<20000;$i++) for($j=0;$j<20000;$j++) ; $d2=getdate(time());
printf($d2[“minutes“].“: “.$d2[“seconds“]); ?> php 在同一机器上死机
,在linux机器上在N(N>10)分钟后也没有出来,放弃 <BR></TD></TR></TBODY></TABLE><BR>
<DIV align=center>
<TABLE align=center bgColor=#cccccc border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TH bgColor=#006699 id=white><FONT
color=#ffffff>我要评论</FONT></TH></TR></TBODY></TABLE></DIV>
<DIV align=center>
<TABLE border=0 width=770>
<TBODY>
<TR>
<TD>你没有登陆,无法发表评论。 请先<A
href="http://www.csdn.net/member/login.asp?from=/Develop/read_article.asp?id=3070">登陆</A>
<A
href="http://www.csdn.net/expert/zc.asp">我要注册</A><BR></TD></TR></TBODY></TABLE></DIV><BR>
<HR noShade SIZE=1 width=770>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=500>
<TBODY>
<TR align=middle>
<TD height=10 vAlign=bottom><A
href="http://www.csdn.net/intro/intro.asp?id=2">网站简介</A> - <A
href="http://www.csdn.net/intro/intro.asp?id=5">广告服务</A> - <A
href="http://www.csdn.net/map/map.shtm">网站地图</A> - <A
href="http://www.csdn.net/help/help.asp">帮助信息</A> - <A
href="http://www.csdn.net/intro/intro.asp?id=2">联系方式</A> - <A
href="http://www.csdn.net/english">English</A> </TD>
<TD align=middle rowSpan=3><A
href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001032100010"><IMG
border=0 height=48 src="CSDN_文档中心_php,asp,jsp,c,速度比较.files/biaoshi.gif"
width=40></A></TD></TR>
<TR align=middle>
<TD vAlign=top>百联美达美公司 版权所有 京ICP证020026号</TD></TR>
<TR align=middle>
<TD vAlign=top><FONT face=Verdana>Copyright © CSDN.net, Inc. All rights
reserved</FONT></TD></TR>
<TR>
<TD height=15></TD>
<TD></TD></TR></TBODY></TABLE></DIV>
<DIV></DIV><!--内容结束//--><!--结束//--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -