> You can see just from that that CFSCRIPT is faster

Did you get your numbers mixed up steve? I just ran this test to test arithmatic at 
the same time as well - cfscript was almost twice as fast - 

test:
--
<cfoutput>
<cfset total = 1000000>

<cfset timer1 = getTickCount()>
<cfset x = 1>
<cfloop index="counter" from="1" to="#total#" step="1">
        <cfset x = x + counter>
</cfloop>
<cfset timer1 = getTickCount() - timer1>

cfset: #timer1# <br>

<cfscript>
        timer2 = getTickCount();
        y = 1;
        for(counter = 1; counter LTE total; counter = counter + 1)
        {
                y = y + counter;
        }
        
        timer2 = getTickCount() - timer2;
</cfscript>     
cfscript: #timer2#
</cfoutput>
--
result:

cfset: 7130 
cfscript: 3435 

Mark

-----------------------------------
[EMAIL PROTECTED]       
ICQ: 3094740
Safe From Bees
[www.safefrombees.com]

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to