Tutorials to .com

Tutorials to .com » Asp » Base » On the implementation of the procedures the issue of speed, (continued asp, php and jsp dynamic programming languages, such as comparison)

On the implementation of the procedures the issue of speed, (continued asp, php and jsp dynamic programming languages, such as comparison)

Print View , by: iSee ,Total views: 11 ,Word Count: 246 ,Date: Sat, 25 Apr 2009 Time: 4:18 PM

/ *
Bean production, are products
Tofu http://www.asp888.net technical points
Please specify the source if reproduced
* /
Hello everyone, I have written a number of dynamic programming language comparison article (see the specific situation: http://www.asp888.net/lanmu/viewarticle.asp?id=17), at the time of the asp The score is very low, because the jsp really good, not a technology to catch up in the jsp, the introduction of MS now. net strategy, and the corresponding asp.net (is asp +), changed this state of affairs
Asp + on the other issues, the site tofu has written many articles, I will come again in comparison
Procedures for the issue of speed, see the procedures
<%
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))
%>
See the output: it is 3.6 seconds or so, God speed is really good fast, reaching the same run jsp effect, because they used the same pre-compiled (preCompile) reasons, how, Cool it!


Author: tofu (original)


Asp Base Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.