Print Page | Close Window

What’s faster?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15049
Printed Date: 30 March 2026 at 3:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: What’s faster?
Posted By: Phat
Subject: What’s faster?
Date Posted: 12 May 2005 at 5:35am
I know there will not be a massive speed difference but just wondering what would be faster out of a javascript function and the same asp function

e.g

Javascript

<SCRIPT type="text/javascript" language="javascript">

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September", "October","November","December")
document.write("<font color='000000' face='arial'>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</font>")

                &a mp;n bsp;     </SCRIPT>


or asp



Response.write(FormatdateTime(Now(),2))





Replies:
Posted By: Gullanian
Date Posted: 12 May 2005 at 8:38am
As in faster by defintion of deliverence to user, definatly the ASP.


Posted By: Phat
Date Posted: 16 May 2005 at 1:51am
deliverence to user.

Ta


Posted By: Bluefrog
Date Posted: 16 May 2005 at 10:14am
In terms of CPU usage, the ASP will still be faster. Unloading that onto the client just doesn't really make much sense as there are no real savings and javascript is slow, so you just make the page slower on the client if you have a lot of scripts in there.

-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music


Posted By: Gullanian
Date Posted: 16 May 2005 at 2:13pm
Bandwidth wise, your probably going to save a lot with ASP anyway.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net