*/ 大家好,我以前曾經寫過一篇 幾種動態編程語言的 比較的文章(具體情況請看:http://www.asp888.net/lanmu/viewarticle.asp?id=17),當時對 asp 的評分很低,因為當時的jsp 確實太好了,還沒有一種技術在當時能趕得上jsp,現在 MS 推出的 .net 戰略,以及相應的asp.net(就是asp+),改變了這種情況 關于 asp+ 的其他的問題,豆腐的站點上已經寫了很多的 文章了,我就在這里來再次比較一下 程序的運行速度的問題,請看程序 <% Dim intStart,intStop As DateTime Dim timeUse As TimeSpan dim Sum,i,j as int32 intStart = DateTime.Now for i=1 to 20000 for j=1 to 20000 Sum=Sum + i next next intStop = DateTime.Now timeUse = intStop.Subtract(intStart) Response.Write (TimeSpan.ToString(timeUse)) %> 請看輸出:是 3。6 秒左右,老天,速度真的是好快呀,達到了jsp 同等的運行效果,因為他們同樣采用了 預編譯(preCompile)的原因,怎么樣,Cool 吧!
|